Constant propagating byval pointer is safe if function is readonly.
[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 JIT
841 TARGET_HAS_JIT
842 ENABLE_DOXYGEN
843 ENABLE_THREADS
844 ENABLE_PIC
845 TARGETS_TO_BUILD
846 LLVM_ENUM_TARGETS
847 LLVM_ENUM_ASM_PRINTERS
848 LLVM_ENUM_ASM_PARSERS
849 ENABLE_CBE_PRINTF_A
850 EXTRA_OPTIONS
851 BINUTILS_INCDIR
852 ENABLE_LLVMC_DYNAMIC
853 ENABLE_LLVMC_DYNAMIC_PLUGINS
854 CXX
855 CXXFLAGS
856 ac_ct_CXX
857 NM
858 ifGNUmake
859 LN_S
860 CMP
861 CP
862 DATE
863 FIND
864 MKDIR
865 MV
866 RANLIB
867 RM
868 SED
869 TAR
870 BINPWD
871 GRAPHVIZ
872 DOT
873 FDP
874 NEATO
875 TWOPI
876 CIRCO
877 GV
878 DOTTY
879 PERL
880 HAVE_PERL
881 INSTALL_PROGRAM
882 INSTALL_SCRIPT
883 INSTALL_DATA
884 BZIP2
885 DOXYGEN
886 GROFF
887 GZIP
888 POD2HTML
889 POD2MAN
890 RUNTEST
891 TCLSH
892 ZIP
893 OCAMLC
894 OCAMLOPT
895 OCAMLDEP
896 OCAMLDOC
897 GAS
898 INSTALL_LTDL_TRUE
899 INSTALL_LTDL_FALSE
900 CONVENIENCE_LTDL_TRUE
901 CONVENIENCE_LTDL_FALSE
902 LIBADD_DL
903 ECHO
904 AR
905 STRIP
906 CXXCPP
907 F77
908 FFLAGS
909 ac_ct_F77
910 LIBTOOL
911 LLVMGCCCOMMAND
912 LLVMGXXCOMMAND
913 LLVMGCC
914 LLVMGXX
915 USE_UDIS86
916 USE_OPROFILE
917 HAVE_PTHREAD
918 HUGE_VAL_SANITY
919 ALLOCA
920 MMAP_FILE
921 LLVMCC1
922 LLVMCC1PLUS
923 LLVMGCCDIR
924 LLVMGCCLIBEXEC
925 LLVMGCC_VERSION
926 LLVMGCC_MAJVERS
927 LLVMGCC_LANGS
928 SHLIBEXT
929 LLVM_PREFIX
930 LLVM_BINDIR
931 LLVM_LIBDIR
932 LLVM_DATADIR
933 LLVM_DOCSDIR
934 LLVM_ETCDIR
935 LLVM_INCLUDEDIR
936 LLVM_INFODIR
937 LLVM_MANDIR
938 LLVM_CONFIGTIME
939 BINDINGS_TO_BUILD
940 ALL_BINDINGS
941 OCAML_LIBDIR
942 ENABLE_VISIBILITY_INLINES_HIDDEN
943 RPATH
944 RDYNAMIC
945 LIBOBJS
946 LTLIBOBJS'
947 ac_subst_files=''
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 CPPFLAGS
955 CPP
956 CXX
957 CXXFLAGS
958 CCC
959 CXXCPP
960 F77
961 FFLAGS'
962 ac_subdirs_all='projects/sample
963 projects/privbracket
964 projects/llvm-stacker
965 projects/llvm-test
966 projects/test-suite
967 projects/llvm-reopt
968 projects/llvm-gcc
969 projects/llvm-java
970 projects/llvm-tv
971 projects/llvm-poolalloc
972 projects/poolalloc
973 projects/llvm-kernel'
974
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
994
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025   # If the previous option needs an argument, assign it.
1026   if test -n "$ac_prev"; then
1027     eval $ac_prev=\$ac_option
1028     ac_prev=
1029     continue
1030   fi
1031
1032   case $ac_option in
1033   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034   *)    ac_optarg=yes ;;
1035   esac
1036
1037   # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039   case $ac_dashdash$ac_option in
1040   --)
1041     ac_dashdash=yes ;;
1042
1043   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044     ac_prev=bindir ;;
1045   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046     bindir=$ac_optarg ;;
1047
1048   -build | --build | --buil | --bui | --bu)
1049     ac_prev=build_alias ;;
1050   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051     build_alias=$ac_optarg ;;
1052
1053   -cache-file | --cache-file | --cache-fil | --cache-fi \
1054   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055     ac_prev=cache_file ;;
1056   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058     cache_file=$ac_optarg ;;
1059
1060   --config-cache | -C)
1061     cache_file=config.cache ;;
1062
1063   -datadir | --datadir | --datadi | --datad)
1064     ac_prev=datadir ;;
1065   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066     datadir=$ac_optarg ;;
1067
1068   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069   | --dataroo | --dataro | --datar)
1070     ac_prev=datarootdir ;;
1071   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073     datarootdir=$ac_optarg ;;
1074
1075   -disable-* | --disable-*)
1076     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080    { (exit 1); exit 1; }; }
1081     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082     eval enable_$ac_feature=no ;;
1083
1084   -docdir | --docdir | --docdi | --doc | --do)
1085     ac_prev=docdir ;;
1086   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087     docdir=$ac_optarg ;;
1088
1089   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090     ac_prev=dvidir ;;
1091   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092     dvidir=$ac_optarg ;;
1093
1094   -enable-* | --enable-*)
1095     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1098       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099    { (exit 1); exit 1; }; }
1100     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1101     eval enable_$ac_feature=\$ac_optarg ;;
1102
1103   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105   | --exec | --exe | --ex)
1106     ac_prev=exec_prefix ;;
1107   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109   | --exec=* | --exe=* | --ex=*)
1110     exec_prefix=$ac_optarg ;;
1111
1112   -gas | --gas | --ga | --g)
1113     # Obsolete; use --with-gas.
1114     with_gas=yes ;;
1115
1116   -help | --help | --hel | --he | -h)
1117     ac_init_help=long ;;
1118   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119     ac_init_help=recursive ;;
1120   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121     ac_init_help=short ;;
1122
1123   -host | --host | --hos | --ho)
1124     ac_prev=host_alias ;;
1125   -host=* | --host=* | --hos=* | --ho=*)
1126     host_alias=$ac_optarg ;;
1127
1128   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129     ac_prev=htmldir ;;
1130   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131   | --ht=*)
1132     htmldir=$ac_optarg ;;
1133
1134   -includedir | --includedir | --includedi | --included | --include \
1135   | --includ | --inclu | --incl | --inc)
1136     ac_prev=includedir ;;
1137   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138   | --includ=* | --inclu=* | --incl=* | --inc=*)
1139     includedir=$ac_optarg ;;
1140
1141   -infodir | --infodir | --infodi | --infod | --info | --inf)
1142     ac_prev=infodir ;;
1143   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144     infodir=$ac_optarg ;;
1145
1146   -libdir | --libdir | --libdi | --libd)
1147     ac_prev=libdir ;;
1148   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149     libdir=$ac_optarg ;;
1150
1151   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152   | --libexe | --libex | --libe)
1153     ac_prev=libexecdir ;;
1154   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155   | --libexe=* | --libex=* | --libe=*)
1156     libexecdir=$ac_optarg ;;
1157
1158   -localedir | --localedir | --localedi | --localed | --locale)
1159     ac_prev=localedir ;;
1160   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161     localedir=$ac_optarg ;;
1162
1163   -localstatedir | --localstatedir | --localstatedi | --localstated \
1164   | --localstate | --localstat | --localsta | --localst | --locals)
1165     ac_prev=localstatedir ;;
1166   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168     localstatedir=$ac_optarg ;;
1169
1170   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171     ac_prev=mandir ;;
1172   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173     mandir=$ac_optarg ;;
1174
1175   -nfp | --nfp | --nf)
1176     # Obsolete; use --without-fp.
1177     with_fp=no ;;
1178
1179   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180   | --no-cr | --no-c | -n)
1181     no_create=yes ;;
1182
1183   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185     no_recursion=yes ;;
1186
1187   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189   | --oldin | --oldi | --old | --ol | --o)
1190     ac_prev=oldincludedir ;;
1191   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194     oldincludedir=$ac_optarg ;;
1195
1196   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197     ac_prev=prefix ;;
1198   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199     prefix=$ac_optarg ;;
1200
1201   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202   | --program-pre | --program-pr | --program-p)
1203     ac_prev=program_prefix ;;
1204   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206     program_prefix=$ac_optarg ;;
1207
1208   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209   | --program-suf | --program-su | --program-s)
1210     ac_prev=program_suffix ;;
1211   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213     program_suffix=$ac_optarg ;;
1214
1215   -program-transform-name | --program-transform-name \
1216   | --program-transform-nam | --program-transform-na \
1217   | --program-transform-n | --program-transform- \
1218   | --program-transform | --program-transfor \
1219   | --program-transfo | --program-transf \
1220   | --program-trans | --program-tran \
1221   | --progr-tra | --program-tr | --program-t)
1222     ac_prev=program_transform_name ;;
1223   -program-transform-name=* | --program-transform-name=* \
1224   | --program-transform-nam=* | --program-transform-na=* \
1225   | --program-transform-n=* | --program-transform-=* \
1226   | --program-transform=* | --program-transfor=* \
1227   | --program-transfo=* | --program-transf=* \
1228   | --program-trans=* | --program-tran=* \
1229   | --progr-tra=* | --program-tr=* | --program-t=*)
1230     program_transform_name=$ac_optarg ;;
1231
1232   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233     ac_prev=pdfdir ;;
1234   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235     pdfdir=$ac_optarg ;;
1236
1237   -psdir | --psdir | --psdi | --psd | --ps)
1238     ac_prev=psdir ;;
1239   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240     psdir=$ac_optarg ;;
1241
1242   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243   | -silent | --silent | --silen | --sile | --sil)
1244     silent=yes ;;
1245
1246   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247     ac_prev=sbindir ;;
1248   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249   | --sbi=* | --sb=*)
1250     sbindir=$ac_optarg ;;
1251
1252   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254   | --sharedst | --shareds | --shared | --share | --shar \
1255   | --sha | --sh)
1256     ac_prev=sharedstatedir ;;
1257   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260   | --sha=* | --sh=*)
1261     sharedstatedir=$ac_optarg ;;
1262
1263   -site | --site | --sit)
1264     ac_prev=site ;;
1265   -site=* | --site=* | --sit=*)
1266     site=$ac_optarg ;;
1267
1268   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269     ac_prev=srcdir ;;
1270   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271     srcdir=$ac_optarg ;;
1272
1273   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274   | --syscon | --sysco | --sysc | --sys | --sy)
1275     ac_prev=sysconfdir ;;
1276   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278     sysconfdir=$ac_optarg ;;
1279
1280   -target | --target | --targe | --targ | --tar | --ta | --t)
1281     ac_prev=target_alias ;;
1282   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283     target_alias=$ac_optarg ;;
1284
1285   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286     verbose=yes ;;
1287
1288   -version | --version | --versio | --versi | --vers | -V)
1289     ac_init_version=: ;;
1290
1291   -with-* | --with-*)
1292     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295       { echo "$as_me: error: invalid package name: $ac_package" >&2
1296    { (exit 1); exit 1; }; }
1297     ac_package=`echo $ac_package| sed 's/-/_/g'`
1298     eval with_$ac_package=\$ac_optarg ;;
1299
1300   -without-* | --without-*)
1301     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1304       { echo "$as_me: error: invalid package name: $ac_package" >&2
1305    { (exit 1); exit 1; }; }
1306     ac_package=`echo $ac_package | sed 's/-/_/g'`
1307     eval with_$ac_package=no ;;
1308
1309   --x)
1310     # Obsolete; use --with-x.
1311     with_x=yes ;;
1312
1313   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314   | --x-incl | --x-inc | --x-in | --x-i)
1315     ac_prev=x_includes ;;
1316   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318     x_includes=$ac_optarg ;;
1319
1320   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322     ac_prev=x_libraries ;;
1323   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325     x_libraries=$ac_optarg ;;
1326
1327   -*) { echo "$as_me: error: unrecognized option: $ac_option
1328 Try \`$0 --help' for more information." >&2
1329    { (exit 1); exit 1; }; }
1330     ;;
1331
1332   *=*)
1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337    { (exit 1); exit 1; }; }
1338     eval $ac_envvar=\$ac_optarg
1339     export $ac_envvar ;;
1340
1341   *)
1342     # FIXME: should be removed in autoconf 3.0.
1343     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347     ;;
1348
1349   esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354   { echo "$as_me: error: missing argument to $ac_option" >&2
1355    { (exit 1); exit 1; }; }
1356 fi
1357
1358 # Be sure to have absolute directory names.
1359 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360                 datadir sysconfdir sharedstatedir localstatedir includedir \
1361                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362                 libdir localedir mandir
1363 do
1364   eval ac_val=\$$ac_var
1365   case $ac_val in
1366     [\\/$]* | ?:[\\/]* )  continue;;
1367     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368   esac
1369   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370    { (exit 1); exit 1; }; }
1371 done
1372
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1379
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382   if test "x$build_alias" = x; then
1383     cross_compiling=maybe
1384     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385     If a cross compiler is detected then cross compile mode will be used." >&2
1386   elif test "x$build_alias" != "x$host_alias"; then
1387     cross_compiling=yes
1388   fi
1389 fi
1390
1391 ac_tool_prefix=
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394 test "$silent" = yes && exec 6>/dev/null
1395
1396
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400   { echo "$as_me: error: Working directory cannot be determined" >&2
1401    { (exit 1); exit 1; }; }
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403   { echo "$as_me: error: pwd does not report name of working directory" >&2
1404    { (exit 1); exit 1; }; }
1405
1406
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409   ac_srcdir_defaulted=yes
1410   # Try the directory containing this script, then the parent directory.
1411   ac_confdir=`$as_dirname -- "$0" ||
1412 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413          X"$0" : 'X\(//\)[^/]' \| \
1414          X"$0" : 'X\(//\)$' \| \
1415          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1416 echo X"$0" |
1417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)[^/].*/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\).*/{
1430             s//\1/
1431             q
1432           }
1433           s/.*/./; q'`
1434   srcdir=$ac_confdir
1435   if test ! -r "$srcdir/$ac_unique_file"; then
1436     srcdir=..
1437   fi
1438 else
1439   ac_srcdir_defaulted=no
1440 fi
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 ac_abs_confdir=`(
1448         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1449    { (exit 1); exit 1; }; }
1450         pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453   srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_env_${ac_var}_value=\$${ac_var}
1464   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472   # Omit some internal or obsolete options to make the list less imposing.
1473   # This message is too long to be a string in the A/UX 3.1 sh.
1474   cat <<_ACEOF
1475 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE.  See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485   -h, --help              display this help and exit
1486       --help=short        display options specific to this package
1487       --help=recursive    display the short help of all the included packages
1488   -V, --version           display version information and exit
1489   -q, --quiet, --silent   do not print \`checking...' messages
1490       --cache-file=FILE   cache test results in FILE [disabled]
1491   -C, --config-cache      alias for \`--cache-file=config.cache'
1492   -n, --no-create         do not create output files
1493       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496   --prefix=PREFIX         install architecture-independent files in PREFIX
1497                           [$ac_default_prefix]
1498   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1499                           [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509   --bindir=DIR           user executables [EPREFIX/bin]
1510   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1511   --libexecdir=DIR       program executables [EPREFIX/libexec]
1512   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1513   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1514   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1515   --libdir=DIR           object code libraries [EPREFIX/lib]
1516   --includedir=DIR       C header files [PREFIX/include]
1517   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1518   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1519   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1520   --infodir=DIR          info documentation [DATAROOTDIR/info]
1521   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1522   --mandir=DIR           man documentation [DATAROOTDIR/man]
1523   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1524   --htmldir=DIR          html documentation [DOCDIR]
1525   --dvidir=DIR           dvi documentation [DOCDIR]
1526   --pdfdir=DIR           pdf documentation [DOCDIR]
1527   --psdir=DIR            ps documentation [DOCDIR]
1528 _ACEOF
1529
1530   cat <<\_ACEOF
1531
1532 System types:
1533   --build=BUILD     configure for building on BUILD [guessed]
1534   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1535   --target=TARGET   configure for building compilers for TARGET [HOST]
1536 _ACEOF
1537 fi
1538
1539 if test -n "$ac_init_help"; then
1540   case $ac_init_help in
1541      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1542    esac
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-optimized      Compile with optimizations enabled (default is NO)
1549   --enable-profiling      Compile with profiling enabled (default is NO)
1550   --enable-assertions     Compile with assertion checks enabled (default is
1551                           YES)
1552   --enable-expensive-checks
1553                           Compile with expensive debug checks enabled (default
1554                           is NO)
1555   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1556                           NO)
1557   --enable-jit            Enable Just In Time Compiling (default is YES)
1558   --enable-doxygen        Build doxygen documentation (default is NO)
1559   --enable-threads        Use threads if available (default is YES)
1560   --enable-pic            Build LLVM with Position Independent Code (default
1561                           is YES)
1562   --enable-targets        Build specific host targets: all or
1563                           target1,target2,... Valid targets are: host, x86,
1564                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1565                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1566                           and cpp (default=all)
1567   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1568                           %a (default is YES)
1569   --enable-bindings       Build specific language bindings:
1570                           all,auto,none,{binding-name} (default=auto)
1571   --enable-libffi         Check for the presence of libffi (default is YES)
1572   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1573                           Win32)
1574   --enable-llvmc-dynamic-plugins
1575                           Enable dynamic LLVMC plugins (default is YES)
1576   --enable-ltdl-install   install libltdl
1577   --enable-shared[=PKGS]  build shared libraries
1578                           [default=yes]
1579   --enable-static[=PKGS]  build static libraries
1580                           [default=yes]
1581   --enable-fast-install[=PKGS]
1582                           optimize for fast installation
1583                           [default=yes]
1584   --disable-libtool-lock  avoid locking (might break parallel builds)
1585
1586 Optional Packages:
1587   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1588   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1589   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1590                           searches PATH)
1591   --with-llvmgcc          Specify location of llvm-gcc driver (default
1592                           searches PATH)
1593   --with-llvmgxx          Specify location of llvm-g++ driver (default
1594                           searches PATH)
1595   --with-extra-options    Specify additional options to compile LLVM with
1596   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1597                           is stdlib)
1598   --with-binutils-include Specify path to binutils/include/ containing
1599                           plugin-api.h file for gold plugin.
1600   --with-tclinclude       directory where tcl headers are
1601   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1602   --with-pic              try to use only PIC/non-PIC objects [default=use
1603                           both]
1604   --with-tags[=TAGS]      include additional configurations [automatic]
1605   --with-udis86=<path>    Use udis86 external x86 disassembler library
1606   --with-oprofile=<prefix>
1607                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1608
1609 Some influential environment variables:
1610   CC          C compiler command
1611   CFLAGS      C compiler flags
1612   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1613               nonstandard directory <lib dir>
1614   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615               you have headers in a nonstandard directory <include dir>
1616   CPP         C preprocessor
1617   CXX         C++ compiler command
1618   CXXFLAGS    C++ compiler flags
1619   CXXCPP      C++ preprocessor
1620   F77         Fortran 77 compiler command
1621   FFLAGS      Fortran 77 compiler flags
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to <llvmbugs@cs.uiuc.edu>.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632   # If there are subdirs, report their specific --help.
1633   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634     test -d "$ac_dir" || continue
1635     ac_builddir=.
1636
1637 case "$ac_dir" in
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *)
1640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1641   # A ".." for each directory in $ac_dir_suffix.
1642   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1643   case $ac_top_builddir_sub in
1644   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646   esac ;;
1647 esac
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1652
1653 case $srcdir in
1654   .)  # We are building in place.
1655     ac_srcdir=.
1656     ac_top_srcdir=$ac_top_builddir_sub
1657     ac_abs_top_srcdir=$ac_pwd ;;
1658   [\\/]* | ?:[\\/]* )  # Absolute name.
1659     ac_srcdir=$srcdir$ac_dir_suffix;
1660     ac_top_srcdir=$srcdir
1661     ac_abs_top_srcdir=$srcdir ;;
1662   *) # Relative name.
1663     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664     ac_top_srcdir=$ac_top_build_prefix$srcdir
1665     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 esac
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669     cd "$ac_dir" || { ac_status=$?; continue; }
1670     # Check for guested configure.
1671     if test -f "$ac_srcdir/configure.gnu"; then
1672       echo &&
1673       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674     elif test -f "$ac_srcdir/configure"; then
1675       echo &&
1676       $SHELL "$ac_srcdir/configure" --help=recursive
1677     else
1678       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679     fi || ac_status=$?
1680     cd "$ac_pwd" || { ac_status=$?; break; }
1681   done
1682 fi
1683
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1686   cat <<\_ACEOF
1687 llvm configure 2.7svn
1688 generated by GNU Autoconf 2.60
1689
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694
1695 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1696 _ACEOF
1697   exit
1698 fi
1699 cat >config.log <<_ACEOF
1700 This file contains any messages produced by compilers while
1701 running configure, to aid debugging if configure makes a mistake.
1702
1703 It was created by llvm $as_me 2.7svn, which was
1704 generated by GNU Autoconf 2.60.  Invocation command line was
1705
1706   $ $0 $@
1707
1708 _ACEOF
1709 exec 5>>config.log
1710 {
1711 cat <<_ASUNAME
1712 ## --------- ##
1713 ## Platform. ##
1714 ## --------- ##
1715
1716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721
1722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1724
1725 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1726 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1728 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1729 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1730 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1731 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1732
1733 _ASUNAME
1734
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738   IFS=$as_save_IFS
1739   test -z "$as_dir" && as_dir=.
1740   echo "PATH: $as_dir"
1741 done
1742 IFS=$as_save_IFS
1743
1744 } >&5
1745
1746 cat >&5 <<_ACEOF
1747
1748
1749 ## ----------- ##
1750 ## Core tests. ##
1751 ## ----------- ##
1752
1753 _ACEOF
1754
1755
1756 # Keep a trace of the command line.
1757 # Strip out --no-create and --no-recursion so they do not pile up.
1758 # Strip out --silent because we don't want to record it for future runs.
1759 # Also quote any args containing shell meta-characters.
1760 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_configure_args=
1762 ac_configure_args0=
1763 ac_configure_args1=
1764 ac_must_keep_next=false
1765 for ac_pass in 1 2
1766 do
1767   for ac_arg
1768   do
1769     case $ac_arg in
1770     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1771     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1772     | -silent | --silent | --silen | --sile | --sil)
1773       continue ;;
1774     *\'*)
1775       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1776     esac
1777     case $ac_pass in
1778     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1779     2)
1780       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1781       if test $ac_must_keep_next = true; then
1782         ac_must_keep_next=false # Got value, back to normal.
1783       else
1784         case $ac_arg in
1785           *=* | --config-cache | -C | -disable-* | --disable-* \
1786           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1787           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1788           | -with-* | --with-* | -without-* | --without-* | --x)
1789             case "$ac_configure_args0 " in
1790               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791             esac
1792             ;;
1793           -* ) ac_must_keep_next=true ;;
1794         esac
1795       fi
1796       ac_configure_args="$ac_configure_args '$ac_arg'"
1797       ;;
1798     esac
1799   done
1800 done
1801 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1802 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1803
1804 # When interrupted or exit'd, cleanup temporary files, and complete
1805 # config.log.  We remove comments because anyway the quotes in there
1806 # would cause problems or look ugly.
1807 # WARNING: Use '\'' to represent an apostrophe within the trap.
1808 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1809 trap 'exit_status=$?
1810   # Save into config.log some information that might help in debugging.
1811   {
1812     echo
1813
1814     cat <<\_ASBOX
1815 ## ---------------- ##
1816 ## Cache variables. ##
1817 ## ---------------- ##
1818 _ASBOX
1819     echo
1820     # The following way of writing the cache mishandles newlines in values,
1821 (
1822   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823     eval ac_val=\$$ac_var
1824     case $ac_val in #(
1825     *${as_nl}*)
1826       case $ac_var in #(
1827       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1828 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1829       esac
1830       case $ac_var in #(
1831       _ | IFS | as_nl) ;; #(
1832       *) $as_unset $ac_var ;;
1833       esac ;;
1834     esac
1835   done
1836   (set) 2>&1 |
1837     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838     *${as_nl}ac_space=\ *)
1839       sed -n \
1840         "s/'\''/'\''\\\\'\'''\''/g;
1841           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842       ;; #(
1843     *)
1844       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1845       ;;
1846     esac |
1847     sort
1848 )
1849     echo
1850
1851     cat <<\_ASBOX
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1855 _ASBOX
1856     echo
1857     for ac_var in $ac_subst_vars
1858     do
1859       eval ac_val=\$$ac_var
1860       case $ac_val in
1861       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862       esac
1863       echo "$ac_var='\''$ac_val'\''"
1864     done | sort
1865     echo
1866
1867     if test -n "$ac_subst_files"; then
1868       cat <<\_ASBOX
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1872 _ASBOX
1873       echo
1874       for ac_var in $ac_subst_files
1875       do
1876         eval ac_val=\$$ac_var
1877         case $ac_val in
1878         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879         esac
1880         echo "$ac_var='\''$ac_val'\''"
1881       done | sort
1882       echo
1883     fi
1884
1885     if test -s confdefs.h; then
1886       cat <<\_ASBOX
1887 ## ----------- ##
1888 ## confdefs.h. ##
1889 ## ----------- ##
1890 _ASBOX
1891       echo
1892       cat confdefs.h
1893       echo
1894     fi
1895     test "$ac_signal" != 0 &&
1896       echo "$as_me: caught signal $ac_signal"
1897     echo "$as_me: exit $exit_status"
1898   } >&5
1899   rm -f core *.core core.conftest.* &&
1900     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901     exit $exit_status
1902 ' 0
1903 for ac_signal in 1 2 13 15; do
1904   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 done
1906 ac_signal=0
1907
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1910
1911 # Predefined preprocessor variables.
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 _ACEOF
1916
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 _ACEOF
1936
1937
1938 # Let the site file select an alternate cache file if it wants to.
1939 # Prefer explicitly selected file to automatically selected ones.
1940 if test -n "$CONFIG_SITE"; then
1941   set x "$CONFIG_SITE"
1942 elif test "x$prefix" != xNONE; then
1943   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1944 else
1945   set x "$ac_default_prefix/share/config.site" \
1946         "$ac_default_prefix/etc/config.site"
1947 fi
1948 shift
1949 for ac_site_file
1950 do
1951   if test -r "$ac_site_file"; then
1952     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 echo "$as_me: loading site script $ac_site_file" >&6;}
1954     sed 's/^/| /' "$ac_site_file" >&5
1955     . "$ac_site_file"
1956   fi
1957 done
1958
1959 if test -r "$cache_file"; then
1960   # Some versions of bash will fail to source /dev/null (special
1961   # files actually), so we avoid doing that.
1962   if test -f "$cache_file"; then
1963     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 echo "$as_me: loading cache $cache_file" >&6;}
1965     case $cache_file in
1966       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967       *)                      . "./$cache_file";;
1968     esac
1969   fi
1970 else
1971   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 echo "$as_me: creating cache $cache_file" >&6;}
1973   >$cache_file
1974 fi
1975
1976 # Check that the precious variables saved in the cache have kept the same
1977 # value.
1978 ac_cache_corrupted=false
1979 for ac_var in $ac_precious_vars; do
1980   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981   eval ac_new_set=\$ac_env_${ac_var}_set
1982   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983   eval ac_new_val=\$ac_env_${ac_var}_value
1984   case $ac_old_set,$ac_new_set in
1985     set,)
1986       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988       ac_cache_corrupted=: ;;
1989     ,set)
1990       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992       ac_cache_corrupted=: ;;
1993     ,);;
1994     *)
1995       if test "x$ac_old_val" != "x$ac_new_val"; then
1996         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1997 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1998         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1999 echo "$as_me:   former value:  $ac_old_val" >&2;}
2000         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2001 echo "$as_me:   current value: $ac_new_val" >&2;}
2002         ac_cache_corrupted=:
2003       fi;;
2004   esac
2005   # Pass precious variables to config.status.
2006   if test "$ac_new_set" = set; then
2007     case $ac_new_val in
2008     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2009     *) ac_arg=$ac_var=$ac_new_val ;;
2010     esac
2011     case " $ac_configure_args " in
2012       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2013       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014     esac
2015   fi
2016 done
2017 if $ac_cache_corrupted; then
2018   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2022    { (exit 1); exit 1; }; }
2023 fi
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
2057 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2058
2059
2060
2061
2062
2063
2064
2065 ac_aux_dir=
2066 for ac_dir in autoconf "$srcdir"/autoconf; do
2067   if test -f "$ac_dir/install-sh"; then
2068     ac_aux_dir=$ac_dir
2069     ac_install_sh="$ac_aux_dir/install-sh -c"
2070     break
2071   elif test -f "$ac_dir/install.sh"; then
2072     ac_aux_dir=$ac_dir
2073     ac_install_sh="$ac_aux_dir/install.sh -c"
2074     break
2075   elif test -f "$ac_dir/shtool"; then
2076     ac_aux_dir=$ac_dir
2077     ac_install_sh="$ac_aux_dir/shtool install -c"
2078     break
2079   fi
2080 done
2081 if test -z "$ac_aux_dir"; then
2082   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2084    { (exit 1); exit 1; }; }
2085 fi
2086
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2092 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2093 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2094
2095
2096
2097 if test ${srcdir} != "." ; then
2098   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2099     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2100 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2101    { (exit 1); exit 1; }; }
2102   fi
2103 fi
2104
2105 for i in `ls ${srcdir}/projects`
2106 do
2107   if test -d ${srcdir}/projects/${i} ; then
2108     case ${i} in
2109       CVS) ;;
2110       sample)       subdirs="$subdirs projects/sample"
2111     ;;
2112       privbracket)  subdirs="$subdirs projects/privbracket"
2113  ;;
2114       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2115  ;;
2116       # llvm-test is the old name of the test-suite, kept here for backwards
2117       # compatibility
2118       llvm-test)    subdirs="$subdirs projects/llvm-test"
2119  ;;
2120       test-suite)   subdirs="$subdirs projects/test-suite"
2121  ;;
2122       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2123 ;;
2124       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2125   ;;
2126       llvm-java)    subdirs="$subdirs projects/llvm-java"
2127  ;;
2128       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2129    ;;
2130       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2131  ;;
2132       poolalloc)    subdirs="$subdirs projects/poolalloc"
2133  ;;
2134       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2135  ;;
2136       *)
2137         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2138 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2139         ;;
2140     esac
2141   fi
2142 done
2143
2144
2145 # Make sure we can run config.sub.
2146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2147   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2148 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2149    { (exit 1); exit 1; }; }
2150
2151 { echo "$as_me:$LINENO: checking build system type" >&5
2152 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_build+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   ac_build_alias=$build_alias
2157 test "x$ac_build_alias" = x &&
2158   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2159 test "x$ac_build_alias" = x &&
2160   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2161 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2162    { (exit 1); exit 1; }; }
2163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2164   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2165 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2166    { (exit 1); exit 1; }; }
2167
2168 fi
2169 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2170 echo "${ECHO_T}$ac_cv_build" >&6; }
2171 case $ac_cv_build in
2172 *-*-*) ;;
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2174 echo "$as_me: error: invalid value of canonical build" >&2;}
2175    { (exit 1); exit 1; }; };;
2176 esac
2177 build=$ac_cv_build
2178 ac_save_IFS=$IFS; IFS='-'
2179 set x $ac_cv_build
2180 shift
2181 build_cpu=$1
2182 build_vendor=$2
2183 shift; shift
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2186 build_os=$*
2187 IFS=$ac_save_IFS
2188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2189
2190
2191 { echo "$as_me:$LINENO: checking host system type" >&5
2192 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2193 if test "${ac_cv_host+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test "x$host_alias" = x; then
2197   ac_cv_host=$ac_cv_build
2198 else
2199   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2200     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2201 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2202    { (exit 1); exit 1; }; }
2203 fi
2204
2205 fi
2206 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2207 echo "${ECHO_T}$ac_cv_host" >&6; }
2208 case $ac_cv_host in
2209 *-*-*) ;;
2210 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2211 echo "$as_me: error: invalid value of canonical host" >&2;}
2212    { (exit 1); exit 1; }; };;
2213 esac
2214 host=$ac_cv_host
2215 ac_save_IFS=$IFS; IFS='-'
2216 set x $ac_cv_host
2217 shift
2218 host_cpu=$1
2219 host_vendor=$2
2220 shift; shift
2221 # Remember, the first character of IFS is used to create $*,
2222 # except with old shells:
2223 host_os=$*
2224 IFS=$ac_save_IFS
2225 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226
2227
2228 { echo "$as_me:$LINENO: checking target system type" >&5
2229 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2230 if test "${ac_cv_target+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test "x$target_alias" = x; then
2234   ac_cv_target=$ac_cv_host
2235 else
2236   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2237     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2238 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 fi
2243 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2244 echo "${ECHO_T}$ac_cv_target" >&6; }
2245 case $ac_cv_target in
2246 *-*-*) ;;
2247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2248 echo "$as_me: error: invalid value of canonical target" >&2;}
2249    { (exit 1); exit 1; }; };;
2250 esac
2251 target=$ac_cv_target
2252 ac_save_IFS=$IFS; IFS='-'
2253 set x $ac_cv_target
2254 shift
2255 target_cpu=$1
2256 target_vendor=$2
2257 shift; shift
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2260 target_os=$*
2261 IFS=$ac_save_IFS
2262 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263
2264
2265 # The aliases save the names the user supplied, while $host etc.
2266 # will get canonicalized.
2267 test -n "$target_alias" &&
2268   test "$program_prefix$program_suffix$program_transform_name" = \
2269     NONENONEs,x,x, &&
2270   program_prefix=${target_alias}-
2271
2272 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2273 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2274 if test "${llvm_cv_os_type+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   case $host in
2278   *-*-aix*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="AIX"
2282     llvm_cv_platform_type="Unix" ;;
2283   *-*-irix*)
2284     llvm_cv_link_all_option="-Wl,--whole-archive"
2285     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286     llvm_cv_os_type="IRIX"
2287     llvm_cv_platform_type="Unix" ;;
2288   *-*-cygwin*)
2289     llvm_cv_link_all_option="-Wl,--whole-archive"
2290     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291     llvm_cv_os_type="Cygwin"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-darwin*)
2294     llvm_cv_link_all_option="-Wl,-all_load"
2295     llvm_cv_no_link_all_option="-Wl,-noall_load"
2296     llvm_cv_os_type="Darwin"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-freebsd*)
2299     llvm_cv_link_all_option="-Wl,--whole-archive"
2300     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301     llvm_cv_os_type="FreeBSD"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-openbsd*)
2304     llvm_cv_link_all_option="-Wl,--whole-archive"
2305     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306     llvm_cv_os_type="OpenBSD"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-netbsd*)
2309     llvm_cv_link_all_option="-Wl,--whole-archive"
2310     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311     llvm_cv_os_type="NetBSD"
2312     llvm_cv_platform_type="Unix" ;;
2313   *-*-dragonfly*)
2314     llvm_cv_link_all_option="-Wl,--whole-archive"
2315     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316     llvm_cv_os_type="DragonFly"
2317     llvm_cv_platform_type="Unix" ;;
2318   *-*-hpux*)
2319     llvm_cv_link_all_option="-Wl,--whole-archive"
2320     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321     llvm_cv_os_type="HP-UX"
2322     llvm_cv_platform_type="Unix" ;;
2323   *-*-interix*)
2324     llvm_cv_link_all_option="-Wl,--whole-archive"
2325     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326     llvm_cv_os_type="Interix"
2327     llvm_cv_platform_type="Unix" ;;
2328   *-*-linux*)
2329     llvm_cv_link_all_option="-Wl,--whole-archive"
2330     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331     llvm_cv_os_type="Linux"
2332     llvm_cv_platform_type="Unix" ;;
2333   *-*-solaris*)
2334     llvm_cv_link_all_option="-Wl,-z,allextract"
2335     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2336     llvm_cv_os_type="SunOS"
2337     llvm_cv_platform_type="Unix" ;;
2338   *-*-win32*)
2339     llvm_cv_link_all_option="-Wl,--whole-archive"
2340     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341     llvm_cv_os_type="Win32"
2342     llvm_cv_platform_type="Win32" ;;
2343   *-*-mingw*)
2344     llvm_cv_link_all_option="-Wl,--whole-archive"
2345     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2346     llvm_cv_os_type="MingW"
2347     llvm_cv_platform_type="Win32" ;;
2348   *-unknown-eabi*)
2349     llvm_cv_link_all_option="-Wl,--whole-archive"
2350     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2351     llvm_cv_os_type="Freestanding"
2352     llvm_cv_platform_type="Unix" ;;
2353   *-unknown-elf*)
2354     llvm_cv_link_all_option="-Wl,--whole-archive"
2355     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2356     llvm_cv_os_type="Freestanding"
2357     llvm_cv_platform_type="Unix" ;;
2358   *)
2359     llvm_cv_link_all_option=""
2360     llvm_cv_no_link_all_option=""
2361     llvm_cv_os_type="Unknown"
2362     llvm_cv_platform_type="Unknown" ;;
2363 esac
2364 fi
2365 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2366 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2367
2368 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2369 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2370 if test "${llvm_cv_target_os_type+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   case $target in
2374   *-*-aix*)
2375     llvm_cv_target_os_type="AIX" ;;
2376   *-*-irix*)
2377     llvm_cv_target_os_type="IRIX" ;;
2378   *-*-cygwin*)
2379     llvm_cv_target_os_type="Cygwin" ;;
2380   *-*-darwin*)
2381     llvm_cv_target_os_type="Darwin" ;;
2382   *-*-freebsd*)
2383     llvm_cv_target_os_type="FreeBSD" ;;
2384   *-*-openbsd*)
2385     llvm_cv_target_os_type="OpenBSD" ;;
2386   *-*-netbsd*)
2387     llvm_cv_target_os_type="NetBSD" ;;
2388   *-*-dragonfly*)
2389     llvm_cv_target_os_type="DragonFly" ;;
2390   *-*-hpux*)
2391     llvm_cv_target_os_type="HP-UX" ;;
2392   *-*-interix*)
2393     llvm_cv_target_os_type="Interix" ;;
2394   *-*-linux*)
2395     llvm_cv_target_os_type="Linux" ;;
2396   *-*-solaris*)
2397     llvm_cv_target_os_type="SunOS" ;;
2398   *-*-win32*)
2399     llvm_cv_target_os_type="Win32" ;;
2400   *-*-mingw*)
2401     llvm_cv_target_os_type="MingW" ;;
2402   *-unknown-eabi*)
2403     llvm_cv_target_os_type="Freestanding" ;;
2404   *)
2405     llvm_cv_target_os_type="Unknown" ;;
2406 esac
2407 fi
2408 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2409 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2410
2411 if test "$llvm_cv_os_type" = "Unknown" ; then
2412   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2413 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2414    { (exit 1); exit 1; }; }
2415 fi
2416
2417 OS=$llvm_cv_os_type
2418
2419 HOST_OS=$llvm_cv_os_type
2420
2421 TARGET_OS=$llvm_cv_target_os_type
2422
2423
2424 LINKALL=$llvm_cv_link_all_option
2425
2426 NOLINKALL=$llvm_cv_no_link_all_option
2427
2428
2429 case $llvm_cv_platform_type in
2430   Unix)
2431
2432 cat >>confdefs.h <<\_ACEOF
2433 #define LLVM_ON_UNIX 1
2434 _ACEOF
2435
2436     LLVM_ON_UNIX=1
2437
2438     LLVM_ON_WIN32=0
2439
2440     ;;
2441   Win32)
2442
2443 cat >>confdefs.h <<\_ACEOF
2444 #define LLVM_ON_WIN32 1
2445 _ACEOF
2446
2447     LLVM_ON_UNIX=0
2448
2449     LLVM_ON_WIN32=1
2450
2451     ;;
2452 esac
2453
2454 { echo "$as_me:$LINENO: checking target architecture" >&5
2455 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2456 if test "${llvm_cv_target_arch+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   case $target in
2460   i?86-*)                 llvm_cv_target_arch="x86" ;;
2461   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2462   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2463   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2464   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2465   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2466   mips-*)                 llvm_cv_target_arch="Mips" ;;
2467   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2468   xcore-*)                llvm_cv_target_arch="XCore" ;;
2469   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2470   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2471   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2472   *)                      llvm_cv_target_arch="Unknown" ;;
2473 esac
2474 fi
2475 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2476 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2477
2478 if test "$llvm_cv_target_arch" = "Unknown" ; then
2479   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2480 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2481 fi
2482
2483 # Determine the LLVM native architecture for the target
2484 case "$llvm_cv_target_arch" in
2485     x86)     LLVM_NATIVE_ARCH="X86" ;;
2486     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2487     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2488 esac
2489
2490 ARCH=$llvm_cv_target_arch
2491
2492
2493 ac_ext=c
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 if test -n "$ac_tool_prefix"; then
2499   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2530 else
2531   { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2533 fi
2534
2535
2536 fi
2537 if test -z "$ac_cv_prog_CC"; then
2538   ac_ct_CC=$CC
2539   # Extract the first word of "gcc", so it can be a program name with args.
2540 set dummy gcc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   if test -n "$ac_ct_CC"; then
2547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554   for ac_exec_ext in '' $ac_executable_extensions; do
2555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556     ac_cv_prog_ac_ct_CC="gcc"
2557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567 if test -n "$ac_ct_CC"; then
2568   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2569 echo "${ECHO_T}$ac_ct_CC" >&6; }
2570 else
2571   { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2573 fi
2574
2575   if test "x$ac_ct_CC" = x; then
2576     CC=""
2577   else
2578     case $cross_compiling:$ac_tool_warned in
2579 yes:)
2580 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2581 whose name does not start with the host triplet.  If you think this
2582 configuration is useful to you, please write to autoconf@gnu.org." >&5
2583 echo "$as_me: 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." >&2;}
2586 ac_tool_warned=yes ;;
2587 esac
2588     CC=$ac_ct_CC
2589   fi
2590 else
2591   CC="$ac_cv_prog_CC"
2592 fi
2593
2594 if test -z "$CC"; then
2595           if test -n "$ac_tool_prefix"; then
2596     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}cc; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_CC+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$CC"; then
2604   ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_CC="${ac_tool_prefix}cc"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625   { echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   fi
2634 fi
2635 if test -z "$CC"; then
2636   # Extract the first word of "cc", so it can be a program name with args.
2637 set dummy cc; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   if test -n "$CC"; then
2644   ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646   ac_prog_rejected=no
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2655        ac_prog_rejected=yes
2656        continue
2657      fi
2658     ac_cv_prog_CC="cc"
2659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 if test $ac_prog_rejected = yes; then
2667   # We found a bogon in the path, so make sure we never use it.
2668   set dummy $ac_cv_prog_CC
2669   shift
2670   if test $# != 0; then
2671     # We chose a different compiler from the bogus one.
2672     # However, it has the same basename, so the bogon will be chosen
2673     # first if we set CC to just the basename; use the full file name.
2674     shift
2675     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2676   fi
2677 fi
2678 fi
2679 fi
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682   { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2684 else
2685   { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$CC"; then
2692   if test -n "$ac_tool_prefix"; then
2693   for ac_prog in cl.exe
2694   do
2695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   if test -n "$CC"; then
2703   ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 CC=$ac_cv_prog_CC
2723 if test -n "$CC"; then
2724   { echo "$as_me:$LINENO: result: $CC" >&5
2725 echo "${ECHO_T}$CC" >&6; }
2726 else
2727   { echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6; }
2729 fi
2730
2731
2732     test -n "$CC" && break
2733   done
2734 fi
2735 if test -z "$CC"; then
2736   ac_ct_CC=$CC
2737   for ac_prog in cl.exe
2738 do
2739   # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy $ac_prog; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   if test -n "$ac_ct_CC"; then
2747   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754   for ac_exec_ext in '' $ac_executable_extensions; do
2755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2756     ac_cv_prog_ac_ct_CC="$ac_prog"
2757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759   fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2769 echo "${ECHO_T}$ac_ct_CC" >&6; }
2770 else
2771   { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2773 fi
2774
2775
2776   test -n "$ac_ct_CC" && break
2777 done
2778
2779   if test "x$ac_ct_CC" = x; then
2780     CC=""
2781   else
2782     case $cross_compiling:$ac_tool_warned in
2783 yes:)
2784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2785 whose name does not start with the host triplet.  If you think this
2786 configuration is useful to you, please write to autoconf@gnu.org." >&5
2787 echo "$as_me: 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." >&2;}
2790 ac_tool_warned=yes ;;
2791 esac
2792     CC=$ac_ct_CC
2793   fi
2794 fi
2795
2796 fi
2797
2798
2799 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: no acceptable C compiler found in \$PATH
2802 See \`config.log' for more details." >&2;}
2803    { (exit 1); exit 1; }; }
2804
2805 # Provide some information about the compiler.
2806 echo "$as_me:$LINENO: checking for C compiler version" >&5
2807 ac_compiler=`set X $ac_compile; echo $2`
2808 { (ac_try="$ac_compiler --version >&5"
2809 case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814   (eval "$ac_compiler --version >&5") 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }
2818 { (ac_try="$ac_compiler -v >&5"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_compiler -v >&5") 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }
2828 { (ac_try="$ac_compiler -V >&5"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compiler -V >&5") 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }
2838
2839 cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h.  */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h.  */
2845
2846 int
2847 main ()
2848 {
2849
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 ac_clean_files_save=$ac_clean_files
2855 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2856 # Try to create an executable without -o first, disregard a.out.
2857 # It will help us diagnose broken compilers, and finding out an intuition
2858 # of exeext.
2859 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2860 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2861 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2862 #
2863 # List of possible output files, starting from the most likely.
2864 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2865 # only as a last resort.  b.out is created by i960 compilers.
2866 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2867 #
2868 # The IRIX 6 linker writes into existing files which may not be
2869 # executable, retaining their permissions.  Remove them first so a
2870 # subsequent execution test works.
2871 ac_rmfiles=
2872 for ac_file in $ac_files
2873 do
2874   case $ac_file in
2875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2876     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2877   esac
2878 done
2879 rm -f $ac_rmfiles
2880
2881 if { (ac_try="$ac_link_default"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_link_default") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; then
2891   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2894 # so that the user can short-circuit this test for compilers unknown to
2895 # Autoconf.
2896 for ac_file in $ac_files
2897 do
2898   test -f "$ac_file" || continue
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2901         ;;
2902     [ab].out )
2903         # We found the default executable, but exeext='' is most
2904         # certainly right.
2905         break;;
2906     *.* )
2907         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2908         then :; else
2909            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910         fi
2911         # We set ac_cv_exeext here because the later test for it is not
2912         # safe: cross compilers may not add the suffix if given an `-o'
2913         # argument, so we may need to know it at that point already.
2914         # Even if this section looks crufty: it has the advantage of
2915         # actually working.
2916         break;;
2917     * )
2918         break;;
2919   esac
2920 done
2921 test "$ac_cv_exeext" = no && ac_cv_exeext=
2922
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: C compiler cannot create executables
2930 See \`config.log' for more details." >&2;}
2931    { (exit 77); exit 77; }; }
2932 fi
2933
2934 ac_exeext=$ac_cv_exeext
2935 { echo "$as_me:$LINENO: result: $ac_file" >&5
2936 echo "${ECHO_T}$ac_file" >&6; }
2937
2938 # Check that the compiler produces executables we can run.  If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2942 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943 # If not cross compiling, check that we can run a simple program.
2944 if test "$cross_compiling" != yes; then
2945   if { ac_try='./$ac_file'
2946   { (case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_try") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955     cross_compiling=no
2956   else
2957     if test "$cross_compiling" = maybe; then
2958         cross_compiling=yes
2959     else
2960         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&2;}
2966    { (exit 1); exit 1; }; }
2967     fi
2968   fi
2969 fi
2970 { echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6; }
2972
2973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2974 ac_clean_files=$ac_clean_files_save
2975 # Check that the compiler produces executables we can run.  If not, either
2976 # the compiler is broken, or we cross compile.
2977 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980 echo "${ECHO_T}$cross_compiling" >&6; }
2981
2982 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984 if { (ac_try="$ac_link"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_link") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; then
2994   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe'), while it won't with
2997 # `rm'.
2998 for ac_file in conftest.exe conftest conftest.*; do
2999   test -f "$ac_file" || continue
3000   case $ac_file in
3001     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3002     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003           break;;
3004     * ) break;;
3005   esac
3006 done
3007 else
3008   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details." >&2;}
3012    { (exit 1); exit 1; }; }
3013 fi
3014
3015 rm -f conftest$ac_cv_exeext
3016 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3017 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3018
3019 rm -f conftest.$ac_ext
3020 EXEEXT=$ac_cv_exeext
3021 ac_exeext=$EXEEXT
3022 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3023 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3024 if test "${ac_cv_objext+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.o conftest.obj
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; then
3053   for ac_file in conftest.o conftest.obj conftest.*; do
3054   test -f "$ac_file" || continue;
3055   case $ac_file in
3056     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3057     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058        break;;
3059   esac
3060 done
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3068 See \`config.log' for more details." >&2;}
3069    { (exit 1); exit 1; }; }
3070 fi
3071
3072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3073 fi
3074 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3075 echo "${ECHO_T}$ac_cv_objext" >&6; }
3076 OBJEXT=$ac_cv_objext
3077 ac_objext=$OBJEXT
3078 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093 #ifndef __GNUC__
3094        choke me
3095 #endif
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116   { (case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_try") 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   ac_compiler_gnu=yes
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140         ac_compiler_gnu=no
3141 fi
3142
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146 fi
3147 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3149 GCC=`test $ac_compiler_gnu = yes && echo yes`
3150 ac_test_CFLAGS=${CFLAGS+set}
3151 ac_save_CFLAGS=$CFLAGS
3152 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_g+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   ac_save_c_werror_flag=$ac_c_werror_flag
3158    ac_c_werror_flag=yes
3159    ac_cv_prog_cc_g=no
3160    CFLAGS="-g"
3161    cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191   { (case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_try") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; } &&
3200          { ac_try='test -s conftest.$ac_objext'
3201   { (case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_try") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; }; then
3210   ac_cv_prog_cc_g=yes
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215         CFLAGS=""
3216       cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 int
3224 main ()
3225 {
3226
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235   *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238   (eval "$ac_compile") 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; } &&
3255          { ac_try='test -s conftest.$ac_objext'
3256   { (case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261   (eval "$ac_try") 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; }; then
3265   :
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270         ac_c_werror_flag=$ac_save_c_werror_flag
3271          CFLAGS="-g"
3272          cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279 int
3280 main ()
3281 {
3282
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_compile") 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } &&
3301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302   { (case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_try") 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; } &&
3311          { ac_try='test -s conftest.$ac_objext'
3312   { (case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_try") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   ac_cv_prog_cc_g=yes
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3337 fi
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3340 if test "$ac_test_CFLAGS" = set; then
3341   CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343   if test "$GCC" = yes; then
3344     CFLAGS="-g -O2"
3345   else
3346     CFLAGS="-g"
3347   fi
3348 else
3349   if test "$GCC" = yes; then
3350     CFLAGS="-O2"
3351   else
3352     CFLAGS=
3353   fi
3354 fi
3355 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3356 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_cc_c89+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   ac_cv_prog_cc_c89=no
3361 ac_save_CC=$CC
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376      char **p;
3377      int i;
3378 {
3379   return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383   char *s;
3384   va_list v;
3385   va_start (v,p);
3386   s = g (p, va_arg (v,int));
3387   va_end (v);
3388   return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3392    function prototypes and stuff, but not '\xHH' hex character constants.
3393    These don't provoke an error unfortunately, instead are silently treated
3394    as 'x'.  The following induces an error, until -std is added to get
3395    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3396    array size at least.  It's necessary to write '\x00'==0 to get something
3397    that's true only with -std.  */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401    inside strings and character constants.  */
3402 #define FOO(x) 'x'
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3411 int
3412 main ()
3413 {
3414 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 do
3422   CC="$ac_save_CC $ac_arg"
3423   rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_compile") 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3438   { (case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_try") 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; } &&
3447          { ac_try='test -s conftest.$ac_objext'
3448   { (case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_try") 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   ac_cv_prog_cc_c89=$ac_arg
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462
3463 fi
3464
3465 rm -f core conftest.err conftest.$ac_objext
3466   test "x$ac_cv_prog_cc_c89" != "xno" && break
3467 done
3468 rm -f conftest.$ac_ext
3469 CC=$ac_save_CC
3470
3471 fi
3472 # AC_CACHE_VAL
3473 case "x$ac_cv_prog_cc_c89" in
3474   x)
3475     { echo "$as_me:$LINENO: result: none needed" >&5
3476 echo "${ECHO_T}none needed" >&6; } ;;
3477   xno)
3478     { echo "$as_me:$LINENO: result: unsupported" >&5
3479 echo "${ECHO_T}unsupported" >&6; } ;;
3480   *)
3481     CC="$CC $ac_cv_prog_cc_c89"
3482     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3483 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3484 esac
3485
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3501 # On Suns, sometimes $CPP names a directory.
3502 if test -n "$CPP" && test -d "$CPP"; then
3503   CPP=
3504 fi
3505 if test -z "$CPP"; then
3506   if test "${ac_cv_prog_CPP+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509       # Double quotes because CPP needs to be expanded
3510     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3511     do
3512       ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3514 do
3515   # Use a header file that comes with gcc, so configuring glibc
3516   # with a fresh cross-compiler works.
3517   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518   # <limits.h> exists even on freestanding compilers.
3519   # On the NeXT, cc -E runs the code through the compiler's parser,
3520   # not just through cpp. "Syntax error" is here to catch this case.
3521   cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #ifdef __STDC__
3528 # include <limits.h>
3529 #else
3530 # include <assert.h>
3531 #endif
3532                      Syntax error
3533 _ACEOF
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } >/dev/null; then
3547   if test -s conftest.err; then
3548     ac_cpp_err=$ac_c_preproc_warn_flag
3549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550   else
3551     ac_cpp_err=
3552   fi
3553 else
3554   ac_cpp_err=yes
3555 fi
3556 if test -z "$ac_cpp_err"; then
3557   :
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562   # Broken: fails on valid input.
3563 continue
3564 fi
3565
3566 rm -f conftest.err conftest.$ac_ext
3567
3568   # OK, works on sane cases.  Now check whether nonexistent headers
3569   # can be detected and how.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <ac_nonexistent.h>
3577 _ACEOF
3578 if { (ac_try="$ac_cpp conftest.$ac_ext"
3579 case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585   ac_status=$?
3586   grep -v '^ *+' conftest.er1 >conftest.err
3587   rm -f conftest.er1
3588   cat conftest.err >&5
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); } >/dev/null; then
3591   if test -s conftest.err; then
3592     ac_cpp_err=$ac_c_preproc_warn_flag
3593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594   else
3595     ac_cpp_err=
3596   fi
3597 else
3598   ac_cpp_err=yes
3599 fi
3600 if test -z "$ac_cpp_err"; then
3601   # Broken: success on invalid input.
3602 continue
3603 else
3604   echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607   # Passes both tests.
3608 ac_preproc_ok=:
3609 break
3610 fi
3611
3612 rm -f conftest.err conftest.$ac_ext
3613
3614 done
3615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616 rm -f conftest.err conftest.$ac_ext
3617 if $ac_preproc_ok; then
3618   break
3619 fi
3620
3621     done
3622     ac_cv_prog_CPP=$CPP
3623
3624 fi
3625   CPP=$ac_cv_prog_CPP
3626 else
3627   ac_cv_prog_CPP=$CPP
3628 fi
3629 { echo "$as_me:$LINENO: result: $CPP" >&5
3630 echo "${ECHO_T}$CPP" >&6; }
3631 ac_preproc_ok=false
3632 for ac_c_preproc_warn_flag in '' yes
3633 do
3634   # Use a header file that comes with gcc, so configuring glibc
3635   # with a fresh cross-compiler works.
3636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3637   # <limits.h> exists even on freestanding compilers.
3638   # On the NeXT, cc -E runs the code through the compiler's parser,
3639   # not just through cpp. "Syntax error" is here to catch this case.
3640   cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 #ifdef __STDC__
3647 # include <limits.h>
3648 #else
3649 # include <assert.h>
3650 #endif
3651                      Syntax error
3652 _ACEOF
3653 if { (ac_try="$ac_cpp conftest.$ac_ext"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3660   ac_status=$?
3661   grep -v '^ *+' conftest.er1 >conftest.err
3662   rm -f conftest.er1
3663   cat conftest.err >&5
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } >/dev/null; then
3666   if test -s conftest.err; then
3667     ac_cpp_err=$ac_c_preproc_warn_flag
3668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3669   else
3670     ac_cpp_err=
3671   fi
3672 else
3673   ac_cpp_err=yes
3674 fi
3675 if test -z "$ac_cpp_err"; then
3676   :
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681   # Broken: fails on valid input.
3682 continue
3683 fi
3684
3685 rm -f conftest.err conftest.$ac_ext
3686
3687   # OK, works on sane cases.  Now check whether nonexistent headers
3688   # can be detected and how.
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695 #include <ac_nonexistent.h>
3696 _ACEOF
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } >/dev/null; then
3710   if test -s conftest.err; then
3711     ac_cpp_err=$ac_c_preproc_warn_flag
3712     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3713   else
3714     ac_cpp_err=
3715   fi
3716 else
3717   ac_cpp_err=yes
3718 fi
3719 if test -z "$ac_cpp_err"; then
3720   # Broken: success on invalid input.
3721 continue
3722 else
3723   echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726   # Passes both tests.
3727 ac_preproc_ok=:
3728 break
3729 fi
3730
3731 rm -f conftest.err conftest.$ac_ext
3732
3733 done
3734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3735 rm -f conftest.err conftest.$ac_ext
3736 if $ac_preproc_ok; then
3737   :
3738 else
3739   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3742 See \`config.log' for more details." >&2;}
3743    { (exit 1); exit 1; }; }
3744 fi
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751
3752
3753 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3754 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3755 if test "${ac_cv_path_GREP+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   # Extract the first word of "grep ggrep" to use in msg output
3759 if test -z "$GREP"; then
3760 set dummy grep ggrep; ac_prog_name=$2
3761 if test "${ac_cv_path_GREP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   ac_path_GREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_prog in grep ggrep; do
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3774     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3775     # Check for GNU ac_path_GREP and select it if it is found.
3776   # Check for GNU $ac_path_GREP
3777 case `"$ac_path_GREP" --version 2>&1` in
3778 *GNU*)
3779   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3780 *)
3781   ac_count=0
3782   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783   while :
3784   do
3785     cat "conftest.in" "conftest.in" >"conftest.tmp"
3786     mv "conftest.tmp" "conftest.in"
3787     cp "conftest.in" "conftest.nl"
3788     echo 'GREP' >> "conftest.nl"
3789     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791     ac_count=`expr $ac_count + 1`
3792     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3793       # Best one so far, save it but keep looking for a better one
3794       ac_cv_path_GREP="$ac_path_GREP"
3795       ac_path_GREP_max=$ac_count
3796     fi
3797     # 10*(2^10) chars as input seems more than enough
3798     test $ac_count -gt 10 && break
3799   done
3800   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 esac
3802
3803
3804     $ac_path_GREP_found && break 3
3805   done
3806 done
3807
3808 done
3809 IFS=$as_save_IFS
3810
3811
3812 fi
3813
3814 GREP="$ac_cv_path_GREP"
3815 if test -z "$GREP"; then
3816   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818    { (exit 1); exit 1; }; }
3819 fi
3820
3821 else
3822   ac_cv_path_GREP=$GREP
3823 fi
3824
3825
3826 fi
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3829  GREP="$ac_cv_path_GREP"
3830
3831
3832 { echo "$as_me:$LINENO: checking for egrep" >&5
3833 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3834 if test "${ac_cv_path_EGREP+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838    then ac_cv_path_EGREP="$GREP -E"
3839    else
3840      # Extract the first word of "egrep" to use in msg output
3841 if test -z "$EGREP"; then
3842 set dummy egrep; ac_prog_name=$2
3843 if test "${ac_cv_path_EGREP+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   ac_path_EGREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_prog in egrep; do
3854   for ac_exec_ext in '' $ac_executable_extensions; do
3855     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3856     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3857     # Check for GNU ac_path_EGREP and select it if it is found.
3858   # Check for GNU $ac_path_EGREP
3859 case `"$ac_path_EGREP" --version 2>&1` in
3860 *GNU*)
3861   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3862 *)
3863   ac_count=0
3864   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3865   while :
3866   do
3867     cat "conftest.in" "conftest.in" >"conftest.tmp"
3868     mv "conftest.tmp" "conftest.in"
3869     cp "conftest.in" "conftest.nl"
3870     echo 'EGREP' >> "conftest.nl"
3871     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873     ac_count=`expr $ac_count + 1`
3874     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3875       # Best one so far, save it but keep looking for a better one
3876       ac_cv_path_EGREP="$ac_path_EGREP"
3877       ac_path_EGREP_max=$ac_count
3878     fi
3879     # 10*(2^10) chars as input seems more than enough
3880     test $ac_count -gt 10 && break
3881   done
3882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 esac
3884
3885
3886     $ac_path_EGREP_found && break 3
3887   done
3888 done
3889
3890 done
3891 IFS=$as_save_IFS
3892
3893
3894 fi
3895
3896 EGREP="$ac_cv_path_EGREP"
3897 if test -z "$EGREP"; then
3898   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3899 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3900    { (exit 1); exit 1; }; }
3901 fi
3902
3903 else
3904   ac_cv_path_EGREP=$EGREP
3905 fi
3906
3907
3908    fi
3909 fi
3910 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3911 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3912  EGREP="$ac_cv_path_EGREP"
3913
3914
3915 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3916 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3917 if test "${ac_cv_header_stdc+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h.  */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h.  */
3926 #include <stdlib.h>
3927 #include <stdarg.h>
3928 #include <string.h>
3929 #include <float.h>
3930
3931 int
3932 main ()
3933 {
3934
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946   (eval "$ac_compile") 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } &&
3953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3954   { (case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959   (eval "$ac_try") 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; } &&
3963          { ac_try='test -s conftest.$ac_objext'
3964   { (case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_try") 2>&5
3970   ac_status=$?
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); }; }; then
3973   ac_cv_header_stdc=yes
3974 else
3975   echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978         ac_cv_header_stdc=no
3979 fi
3980
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982
3983 if test $ac_cv_header_stdc = yes; then
3984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3985   cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #include <string.h>
3992
3993 _ACEOF
3994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3995   $EGREP "memchr" >/dev/null 2>&1; then
3996   :
3997 else
3998   ac_cv_header_stdc=no
3999 fi
4000 rm -f conftest*
4001
4002 fi
4003
4004 if test $ac_cv_header_stdc = yes; then
4005   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006   cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012 #include <stdlib.h>
4013
4014 _ACEOF
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016   $EGREP "free" >/dev/null 2>&1; then
4017   :
4018 else
4019   ac_cv_header_stdc=no
4020 fi
4021 rm -f conftest*
4022
4023 fi
4024
4025 if test $ac_cv_header_stdc = yes; then
4026   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4027   if test "$cross_compiling" = yes; then
4028   :
4029 else
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 #include <ctype.h>
4037 #include <stdlib.h>
4038 #if ((' ' & 0x0FF) == 0x020)
4039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4041 #else
4042 # define ISLOWER(c) \
4043                    (('a' <= (c) && (c) <= 'i') \
4044                      || ('j' <= (c) && (c) <= 'r') \
4045                      || ('s' <= (c) && (c) <= 'z'))
4046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4047 #endif
4048
4049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4050 int
4051 main ()
4052 {
4053   int i;
4054   for (i = 0; i < 256; i++)
4055     if (XOR (islower (i), ISLOWER (i))
4056         || toupper (i) != TOUPPER (i))
4057       return 2;
4058   return 0;
4059 }
4060 _ACEOF
4061 rm -f conftest$ac_exeext
4062 if { (ac_try="$ac_link"
4063 case "(($ac_try" in
4064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065   *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068   (eval "$ac_link") 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4072   { (case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_try") 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   :
4082 else
4083   echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 ( exit $ac_status )
4088 ac_cv_header_stdc=no
4089 fi
4090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4091 fi
4092
4093
4094 fi
4095 fi
4096 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4097 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4098 if test $ac_cv_header_stdc = yes; then
4099
4100 cat >>confdefs.h <<\_ACEOF
4101 #define STDC_HEADERS 1
4102 _ACEOF
4103
4104 fi
4105
4106 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4117                   inttypes.h stdint.h unistd.h
4118 do
4119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 $ac_includes_default
4132
4133 #include <$ac_header>
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } &&
4149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150   { (case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; } &&
4159          { ac_try='test -s conftest.$ac_objext'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   eval "$as_ac_Header=yes"
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174         eval "$as_ac_Header=no"
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 fi
4179 ac_res=`eval echo '${'$as_ac_Header'}'`
4180                { echo "$as_me:$LINENO: result: $ac_res" >&5
4181 echo "${ECHO_T}$ac_res" >&6; }
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183   cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 _ACEOF
4186
4187 fi
4188
4189 done
4190
4191
4192 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4194 if test "${ac_cv_c_bigendian+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   # See if sys/param.h defines the BYTE_ORDER macro.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <sys/types.h>
4205 #include <sys/param.h>
4206
4207 int
4208 main ()
4209 {
4210 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4211  bogus endian macros
4212 #endif
4213
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_compile") 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233   { (case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_try") 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; } &&
4242          { ac_try='test -s conftest.$ac_objext'
4243   { (case "(($ac_try" in
4244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245   *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248   (eval "$ac_try") 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   # It does; now see whether it defined to BIG_ENDIAN or not.
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <sys/types.h>
4260 #include <sys/param.h>
4261
4262 int
4263 main ()
4264 {
4265 #if BYTE_ORDER != BIG_ENDIAN
4266  not big endian
4267 #endif
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } &&
4287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288   { (case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; } &&
4297          { ac_try='test -s conftest.$ac_objext'
4298   { (case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_c_bigendian=yes
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312         ac_cv_c_bigendian=no
4313 fi
4314
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 else
4317   echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320         # It does not; compile a test program.
4321 if test "$cross_compiling" = yes; then
4322   # try to guess the endianness by grepping values into an object file
4323   ac_cv_c_bigendian=unknown
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4331 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4332 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4333 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4334 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4335 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4336 int
4337 main ()
4338 {
4339  _ascii (); _ebcdic ();
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4379   ac_cv_c_bigendian=yes
4380 fi
4381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4382   if test "$ac_cv_c_bigendian" = unknown; then
4383     ac_cv_c_bigendian=no
4384   else
4385     # finding both strings is unlikely to happen, but who knows?
4386     ac_cv_c_bigendian=unknown
4387   fi
4388 fi
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 else
4398   cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404 $ac_includes_default
4405 int
4406 main ()
4407 {
4408
4409   /* Are we little or big endian?  From Harbison&Steele.  */
4410   union
4411   {
4412     long int l;
4413     char c[sizeof (long int)];
4414   } u;
4415   u.l = 1;
4416   return u.c[sizeof (long int) - 1] == 1;
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest$ac_exeext
4423 if { (ac_try="$ac_link"
4424 case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_link") 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4433   { (case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438   (eval "$ac_try") 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   ac_cv_c_bigendian=no
4443 else
4444   echo "$as_me: program exited with status $ac_status" >&5
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 ( exit $ac_status )
4449 ac_cv_c_bigendian=yes
4450 fi
4451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4452 fi
4453
4454
4455 fi
4456
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 fi
4459 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4460 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4461 case $ac_cv_c_bigendian in
4462   yes)
4463     ENDIAN=big
4464  ;;
4465   no)
4466     ENDIAN=little
4467  ;;
4468   *)
4469     { { echo "$as_me:$LINENO: error: unknown endianness
4470 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4471 echo "$as_me: error: unknown endianness
4472 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4473    { (exit 1); exit 1; }; } ;;
4474 esac
4475
4476
4477 if test "$cross_compiling" = yes; then
4478   LLVM_CROSS_COMPILING=1
4479
4480
4481 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4482 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4483 if test "${ac_cv_build_exeext+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4487   ac_cv_build_exeext=.exe
4488 else
4489   ac_build_prefix=${build_alias}-
4490
4491   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4492 set dummy ${ac_build_prefix}gcc; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   if test -n "$BUILD_CC"; then
4499   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 BUILD_CC=$ac_cv_prog_BUILD_CC
4519 if test -n "$BUILD_CC"; then
4520   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4521 echo "${ECHO_T}$BUILD_CC" >&6; }
4522 else
4523   { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4525 fi
4526
4527
4528   if test -z "$BUILD_CC"; then
4529      # Extract the first word of "gcc", so it can be a program name with args.
4530 set dummy gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   if test -n "$BUILD_CC"; then
4537   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544   for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_prog_BUILD_CC="gcc"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 BUILD_CC=$ac_cv_prog_BUILD_CC
4557 if test -n "$BUILD_CC"; then
4558   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4559 echo "${ECHO_T}$BUILD_CC" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566      if test -z "$BUILD_CC"; then
4567        # Extract the first word of "cc", so it can be a program name with args.
4568 set dummy cc; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   if test -n "$BUILD_CC"; then
4575   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4576 else
4577   ac_prog_rejected=no
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for ac_exec_ext in '' $ac_executable_extensions; do
4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4585     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586        ac_prog_rejected=yes
4587        continue
4588      fi
4589     ac_cv_prog_BUILD_CC="cc"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597 if test $ac_prog_rejected = yes; then
4598   # We found a bogon in the path, so make sure we never use it.
4599   set dummy $ac_cv_prog_BUILD_CC
4600   shift
4601   if test $# != 0; then
4602     # We chose a different compiler from the bogus one.
4603     # However, it has the same basename, so the bogon will be chosen
4604     # first if we set BUILD_CC to just the basename; use the full file name.
4605     shift
4606     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4607   fi
4608 fi
4609 fi
4610 fi
4611 BUILD_CC=$ac_cv_prog_BUILD_CC
4612 if test -n "$BUILD_CC"; then
4613   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4614 echo "${ECHO_T}$BUILD_CC" >&6; }
4615 else
4616   { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4618 fi
4619
4620
4621      fi
4622   fi
4623   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4624 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4625    { (exit 1); exit 1; }; }
4626   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4627   rm -f conftest*
4628   echo 'int main () { return 0; }' > conftest.$ac_ext
4629   ac_cv_build_exeext=
4630   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4631   (eval $ac_build_link) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; then
4635     for file in conftest.*; do
4636       case $file in
4637       *.c | *.o | *.obj | *.dSYM) ;;
4638       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4639       esac
4640     done
4641   else
4642     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4643 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4644    { (exit 1); exit 1; }; }
4645   fi
4646   rm -f conftest*
4647   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4648 fi
4649 fi
4650
4651 BUILD_EXEEXT=""
4652 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4653 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4654 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4655 ac_build_exeext=$BUILD_EXEEXT
4656
4657   ac_build_prefix=${build_alias}-
4658   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4659 set dummy ${ac_build_prefix}g++; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   if test -n "$BUILD_CXX"; then
4666   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4686 if test -n "$BUILD_CXX"; then
4687   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4688 echo "${ECHO_T}$BUILD_CXX" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695   if test -z "$BUILD_CXX"; then
4696      # Extract the first word of "g++", so it can be a program name with args.
4697 set dummy g++; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   if test -n "$BUILD_CXX"; then
4704   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_BUILD_CXX="g++"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4724 if test -n "$BUILD_CXX"; then
4725   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4726 echo "${ECHO_T}$BUILD_CXX" >&6; }
4727 else
4728   { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731
4732
4733      if test -z "$BUILD_CXX"; then
4734        # Extract the first word of "c++", so it can be a program name with args.
4735 set dummy c++; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$BUILD_CXX"; then
4742   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4743 else
4744   ac_prog_rejected=no
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750   for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4753        ac_prog_rejected=yes
4754        continue
4755      fi
4756     ac_cv_prog_BUILD_CXX="c++"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 if test $ac_prog_rejected = yes; then
4765   # We found a bogon in the path, so make sure we never use it.
4766   set dummy $ac_cv_prog_BUILD_CXX
4767   shift
4768   if test $# != 0; then
4769     # We chose a different compiler from the bogus one.
4770     # However, it has the same basename, so the bogon will be chosen
4771     # first if we set BUILD_CXX to just the basename; use the full file name.
4772     shift
4773     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4774   fi
4775 fi
4776 fi
4777 fi
4778 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4779 if test -n "$BUILD_CXX"; then
4780   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4781 echo "${ECHO_T}$BUILD_CXX" >&6; }
4782 else
4783   { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4785 fi
4786
4787
4788      fi
4789   fi
4790 else
4791   LLVM_CROSS_COMPILING=0
4792
4793 fi
4794
4795 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4796   cvsbuild="yes"
4797   optimize="no"
4798   CVSBUILD=CVSBUILD=1
4799
4800 else
4801   cvsbuild="no"
4802   optimize="yes"
4803 fi
4804
4805
4806 # Check whether --enable-optimized was given.
4807 if test "${enable_optimized+set}" = set; then
4808   enableval=$enable_optimized;
4809 else
4810   enableval=$optimize
4811 fi
4812
4813 if test ${enableval} = "no" ; then
4814   ENABLE_OPTIMIZED=
4815
4816 else
4817   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4818
4819 fi
4820
4821 # Check whether --enable-profiling was given.
4822 if test "${enable_profiling+set}" = set; then
4823   enableval=$enable_profiling;
4824 else
4825   enableval="no"
4826 fi
4827
4828 if test ${enableval} = "no" ; then
4829   ENABLE_PROFILING=
4830
4831 else
4832   ENABLE_PROFILING=ENABLE_PROFILING=1
4833
4834 fi
4835
4836 # Check whether --enable-assertions was given.
4837 if test "${enable_assertions+set}" = set; then
4838   enableval=$enable_assertions;
4839 else
4840   enableval="yes"
4841 fi
4842
4843 if test ${enableval} = "yes" ; then
4844   DISABLE_ASSERTIONS=
4845
4846 else
4847   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4848
4849 fi
4850
4851 # Check whether --enable-expensive-checks was given.
4852 if test "${enable_expensive_checks+set}" = set; then
4853   enableval=$enable_expensive_checks;
4854 else
4855   enableval="no"
4856 fi
4857
4858 if test ${enableval} = "yes" ; then
4859   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4860
4861   EXPENSIVE_CHECKS=yes
4862
4863 else
4864   ENABLE_EXPENSIVE_CHECKS=
4865
4866   EXPENSIVE_CHECKS=no
4867
4868 fi
4869
4870 # Check whether --enable-debug-runtime was given.
4871 if test "${enable_debug_runtime+set}" = set; then
4872   enableval=$enable_debug_runtime;
4873 else
4874   enableval=no
4875 fi
4876
4877 if test ${enableval} = "no" ; then
4878   DEBUG_RUNTIME=
4879
4880 else
4881   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4882
4883 fi
4884
4885 # Check whether --enable-jit was given.
4886 if test "${enable_jit+set}" = set; then
4887   enableval=$enable_jit;
4888 else
4889   enableval=default
4890 fi
4891
4892 if test ${enableval} = "no"
4893 then
4894   JIT=
4895
4896 else
4897   case "$llvm_cv_target_arch" in
4898     x86)         TARGET_HAS_JIT=1
4899  ;;
4900     Sparc)       TARGET_HAS_JIT=0
4901  ;;
4902     PowerPC)     TARGET_HAS_JIT=1
4903  ;;
4904     x86_64)      TARGET_HAS_JIT=1
4905  ;;
4906     Alpha)       TARGET_HAS_JIT=1
4907  ;;
4908     ARM)         TARGET_HAS_JIT=1
4909  ;;
4910     Mips)        TARGET_HAS_JIT=0
4911  ;;
4912     PIC16)       TARGET_HAS_JIT=0
4913  ;;
4914     XCore)       TARGET_HAS_JIT=0
4915  ;;
4916     MSP430)      TARGET_HAS_JIT=0
4917  ;;
4918     SystemZ)     TARGET_HAS_JIT=0
4919  ;;
4920     Blackfin)    TARGET_HAS_JIT=0
4921  ;;
4922     *)           TARGET_HAS_JIT=0
4923  ;;
4924   esac
4925 fi
4926
4927 # Check whether --enable-doxygen was given.
4928 if test "${enable_doxygen+set}" = set; then
4929   enableval=$enable_doxygen;
4930 else
4931   enableval=default
4932 fi
4933
4934 case "$enableval" in
4935   yes) ENABLE_DOXYGEN=1
4936  ;;
4937   no)  ENABLE_DOXYGEN=0
4938  ;;
4939   default) ENABLE_DOXYGEN=0
4940  ;;
4941   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4943    { (exit 1); exit 1; }; } ;;
4944 esac
4945
4946 # Check whether --enable-threads was given.
4947 if test "${enable_threads+set}" = set; then
4948   enableval=$enable_threads;
4949 else
4950   enableval=default
4951 fi
4952
4953 case "$enableval" in
4954   yes) ENABLE_THREADS=1
4955  ;;
4956   no)  ENABLE_THREADS=0
4957  ;;
4958   default) ENABLE_THREADS=1
4959  ;;
4960   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4962    { (exit 1); exit 1; }; } ;;
4963 esac
4964
4965 cat >>confdefs.h <<_ACEOF
4966 #define ENABLE_THREADS $ENABLE_THREADS
4967 _ACEOF
4968
4969
4970 # Check whether --enable-pic was given.
4971 if test "${enable_pic+set}" = set; then
4972   enableval=$enable_pic;
4973 else
4974   enableval=default
4975 fi
4976
4977 case "$enableval" in
4978   yes) ENABLE_PIC=1
4979  ;;
4980   no)  ENABLE_PIC=0
4981  ;;
4982   default) ENABLE_PIC=1
4983  ;;
4984   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4985 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4986    { (exit 1); exit 1; }; } ;;
4987 esac
4988
4989 cat >>confdefs.h <<_ACEOF
4990 #define ENABLE_PIC $ENABLE_PIC
4991 _ACEOF
4992
4993
4994 TARGETS_TO_BUILD=""
4995 # Check whether --enable-targets was given.
4996 if test "${enable_targets+set}" = set; then
4997   enableval=$enable_targets;
4998 else
4999   enableval=all
5000 fi
5001
5002 if test "$enableval" = host-only ; then
5003   enableval=host
5004 fi
5005 case "$enableval" in
5006   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5007   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5008       case "$a_target" in
5009         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5010         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5011         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5012         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5013         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5014         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5015         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5016         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5017         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5018         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5019         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5020         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5021         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5022         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5023         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5024         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5025         host) case "$llvm_cv_target_arch" in
5026             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5027             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5029             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5030             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5031             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5032             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5033             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5034             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5035             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5036             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5037             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5038             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5039             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5040 echo "$as_me: error: Can not set target to build" >&2;}
5041    { (exit 1); exit 1; }; } ;;
5042           esac ;;
5043         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5044 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5045    { (exit 1); exit 1; }; } ;;
5046       esac
5047   done
5048   ;;
5049 esac
5050 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5051
5052
5053 # Determine whether we are building LLVM support for the native architecture.
5054 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5055 for a_target in $TARGETS_TO_BUILD; do
5056   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5057     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5061 _ACEOF
5062
5063   fi
5064 done
5065
5066 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5067 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5068 LLVM_ENUM_TARGETS=""
5069 LLVM_ENUM_ASM_PRINTERS=""
5070 LLVM_ENUM_ASM_PARSERS=""
5071 for target_to_build in $TARGETS_TO_BUILD; do
5072   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5073   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5074     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5075   fi
5076   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5077     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5078   fi
5079 done
5080
5081
5082
5083
5084 # Check whether --enable-cbe-printf-a was given.
5085 if test "${enable_cbe_printf_a+set}" = set; then
5086   enableval=$enable_cbe_printf_a;
5087 else
5088   enableval=default
5089 fi
5090
5091 case "$enableval" in
5092   yes) ENABLE_CBE_PRINTF_A=1
5093  ;;
5094   no)  ENABLE_CBE_PRINTF_A=0
5095  ;;
5096   default)  ENABLE_CBE_PRINTF_A=1
5097  ;;
5098   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5099 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5100    { (exit 1); exit 1; }; } ;;
5101 esac
5102
5103 cat >>confdefs.h <<_ACEOF
5104 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5105 _ACEOF
5106
5107
5108
5109 # Check whether --with-llvmgccdir was given.
5110 if test "${with_llvmgccdir+set}" = set; then
5111   withval=$with_llvmgccdir;
5112 else
5113   withval=default
5114 fi
5115
5116 case "$withval" in
5117   default) WITH_LLVMGCCDIR=default ;;
5118   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5119   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5120 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5121    { (exit 1); exit 1; }; } ;;
5122 esac
5123
5124
5125 # Check whether --with-llvmgcc was given.
5126 if test "${with_llvmgcc+set}" = set; then
5127   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5128       WITH_LLVMGCCDIR=""
5129 fi
5130
5131
5132
5133 # Check whether --with-llvmgxx was given.
5134 if test "${with_llvmgxx+set}" = set; then
5135   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5136     WITH_LLVMGCCDIR=""
5137 fi
5138
5139
5140 if test -n "$LLVMGCC"; then
5141    LLVMGCCCOMMAND="$LLVMGCC"
5142 fi
5143
5144 if test -n "$LLVMGXX"; then
5145    LLVMGXXCOMMAND="$LLVMGXX"
5146 fi
5147
5148 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5149    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5150 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5151    { (exit 1); exit 1; }; };
5152 fi
5153
5154 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5155    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5156 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5157    { (exit 1); exit 1; }; };
5158 fi
5159
5160
5161 # Check whether --with-extra-options was given.
5162 if test "${with_extra_options+set}" = set; then
5163   withval=$with_extra_options;
5164 else
5165   withval=default
5166 fi
5167
5168 case "$withval" in
5169   default) EXTRA_OPTIONS= ;;
5170   *) EXTRA_OPTIONS=$withval ;;
5171 esac
5172 EXTRA_OPTIONS=$EXTRA_OPTIONS
5173
5174
5175 # Check whether --enable-bindings was given.
5176 if test "${enable_bindings+set}" = set; then
5177   enableval=$enable_bindings;
5178 else
5179   enableval=default
5180 fi
5181
5182 BINDINGS_TO_BUILD=""
5183 case "$enableval" in
5184   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5185   all ) BINDINGS_TO_BUILD="ocaml" ;;
5186   none | no) BINDINGS_TO_BUILD="" ;;
5187   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5188       case "$a_binding" in
5189         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5190         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5191 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5192    { (exit 1); exit 1; }; } ;;
5193       esac
5194   done
5195   ;;
5196 esac
5197
5198
5199 # Check whether --with-ocaml-libdir was given.
5200 if test "${with_ocaml_libdir+set}" = set; then
5201   withval=$with_ocaml_libdir;
5202 else
5203   withval=auto
5204 fi
5205
5206 case "$withval" in
5207   auto) with_ocaml_libdir="$withval" ;;
5208   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5209   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5210 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5211    { (exit 1); exit 1; }; } ;;
5212 esac
5213
5214
5215 # Check whether --with-binutils-include was given.
5216 if test "${with_binutils_include+set}" = set; then
5217   withval=$with_binutils_include;
5218 else
5219   withval=default
5220 fi
5221
5222 case "$withval" in
5223   default) WITH_BINUTILS_INCDIR=default ;;
5224   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5225   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5226 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228 esac
5229 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5230   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5231
5232   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5233      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5234      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5235 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5236    { (exit 1); exit 1; }; };
5237   fi
5238 fi
5239
5240 # Check whether --enable-libffi was given.
5241 if test "${enable_libffi+set}" = set; then
5242   enableval=$enable_libffi;
5243 else
5244   enableval=yes
5245 fi
5246
5247 case "$enableval" in
5248   yes) llvm_cv_enable_libffi="yes" ;;
5249   no)  llvm_cv_enable_libffi="no"  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 if test "$llvm_cv_os_type" = "Win32" ; then
5256    llvmc_dynamic="yes"
5257 else
5258    llvmc_dynamic="no"
5259 fi
5260
5261 # Check whether --enable-llvmc-dynamic was given.
5262 if test "${enable_llvmc_dynamic+set}" = set; then
5263   enableval=$enable_llvmc_dynamic;
5264 else
5265   enableval=$llvmc_dynamic
5266 fi
5267
5268 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5269    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5270
5271 else
5272    ENABLE_LLVMC_DYNAMIC=
5273
5274 fi
5275
5276 # Check whether --enable-llvmc-dynamic-plugins was given.
5277 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5278   enableval=$enable_llvmc_dynamic_plugins;
5279 else
5280   enableval=yes
5281 fi
5282
5283 if test ${enableval} = "yes" ; then
5284    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5285
5286 else
5287    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5288
5289 fi
5290
5291
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5298 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5299 # On Suns, sometimes $CPP names a directory.
5300 if test -n "$CPP" && test -d "$CPP"; then
5301   CPP=
5302 fi
5303 if test -z "$CPP"; then
5304   if test "${ac_cv_prog_CPP+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307       # Double quotes because CPP needs to be expanded
5308     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5309     do
5310       ac_preproc_ok=false
5311 for ac_c_preproc_warn_flag in '' yes
5312 do
5313   # Use a header file that comes with gcc, so configuring glibc
5314   # with a fresh cross-compiler works.
5315   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316   # <limits.h> exists even on freestanding compilers.
5317   # On the NeXT, cc -E runs the code through the compiler's parser,
5318   # not just through cpp. "Syntax error" is here to catch this case.
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330                      Syntax error
5331 _ACEOF
5332 if { (ac_try="$ac_cpp conftest.$ac_ext"
5333 case "(($ac_try" in
5334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335   *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339   ac_status=$?
5340   grep -v '^ *+' conftest.er1 >conftest.err
5341   rm -f conftest.er1
5342   cat conftest.err >&5
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); } >/dev/null; then
5345   if test -s conftest.err; then
5346     ac_cpp_err=$ac_c_preproc_warn_flag
5347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348   else
5349     ac_cpp_err=
5350   fi
5351 else
5352   ac_cpp_err=yes
5353 fi
5354 if test -z "$ac_cpp_err"; then
5355   :
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360   # Broken: fails on valid input.
5361 continue
5362 fi
5363
5364 rm -f conftest.err conftest.$ac_ext
5365
5366   # OK, works on sane cases.  Now check whether nonexistent headers
5367   # can be detected and how.
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #include <ac_nonexistent.h>
5375 _ACEOF
5376 if { (ac_try="$ac_cpp conftest.$ac_ext"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } >/dev/null; then
5389   if test -s conftest.err; then
5390     ac_cpp_err=$ac_c_preproc_warn_flag
5391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392   else
5393     ac_cpp_err=
5394   fi
5395 else
5396   ac_cpp_err=yes
5397 fi
5398 if test -z "$ac_cpp_err"; then
5399   # Broken: success on invalid input.
5400 continue
5401 else
5402   echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405   # Passes both tests.
5406 ac_preproc_ok=:
5407 break
5408 fi
5409
5410 rm -f conftest.err conftest.$ac_ext
5411
5412 done
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5416   break
5417 fi
5418
5419     done
5420     ac_cv_prog_CPP=$CPP
5421
5422 fi
5423   CPP=$ac_cv_prog_CPP
5424 else
5425   ac_cv_prog_CPP=$CPP
5426 fi
5427 { echo "$as_me:$LINENO: result: $CPP" >&5
5428 echo "${ECHO_T}$CPP" >&6; }
5429 ac_preproc_ok=false
5430 for ac_c_preproc_warn_flag in '' yes
5431 do
5432   # Use a header file that comes with gcc, so configuring glibc
5433   # with a fresh cross-compiler works.
5434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5435   # <limits.h> exists even on freestanding compilers.
5436   # On the NeXT, cc -E runs the code through the compiler's parser,
5437   # not just through cpp. "Syntax error" is here to catch this case.
5438   cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5449                      Syntax error
5450 _ACEOF
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5452 case "(($ac_try" in
5453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454   *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5458   ac_status=$?
5459   grep -v '^ *+' conftest.er1 >conftest.err
5460   rm -f conftest.er1
5461   cat conftest.err >&5
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } >/dev/null; then
5464   if test -s conftest.err; then
5465     ac_cpp_err=$ac_c_preproc_warn_flag
5466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5467   else
5468     ac_cpp_err=
5469   fi
5470 else
5471   ac_cpp_err=yes
5472 fi
5473 if test -z "$ac_cpp_err"; then
5474   :
5475 else
5476   echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479   # Broken: fails on valid input.
5480 continue
5481 fi
5482
5483 rm -f conftest.err conftest.$ac_ext
5484
5485   # OK, works on sane cases.  Now check whether nonexistent headers
5486   # can be detected and how.
5487   cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493 #include <ac_nonexistent.h>
5494 _ACEOF
5495 if { (ac_try="$ac_cpp conftest.$ac_ext"
5496 case "(($ac_try" in
5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498   *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } >/dev/null; then
5508   if test -s conftest.err; then
5509     ac_cpp_err=$ac_c_preproc_warn_flag
5510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511   else
5512     ac_cpp_err=
5513   fi
5514 else
5515   ac_cpp_err=yes
5516 fi
5517 if test -z "$ac_cpp_err"; then
5518   # Broken: success on invalid input.
5519 continue
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524   # Passes both tests.
5525 ac_preproc_ok=:
5526 break
5527 fi
5528
5529 rm -f conftest.err conftest.$ac_ext
5530
5531 done
5532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5533 rm -f conftest.err conftest.$ac_ext
5534 if $ac_preproc_ok; then
5535   :
5536 else
5537   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5538 See \`config.log' for more details." >&5
5539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5540 See \`config.log' for more details." >&2;}
5541    { (exit 1); exit 1; }; }
5542 fi
5543
5544 ac_ext=c
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 if test -n "$ac_tool_prefix"; then
5556   for ac_prog in gcc
5557   do
5558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5562 if test "${ac_cv_prog_CC+set}" = set; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565   if test -n "$CC"; then
5566   ac_cv_prog_CC="$CC" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571   IFS=$as_save_IFS
5572   test -z "$as_dir" && as_dir=.
5573   for ac_exec_ext in '' $ac_executable_extensions; do
5574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577     break 2
5578   fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 CC=$ac_cv_prog_CC
5586 if test -n "$CC"; then
5587   { echo "$as_me:$LINENO: result: $CC" >&5
5588 echo "${ECHO_T}$CC" >&6; }
5589 else
5590   { echo "$as_me:$LINENO: result: no" >&5
5591 echo "${ECHO_T}no" >&6; }
5592 fi
5593
5594
5595     test -n "$CC" && break
5596   done
5597 fi
5598 if test -z "$CC"; then
5599   ac_ct_CC=$CC
5600   for ac_prog in gcc
5601 do
5602   # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if test -n "$ac_ct_CC"; then
5610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_ac_ct_CC="$ac_prog"
5620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5630 if test -n "$ac_ct_CC"; then
5631   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5632 echo "${ECHO_T}$ac_ct_CC" >&6; }
5633 else
5634   { echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6; }
5636 fi
5637
5638
5639   test -n "$ac_ct_CC" && break
5640 done
5641
5642   if test "x$ac_ct_CC" = x; then
5643     CC=""
5644   else
5645     case $cross_compiling:$ac_tool_warned in
5646 yes:)
5647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5648 whose name does not start with the host triplet.  If you think this
5649 configuration is useful to you, please write to autoconf@gnu.org." >&5
5650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5651 whose name does not start with the host triplet.  If you think this
5652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5653 ac_tool_warned=yes ;;
5654 esac
5655     CC=$ac_ct_CC
5656   fi
5657 fi
5658
5659
5660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5661 See \`config.log' for more details." >&5
5662 echo "$as_me: error: no acceptable C compiler found in \$PATH
5663 See \`config.log' for more details." >&2;}
5664    { (exit 1); exit 1; }; }
5665
5666 # Provide some information about the compiler.
5667 echo "$as_me:$LINENO: checking for C compiler version" >&5
5668 ac_compiler=`set X $ac_compile; echo $2`
5669 { (ac_try="$ac_compiler --version >&5"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675   (eval "$ac_compiler --version >&5") 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }
5679 { (ac_try="$ac_compiler -v >&5"
5680 case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_compiler -v >&5") 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }
5689 { (ac_try="$ac_compiler -V >&5"
5690 case "(($ac_try" in
5691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692   *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695   (eval "$ac_compiler -V >&5") 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }
5699
5700 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5701 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5702 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711
5712 int
5713 main ()
5714 {
5715 #ifndef __GNUC__
5716        choke me
5717 #endif
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5725 case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_compile") 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } &&
5737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5738   { (case "(($ac_try" in
5739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740   *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743   (eval "$ac_try") 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; } &&
5747          { ac_try='test -s conftest.$ac_objext'
5748   { (case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_try") 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   ac_compiler_gnu=yes
5758 else
5759   echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762         ac_compiler_gnu=no
5763 fi
5764
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5767
5768 fi
5769 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5770 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5771 GCC=`test $ac_compiler_gnu = yes && echo yes`
5772 ac_test_CFLAGS=${CFLAGS+set}
5773 ac_save_CFLAGS=$CFLAGS
5774 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5775 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5776 if test "${ac_cv_prog_cc_g+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_save_c_werror_flag=$ac_c_werror_flag
5780    ac_c_werror_flag=yes
5781    ac_cv_prog_cc_g=no
5782    CFLAGS="-g"
5783    cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789
5790 int
5791 main ()
5792 {
5793
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_compile") 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5813   { (case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_try") 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_try") 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_cv_prog_cc_g=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837         CFLAGS=""
5838       cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844
5845 int
5846 main ()
5847 {
5848
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_compile") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868   { (case "(($ac_try" in
5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870   *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873   (eval "$ac_try") 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; } &&
5877          { ac_try='test -s conftest.$ac_objext'
5878   { (case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_try") 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   :
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892         ac_c_werror_flag=$ac_save_c_werror_flag
5893          CFLAGS="-g"
5894          cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900
5901 int
5902 main ()
5903 {
5904
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (ac_try="$ac_compile"
5911 case "(($ac_try" in
5912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913   *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916   (eval "$ac_compile") 2>conftest.er1
5917   ac_status=$?
5918   grep -v '^ *+' conftest.er1 >conftest.err
5919   rm -f conftest.er1
5920   cat conftest.err >&5
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } &&
5923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5924   { (case "(($ac_try" in
5925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926   *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929   (eval "$ac_try") 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; } &&
5933          { ac_try='test -s conftest.$ac_objext'
5934   { (case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_try") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_cv_prog_cc_g=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 fi
5956
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958    ac_c_werror_flag=$ac_save_c_werror_flag
5959 fi
5960 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5962 if test "$ac_test_CFLAGS" = set; then
5963   CFLAGS=$ac_save_CFLAGS
5964 elif test $ac_cv_prog_cc_g = yes; then
5965   if test "$GCC" = yes; then
5966     CFLAGS="-g -O2"
5967   else
5968     CFLAGS="-g"
5969   fi
5970 else
5971   if test "$GCC" = yes; then
5972     CFLAGS="-O2"
5973   else
5974     CFLAGS=
5975   fi
5976 fi
5977 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5978 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_cc_c89+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   ac_cv_prog_cc_c89=no
5983 ac_save_CC=$CC
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h.  */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h.  */
5990 #include <stdarg.h>
5991 #include <stdio.h>
5992 #include <sys/types.h>
5993 #include <sys/stat.h>
5994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5995 struct buf { int x; };
5996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5997 static char *e (p, i)
5998      char **p;
5999      int i;
6000 {
6001   return p[i];
6002 }
6003 static char *f (char * (*g) (char **, int), char **p, ...)
6004 {
6005   char *s;
6006   va_list v;
6007   va_start (v,p);
6008   s = g (p, va_arg (v,int));
6009   va_end (v);
6010   return s;
6011 }
6012
6013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6014    function prototypes and stuff, but not '\xHH' hex character constants.
6015    These don't provoke an error unfortunately, instead are silently treated
6016    as 'x'.  The following induces an error, until -std is added to get
6017    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6018    array size at least.  It's necessary to write '\x00'==0 to get something
6019    that's true only with -std.  */
6020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6021
6022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6023    inside strings and character constants.  */
6024 #define FOO(x) 'x'
6025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6026
6027 int test (int i, double x);
6028 struct s1 {int (*f) (int a);};
6029 struct s2 {int (*f) (double a);};
6030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6031 int argc;
6032 char **argv;
6033 int
6034 main ()
6035 {
6036 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6042         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6043 do
6044   CC="$ac_save_CC $ac_arg"
6045   rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_compile") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6060   { (case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065   (eval "$ac_try") 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; } &&
6069          { ac_try='test -s conftest.$ac_objext'
6070   { (case "(($ac_try" in
6071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072   *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075   (eval "$ac_try") 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   ac_cv_prog_cc_c89=$ac_arg
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084
6085 fi
6086
6087 rm -f core conftest.err conftest.$ac_objext
6088   test "x$ac_cv_prog_cc_c89" != "xno" && break
6089 done
6090 rm -f conftest.$ac_ext
6091 CC=$ac_save_CC
6092
6093 fi
6094 # AC_CACHE_VAL
6095 case "x$ac_cv_prog_cc_c89" in
6096   x)
6097     { echo "$as_me:$LINENO: result: none needed" >&5
6098 echo "${ECHO_T}none needed" >&6; } ;;
6099   xno)
6100     { echo "$as_me:$LINENO: result: unsupported" >&5
6101 echo "${ECHO_T}unsupported" >&6; } ;;
6102   *)
6103     CC="$CC $ac_cv_prog_cc_c89"
6104     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6105 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6106 esac
6107
6108
6109 ac_ext=c
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
6115 ac_ext=cpp
6116 ac_cpp='$CXXCPP $CPPFLAGS'
6117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6120 if test -z "$CXX"; then
6121   if test -n "$CCC"; then
6122     CXX=$CCC
6123   else
6124     if test -n "$ac_tool_prefix"; then
6125   for ac_prog in g++
6126   do
6127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_CXX+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$CXX"; then
6135   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 CXX=$ac_cv_prog_CXX
6155 if test -n "$CXX"; then
6156   { echo "$as_me:$LINENO: result: $CXX" >&5
6157 echo "${ECHO_T}$CXX" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163
6164     test -n "$CXX" && break
6165   done
6166 fi
6167 if test -z "$CXX"; then
6168   ac_ct_CXX=$CXX
6169   for ac_prog in g++
6170 do
6171   # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   if test -n "$ac_ct_CXX"; then
6179   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186   for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_prog_ac_ct_CXX="$ac_prog"
6189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6199 if test -n "$ac_ct_CXX"; then
6200   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6201 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6202 else
6203   { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 fi
6206
6207
6208   test -n "$ac_ct_CXX" && break
6209 done
6210
6211   if test "x$ac_ct_CXX" = x; then
6212     CXX="g++"
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet.  If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet.  If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224     CXX=$ac_ct_CXX
6225   fi
6226 fi
6227
6228   fi
6229 fi
6230 # Provide some information about the compiler.
6231 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6232 ac_compiler=`set X $ac_compile; echo $2`
6233 { (ac_try="$ac_compiler --version >&5"
6234 case "(($ac_try" in
6235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236   *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239   (eval "$ac_compiler --version >&5") 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); }
6243 { (ac_try="$ac_compiler -v >&5"
6244 case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_compiler -v >&5") 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }
6253 { (ac_try="$ac_compiler -V >&5"
6254 case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_compiler -V >&5") 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }
6263
6264 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6265 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6266 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275
6276 int
6277 main ()
6278 {
6279 #ifndef __GNUC__
6280        choke me
6281 #endif
6282
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6289 case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_compile") 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6302   { (case "(($ac_try" in
6303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304   *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307   (eval "$ac_try") 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; } &&
6311          { ac_try='test -s conftest.$ac_objext'
6312   { (case "(($ac_try" in
6313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314   *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317   (eval "$ac_try") 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_compiler_gnu=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326         ac_compiler_gnu=no
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6331
6332 fi
6333 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6334 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6335 GXX=`test $ac_compiler_gnu = yes && echo yes`
6336 ac_test_CXXFLAGS=${CXXFLAGS+set}
6337 ac_save_CXXFLAGS=$CXXFLAGS
6338 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6339 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6340 if test "${ac_cv_prog_cxx_g+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6344    ac_cxx_werror_flag=yes
6345    ac_cv_prog_cxx_g=no
6346    CXXFLAGS="-g"
6347    cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h.  */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h.  */
6353
6354 int
6355 main ()
6356 {
6357
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 rm -f conftest.$ac_objext
6363 if { (ac_try="$ac_compile"
6364 case "(($ac_try" in
6365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366   *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369   (eval "$ac_compile") 2>conftest.er1
6370   ac_status=$?
6371   grep -v '^ *+' conftest.er1 >conftest.err
6372   rm -f conftest.er1
6373   cat conftest.err >&5
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6377   { (case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382   (eval "$ac_try") 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; } &&
6386          { ac_try='test -s conftest.$ac_objext'
6387   { (case "(($ac_try" in
6388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389   *) ac_try_echo=$ac_try;;
6390 esac
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392   (eval "$ac_try") 2>&5
6393   ac_status=$?
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); }; }; then
6396   ac_cv_prog_cxx_g=yes
6397 else
6398   echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401         CXXFLAGS=""
6402       cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_compile") 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6432   { (case "(($ac_try" in
6433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434   *) ac_try_echo=$ac_try;;
6435 esac
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437   (eval "$ac_try") 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; } &&
6441          { ac_try='test -s conftest.$ac_objext'
6442   { (case "(($ac_try" in
6443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444   *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447   (eval "$ac_try") 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; }; then
6451   :
6452 else
6453   echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6457          CXXFLAGS="-g"
6458          cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464
6465 int
6466 main ()
6467 {
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6475 case "(($ac_try" in
6476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477   *) ac_try_echo=$ac_try;;
6478 esac
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480   (eval "$ac_compile") 2>conftest.er1
6481   ac_status=$?
6482   grep -v '^ *+' conftest.er1 >conftest.err
6483   rm -f conftest.er1
6484   cat conftest.err >&5
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } &&
6487          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6488   { (case "(($ac_try" in
6489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490   *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493   (eval "$ac_try") 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; } &&
6497          { ac_try='test -s conftest.$ac_objext'
6498   { (case "(($ac_try" in
6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500   *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503   (eval "$ac_try") 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507   ac_cv_prog_cxx_g=yes
6508 else
6509   echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6511
6512
6513 fi
6514
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6523 fi
6524 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6525 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6526 if test "$ac_test_CXXFLAGS" = set; then
6527   CXXFLAGS=$ac_save_CXXFLAGS
6528 elif test $ac_cv_prog_cxx_g = yes; then
6529   if test "$GXX" = yes; then
6530     CXXFLAGS="-g -O2"
6531   else
6532     CXXFLAGS="-g"
6533   fi
6534 else
6535   if test "$GXX" = yes; then
6536     CXXFLAGS="-O2"
6537   else
6538     CXXFLAGS=
6539   fi
6540 fi
6541 ac_ext=c
6542 ac_cpp='$CPP $CPPFLAGS'
6543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546
6547
6548 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6549 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6550 if test "${lt_cv_path_NM+set}" = set; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553   if test -n "$NM"; then
6554   # Let the user override the test.
6555   lt_cv_path_NM="$NM"
6556 else
6557   lt_nm_to_check="${ac_tool_prefix}nm"
6558   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6559     lt_nm_to_check="$lt_nm_to_check nm"
6560   fi
6561   for lt_tmp_nm in $lt_nm_to_check; do
6562     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6564       IFS="$lt_save_ifs"
6565       test -z "$ac_dir" && ac_dir=.
6566       tmp_nm="$ac_dir/$lt_tmp_nm"
6567       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6568         # Check to see if the nm accepts a BSD-compat flag.
6569         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6570         #   nm: unknown option "B" ignored
6571         # Tru64's nm complains that /dev/null is an invalid object file
6572         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6573         */dev/null* | *'Invalid file or object type'*)
6574           lt_cv_path_NM="$tmp_nm -B"
6575           break
6576           ;;
6577         *)
6578           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6579           */dev/null*)
6580             lt_cv_path_NM="$tmp_nm -p"
6581             break
6582             ;;
6583           *)
6584             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6585             continue # so that we can try to find one that supports BSD flags
6586             ;;
6587           esac
6588           ;;
6589         esac
6590       fi
6591     done
6592     IFS="$lt_save_ifs"
6593   done
6594   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6595 fi
6596 fi
6597 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6598 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6599 NM="$lt_cv_path_NM"
6600
6601
6602
6603 { echo "$as_me:$LINENO: checking for GNU make" >&5
6604 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6605 if test "${llvm_cv_gnu_make_command+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   llvm_cv_gnu_make_command=''
6609  for a in "$MAKE" make gmake gnumake ; do
6610   if test -z "$a" ; then continue ; fi ;
6611   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6612   then
6613    llvm_cv_gnu_make_command=$a ;
6614    break;
6615   fi
6616  done
6617 fi
6618 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6619 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6620  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6621    ifGNUmake='' ;
6622  else
6623    ifGNUmake='#' ;
6624    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6625 echo "${ECHO_T}\"Not found\"" >&6; };
6626  fi
6627
6628
6629 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6630 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6631 LN_S=$as_ln_s
6632 if test "$LN_S" = "ln -s"; then
6633   { echo "$as_me:$LINENO: result: yes" >&5
6634 echo "${ECHO_T}yes" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6637 echo "${ECHO_T}no, using $LN_S" >&6; }
6638 fi
6639
6640 # Extract the first word of "cmp", so it can be a program name with args.
6641 set dummy cmp; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_CMP+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   case $CMP in
6648   [\\/]* | ?:[\\/]*)
6649   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6650   ;;
6651   *)
6652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657   for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6668   ;;
6669 esac
6670 fi
6671 CMP=$ac_cv_path_CMP
6672 if test -n "$CMP"; then
6673   { echo "$as_me:$LINENO: result: $CMP" >&5
6674 echo "${ECHO_T}$CMP" >&6; }
6675 else
6676   { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6678 fi
6679
6680
6681 # Extract the first word of "cp", so it can be a program name with args.
6682 set dummy cp; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_CP+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   case $CP in
6689   [\\/]* | ?:[\\/]*)
6690   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6691   ;;
6692   *)
6693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6709   ;;
6710 esac
6711 fi
6712 CP=$ac_cv_path_CP
6713 if test -n "$CP"; then
6714   { echo "$as_me:$LINENO: result: $CP" >&5
6715 echo "${ECHO_T}$CP" >&6; }
6716 else
6717   { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6719 fi
6720
6721
6722 # Extract the first word of "date", so it can be a program name with args.
6723 set dummy date; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_DATE+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   case $DATE in
6730   [\\/]* | ?:[\\/]*)
6731   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6732   ;;
6733   *)
6734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739   for ac_exec_ext in '' $ac_executable_extensions; do
6740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6750   ;;
6751 esac
6752 fi
6753 DATE=$ac_cv_path_DATE
6754 if test -n "$DATE"; then
6755   { echo "$as_me:$LINENO: result: $DATE" >&5
6756 echo "${ECHO_T}$DATE" >&6; }
6757 else
6758   { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6760 fi
6761
6762
6763 # Extract the first word of "find", so it can be a program name with args.
6764 set dummy find; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_FIND+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   case $FIND in
6771   [\\/]* | ?:[\\/]*)
6772   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6773   ;;
6774   *)
6775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780   for ac_exec_ext in '' $ac_executable_extensions; do
6781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6791   ;;
6792 esac
6793 fi
6794 FIND=$ac_cv_path_FIND
6795 if test -n "$FIND"; then
6796   { echo "$as_me:$LINENO: result: $FIND" >&5
6797 echo "${ECHO_T}$FIND" >&6; }
6798 else
6799   { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 fi
6802
6803
6804 # Extract the first word of "grep", so it can be a program name with args.
6805 set dummy grep; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_GREP+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   case $GREP in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6832   ;;
6833 esac
6834 fi
6835 GREP=$ac_cv_path_GREP
6836 if test -n "$GREP"; then
6837   { echo "$as_me:$LINENO: result: $GREP" >&5
6838 echo "${ECHO_T}$GREP" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844
6845 # Extract the first word of "mkdir", so it can be a program name with args.
6846 set dummy mkdir; ac_word=$2
6847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849 if test "${ac_cv_path_MKDIR+set}" = set; then
6850   echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852   case $MKDIR in
6853   [\\/]* | ?:[\\/]*)
6854   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6855   ;;
6856   *)
6857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862   for ac_exec_ext in '' $ac_executable_extensions; do
6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6873   ;;
6874 esac
6875 fi
6876 MKDIR=$ac_cv_path_MKDIR
6877 if test -n "$MKDIR"; then
6878   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6879 echo "${ECHO_T}$MKDIR" >&6; }
6880 else
6881   { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6883 fi
6884
6885
6886 # Extract the first word of "mv", so it can be a program name with args.
6887 set dummy mv; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_MV+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   case $MV in
6894   [\\/]* | ?:[\\/]*)
6895   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6896   ;;
6897   *)
6898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903   for ac_exec_ext in '' $ac_executable_extensions; do
6904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6914   ;;
6915 esac
6916 fi
6917 MV=$ac_cv_path_MV
6918 if test -n "$MV"; then
6919   { echo "$as_me:$LINENO: result: $MV" >&5
6920 echo "${ECHO_T}$MV" >&6; }
6921 else
6922   { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6924 fi
6925
6926
6927 if test -n "$ac_tool_prefix"; then
6928   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_RANLIB+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   if test -n "$RANLIB"; then
6936   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943   for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 RANLIB=$ac_cv_prog_RANLIB
6956 if test -n "$RANLIB"; then
6957   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6958 echo "${ECHO_T}$RANLIB" >&6; }
6959 else
6960   { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 fi
6963
6964
6965 fi
6966 if test -z "$ac_cv_prog_RANLIB"; then
6967   ac_ct_RANLIB=$RANLIB
6968   # Extract the first word of "ranlib", so it can be a program name with args.
6969 set dummy ranlib; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   if test -n "$ac_ct_RANLIB"; then
6976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983   for ac_exec_ext in '' $ac_executable_extensions; do
6984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985     ac_cv_prog_ac_ct_RANLIB="ranlib"
6986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990 done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6996 if test -n "$ac_ct_RANLIB"; then
6997   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6998 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004   if test "x$ac_ct_RANLIB" = x; then
7005     RANLIB=":"
7006   else
7007     case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7010 whose name does not start with the host triplet.  If you think this
7011 configuration is useful to you, please write to autoconf@gnu.org." >&5
7012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7013 whose name does not start with the host triplet.  If you think this
7014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017     RANLIB=$ac_ct_RANLIB
7018   fi
7019 else
7020   RANLIB="$ac_cv_prog_RANLIB"
7021 fi
7022
7023 # Extract the first word of "rm", so it can be a program name with args.
7024 set dummy rm; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_path_RM+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   case $RM in
7031   [\\/]* | ?:[\\/]*)
7032   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7033   ;;
7034   *)
7035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040   for ac_exec_ext in '' $ac_executable_extensions; do
7041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7042     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7051   ;;
7052 esac
7053 fi
7054 RM=$ac_cv_path_RM
7055 if test -n "$RM"; then
7056   { echo "$as_me:$LINENO: result: $RM" >&5
7057 echo "${ECHO_T}$RM" >&6; }
7058 else
7059   { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7061 fi
7062
7063
7064 # Extract the first word of "sed", so it can be a program name with args.
7065 set dummy sed; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_SED+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   case $SED in
7072   [\\/]* | ?:[\\/]*)
7073   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7074   ;;
7075   *)
7076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081   for ac_exec_ext in '' $ac_executable_extensions; do
7082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7092   ;;
7093 esac
7094 fi
7095 SED=$ac_cv_path_SED
7096 if test -n "$SED"; then
7097   { echo "$as_me:$LINENO: result: $SED" >&5
7098 echo "${ECHO_T}$SED" >&6; }
7099 else
7100   { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104
7105 # Extract the first word of "tar", so it can be a program name with args.
7106 set dummy tar; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_TAR+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $TAR in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7133   ;;
7134 esac
7135 fi
7136 TAR=$ac_cv_path_TAR
7137 if test -n "$TAR"; then
7138   { echo "$as_me:$LINENO: result: $TAR" >&5
7139 echo "${ECHO_T}$TAR" >&6; }
7140 else
7141   { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7143 fi
7144
7145
7146 # Extract the first word of "pwd", so it can be a program name with args.
7147 set dummy pwd; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_path_BINPWD+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   case $BINPWD in
7154   [\\/]* | ?:[\\/]*)
7155   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7156   ;;
7157   *)
7158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163   for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7174   ;;
7175 esac
7176 fi
7177 BINPWD=$ac_cv_path_BINPWD
7178 if test -n "$BINPWD"; then
7179   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7180 echo "${ECHO_T}$BINPWD" >&6; }
7181 else
7182   { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7184 fi
7185
7186
7187
7188 # Extract the first word of "Graphviz", so it can be a program name with args.
7189 set dummy Graphviz; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   case $GRAPHVIZ in
7196   [\\/]* | ?:[\\/]*)
7197   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7198   ;;
7199   *)
7200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205   for ac_exec_ext in '' $ac_executable_extensions; do
7206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7216   ;;
7217 esac
7218 fi
7219 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7220 if test -n "$GRAPHVIZ"; then
7221   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7222 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7230
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_GRAPHVIZ 1
7233 _ACEOF
7234
7235     if test "$llvm_cv_os_type" = "MingW" ; then
7236     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7237   fi
7238
7239 cat >>confdefs.h <<_ACEOF
7240 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7241 _ACEOF
7242
7243 fi
7244 # Extract the first word of "dot", so it can be a program name with args.
7245 set dummy dot; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_DOT+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   case $DOT in
7252   [\\/]* | ?:[\\/]*)
7253   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7254   ;;
7255   *)
7256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261   for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7272   ;;
7273 esac
7274 fi
7275 DOT=$ac_cv_path_DOT
7276 if test -n "$DOT"; then
7277   { echo "$as_me:$LINENO: result: $DOT" >&5
7278 echo "${ECHO_T}$DOT" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 if test "$DOT" != "echo dot" ; then
7286
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_DOT 1
7289 _ACEOF
7290
7291     if test "$llvm_cv_os_type" = "MingW" ; then
7292     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7293   fi
7294
7295 cat >>confdefs.h <<_ACEOF
7296 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7297 _ACEOF
7298
7299 fi
7300 # Extract the first word of "fdp", so it can be a program name with args.
7301 set dummy fdp; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_FDP+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   case $FDP in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7328   ;;
7329 esac
7330 fi
7331 FDP=$ac_cv_path_FDP
7332 if test -n "$FDP"; then
7333   { echo "$as_me:$LINENO: result: $FDP" >&5
7334 echo "${ECHO_T}$FDP" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341 if test "$FDP" != "echo fdp" ; then
7342
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_FDP 1
7345 _ACEOF
7346
7347     if test "$llvm_cv_os_type" = "MingW" ; then
7348     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7349   fi
7350
7351 cat >>confdefs.h <<_ACEOF
7352 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7353 _ACEOF
7354
7355 fi
7356 # Extract the first word of "neato", so it can be a program name with args.
7357 set dummy neato; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_NEATO+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   case $NEATO in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7384   ;;
7385 esac
7386 fi
7387 NEATO=$ac_cv_path_NEATO
7388 if test -n "$NEATO"; then
7389   { echo "$as_me:$LINENO: result: $NEATO" >&5
7390 echo "${ECHO_T}$NEATO" >&6; }
7391 else
7392   { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7394 fi
7395
7396
7397 if test "$NEATO" != "echo neato" ; then
7398
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_NEATO 1
7401 _ACEOF
7402
7403     if test "$llvm_cv_os_type" = "MingW" ; then
7404     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7405   fi
7406
7407 cat >>confdefs.h <<_ACEOF
7408 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7409 _ACEOF
7410
7411 fi
7412 # Extract the first word of "twopi", so it can be a program name with args.
7413 set dummy twopi; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_TWOPI+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $TWOPI in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7440   ;;
7441 esac
7442 fi
7443 TWOPI=$ac_cv_path_TWOPI
7444 if test -n "$TWOPI"; then
7445   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7446 echo "${ECHO_T}$TWOPI" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453 if test "$TWOPI" != "echo twopi" ; then
7454
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_TWOPI 1
7457 _ACEOF
7458
7459     if test "$llvm_cv_os_type" = "MingW" ; then
7460     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7461   fi
7462
7463 cat >>confdefs.h <<_ACEOF
7464 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7465 _ACEOF
7466
7467 fi
7468 # Extract the first word of "circo", so it can be a program name with args.
7469 set dummy circo; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_CIRCO+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   case $CIRCO in
7476   [\\/]* | ?:[\\/]*)
7477   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7478   ;;
7479   *)
7480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7496   ;;
7497 esac
7498 fi
7499 CIRCO=$ac_cv_path_CIRCO
7500 if test -n "$CIRCO"; then
7501   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7502 echo "${ECHO_T}$CIRCO" >&6; }
7503 else
7504   { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7506 fi
7507
7508
7509 if test "$CIRCO" != "echo circo" ; then
7510
7511 cat >>confdefs.h <<\_ACEOF
7512 #define HAVE_CIRCO 1
7513 _ACEOF
7514
7515     if test "$llvm_cv_os_type" = "MingW" ; then
7516     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7517   fi
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7521 _ACEOF
7522
7523 fi
7524 for ac_prog in gv gsview32
7525 do
7526   # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_GV+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   case $GV in
7534   [\\/]* | ?:[\\/]*)
7535   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7536   ;;
7537   *)
7538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543   for ac_exec_ext in '' $ac_executable_extensions; do
7544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550 done
7551 IFS=$as_save_IFS
7552
7553   ;;
7554 esac
7555 fi
7556 GV=$ac_cv_path_GV
7557 if test -n "$GV"; then
7558   { echo "$as_me:$LINENO: result: $GV" >&5
7559 echo "${ECHO_T}$GV" >&6; }
7560 else
7561   { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7563 fi
7564
7565
7566   test -n "$GV" && break
7567 done
7568 test -n "$GV" || GV="echo gv"
7569
7570 if test "$GV" != "echo gv" ; then
7571
7572 cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_GV 1
7574 _ACEOF
7575
7576     if test "$llvm_cv_os_type" = "MingW" ; then
7577     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7578   fi
7579
7580 cat >>confdefs.h <<_ACEOF
7581 #define LLVM_PATH_GV "$GV${EXEEXT}"
7582 _ACEOF
7583
7584 fi
7585 # Extract the first word of "dotty", so it can be a program name with args.
7586 set dummy dotty; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_DOTTY+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $DOTTY in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7613   ;;
7614 esac
7615 fi
7616 DOTTY=$ac_cv_path_DOTTY
7617 if test -n "$DOTTY"; then
7618   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7619 echo "${ECHO_T}$DOTTY" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626 if test "$DOTTY" != "echo dotty" ; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_DOTTY 1
7630 _ACEOF
7631
7632     if test "$llvm_cv_os_type" = "MingW" ; then
7633     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7634   fi
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7638 _ACEOF
7639
7640 fi
7641
7642
7643 # Extract the first word of "perl", so it can be a program name with args.
7644 set dummy perl; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_PERL+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   case $PERL in
7651   [\\/]* | ?:[\\/]*)
7652   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7653   ;;
7654   *)
7655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660   for ac_exec_ext in '' $ac_executable_extensions; do
7661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7671   ;;
7672 esac
7673 fi
7674 PERL=$ac_cv_path_PERL
7675 if test -n "$PERL"; then
7676   { echo "$as_me:$LINENO: result: $PERL" >&5
7677 echo "${ECHO_T}$PERL" >&6; }
7678 else
7679   { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7681 fi
7682
7683
7684 if test "$PERL" != "none"; then
7685   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7686 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7687   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7688     { echo "$as_me:$LINENO: result: yes" >&5
7689 echo "${ECHO_T}yes" >&6; }
7690   else
7691     PERL=none
7692     { echo "$as_me:$LINENO: result: not found" >&5
7693 echo "${ECHO_T}not found" >&6; }
7694   fi
7695 fi
7696
7697
7698 if test x"$PERL" = xnone; then
7699    HAVE_PERL=0
7700
7701    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7702 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7703    { (exit 1); exit 1; }; }
7704 else
7705    HAVE_PERL=1
7706
7707 fi
7708
7709 # Find a good install program.  We prefer a C program (faster),
7710 # so one script is as good as another.  But avoid the broken or
7711 # incompatible versions:
7712 # SysV /etc/install, /usr/sbin/install
7713 # SunOS /usr/etc/install
7714 # IRIX /sbin/install
7715 # AIX /bin/install
7716 # AmigaOS /C/install, which installs bootblocks on floppy discs
7717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7720 # OS/2's system install, which has a completely different semantic
7721 # ./install, which can be erroneously created by make from ./install.sh.
7722 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7723 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7724 if test -z "$INSTALL"; then
7725 if test "${ac_cv_path_install+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731   IFS=$as_save_IFS
7732   test -z "$as_dir" && as_dir=.
7733   # Account for people who put trailing slashes in PATH elements.
7734 case $as_dir/ in
7735   ./ | .// | /cC/* | \
7736   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7737   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7738   /usr/ucb/* ) ;;
7739   *)
7740     # OSF1 and SCO ODT 3.0 have their own names for install.
7741     # Don't use installbsd from OSF since it installs stuff as root
7742     # by default.
7743     for ac_prog in ginstall scoinst install; do
7744       for ac_exec_ext in '' $ac_executable_extensions; do
7745         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7746           if test $ac_prog = install &&
7747             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748             # AIX install.  It has an incompatible calling convention.
7749             :
7750           elif test $ac_prog = install &&
7751             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7752             # program-specific install script used by HP pwplus--don't use.
7753             :
7754           else
7755             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7756             break 3
7757           fi
7758         fi
7759       done
7760     done
7761     ;;
7762 esac
7763 done
7764 IFS=$as_save_IFS
7765
7766
7767 fi
7768   if test "${ac_cv_path_install+set}" = set; then
7769     INSTALL=$ac_cv_path_install
7770   else
7771     # As a last resort, use the slow shell script.  Don't cache a
7772     # value for INSTALL within a source directory, because that will
7773     # break other packages using the cache if that directory is
7774     # removed, or if the value is a relative name.
7775     INSTALL=$ac_install_sh
7776   fi
7777 fi
7778 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7779 echo "${ECHO_T}$INSTALL" >&6; }
7780
7781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7782 # It thinks the first close brace ends the variable substitution.
7783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7784
7785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7786
7787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7788
7789
7790 # Extract the first word of "bzip2", so it can be a program name with args.
7791 set dummy bzip2; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_path_BZIP2+set}" = set; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797   case $BZIP2 in
7798   [\\/]* | ?:[\\/]*)
7799   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7800   ;;
7801   *)
7802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807   for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817   ;;
7818 esac
7819 fi
7820 BZIP2=$ac_cv_path_BZIP2
7821 if test -n "$BZIP2"; then
7822   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7823 echo "${ECHO_T}$BZIP2" >&6; }
7824 else
7825   { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7827 fi
7828
7829
7830 # Extract the first word of "doxygen", so it can be a program name with args.
7831 set dummy doxygen; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   case $DOXYGEN in
7838   [\\/]* | ?:[\\/]*)
7839   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7840   ;;
7841   *)
7842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847   for ac_exec_ext in '' $ac_executable_extensions; do
7848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7849     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851     break 2
7852   fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857   ;;
7858 esac
7859 fi
7860 DOXYGEN=$ac_cv_path_DOXYGEN
7861 if test -n "$DOXYGEN"; then
7862   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7863 echo "${ECHO_T}$DOXYGEN" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869
7870 # Extract the first word of "groff", so it can be a program name with args.
7871 set dummy groff; ac_word=$2
7872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874 if test "${ac_cv_path_GROFF+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   case $GROFF in
7878   [\\/]* | ?:[\\/]*)
7879   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7880   ;;
7881   *)
7882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887   for ac_exec_ext in '' $ac_executable_extensions; do
7888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7889     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897   ;;
7898 esac
7899 fi
7900 GROFF=$ac_cv_path_GROFF
7901 if test -n "$GROFF"; then
7902   { echo "$as_me:$LINENO: result: $GROFF" >&5
7903 echo "${ECHO_T}$GROFF" >&6; }
7904 else
7905   { echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6; }
7907 fi
7908
7909
7910 # Extract the first word of "gzip", so it can be a program name with args.
7911 set dummy gzip; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_GZIP+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   case $GZIP in
7918   [\\/]* | ?:[\\/]*)
7919   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7920   ;;
7921   *)
7922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927   for ac_exec_ext in '' $ac_executable_extensions; do
7928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7929     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937   ;;
7938 esac
7939 fi
7940 GZIP=$ac_cv_path_GZIP
7941 if test -n "$GZIP"; then
7942   { echo "$as_me:$LINENO: result: $GZIP" >&5
7943 echo "${ECHO_T}$GZIP" >&6; }
7944 else
7945   { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7947 fi
7948
7949
7950 # Extract the first word of "pod2html", so it can be a program name with args.
7951 set dummy pod2html; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_POD2HTML+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   case $POD2HTML in
7958   [\\/]* | ?:[\\/]*)
7959   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7960   ;;
7961   *)
7962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977   ;;
7978 esac
7979 fi
7980 POD2HTML=$ac_cv_path_POD2HTML
7981 if test -n "$POD2HTML"; then
7982   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7983 echo "${ECHO_T}$POD2HTML" >&6; }
7984 else
7985   { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7987 fi
7988
7989
7990 # Extract the first word of "pod2man", so it can be a program name with args.
7991 set dummy pod2man; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_POD2MAN+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   case $POD2MAN in
7998   [\\/]* | ?:[\\/]*)
7999   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8000   ;;
8001   *)
8002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007   for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017   ;;
8018 esac
8019 fi
8020 POD2MAN=$ac_cv_path_POD2MAN
8021 if test -n "$POD2MAN"; then
8022   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8023 echo "${ECHO_T}$POD2MAN" >&6; }
8024 else
8025   { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8027 fi
8028
8029
8030 # Extract the first word of "runtest", so it can be a program name with args.
8031 set dummy runtest; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_RUNTEST+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   case $RUNTEST in
8038   [\\/]* | ?:[\\/]*)
8039   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8040   ;;
8041   *)
8042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047   for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057   ;;
8058 esac
8059 fi
8060 RUNTEST=$ac_cv_path_RUNTEST
8061 if test -n "$RUNTEST"; then
8062   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8063 echo "${ECHO_T}$RUNTEST" >&6; }
8064 else
8065   { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8067 fi
8068
8069
8070
8071 no_itcl=true
8072 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8073 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8074
8075 # Check whether --with-tclinclude was given.
8076 if test "${with_tclinclude+set}" = set; then
8077   withval=$with_tclinclude; with_tclinclude=${withval}
8078 else
8079   with_tclinclude=''
8080 fi
8081
8082 if test "${ac_cv_path_tclsh+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085
8086 if test x"${with_tclinclude}" != x ; then
8087   if test -f ${with_tclinclude}/tclsh ; then
8088     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8089   elif test -f ${with_tclinclude}/src/tclsh ; then
8090     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8091   else
8092     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8093 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8094    { (exit 1); exit 1; }; }
8095   fi
8096 fi
8097
8098 if test x"${ac_cv_path_tclsh}" = x ; then
8099   { echo "$as_me:$LINENO: result: none" >&5
8100 echo "${ECHO_T}none" >&6; }
8101   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
8102 do
8103   # Extract the first word of "$ac_prog", so it can be a program name with args.
8104 set dummy $ac_prog; ac_word=$2
8105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107 if test "${ac_cv_path_TCLSH+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   case $TCLSH in
8111   [\\/]* | ?:[\\/]*)
8112   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8113   ;;
8114   *)
8115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120   for ac_exec_ext in '' $ac_executable_extensions; do
8121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130   ;;
8131 esac
8132 fi
8133 TCLSH=$ac_cv_path_TCLSH
8134 if test -n "$TCLSH"; then
8135   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8136 echo "${ECHO_T}$TCLSH" >&6; }
8137 else
8138   { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8140 fi
8141
8142
8143   test -n "$TCLSH" && break
8144 done
8145
8146   if test x"${TCLSH}" = x ; then
8147     ac_cv_path_tclsh='';
8148   else
8149     ac_cv_path_tclsh="${TCLSH}";
8150   fi
8151 else
8152   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8153 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8154   TCLSH="${ac_cv_path_tclsh}"
8155
8156 fi
8157
8158 fi
8159
8160 # Extract the first word of "zip", so it can be a program name with args.
8161 set dummy zip; ac_word=$2
8162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8164 if test "${ac_cv_path_ZIP+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   case $ZIP in
8168   [\\/]* | ?:[\\/]*)
8169   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8170   ;;
8171   *)
8172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175   IFS=$as_save_IFS
8176   test -z "$as_dir" && as_dir=.
8177   for ac_exec_ext in '' $ac_executable_extensions; do
8178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8179     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181     break 2
8182   fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187   ;;
8188 esac
8189 fi
8190 ZIP=$ac_cv_path_ZIP
8191 if test -n "$ZIP"; then
8192   { echo "$as_me:$LINENO: result: $ZIP" >&5
8193 echo "${ECHO_T}$ZIP" >&6; }
8194 else
8195   { echo "$as_me:$LINENO: result: no" >&5
8196 echo "${ECHO_T}no" >&6; }
8197 fi
8198
8199
8200 for ac_prog in ocamlc
8201 do
8202   # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy $ac_prog; ac_word=$2
8204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8206 if test "${ac_cv_path_OCAMLC+set}" = set; then
8207   echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209   case $OCAMLC in
8210   [\\/]* | ?:[\\/]*)
8211   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8212   ;;
8213   *)
8214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219   for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8228
8229   ;;
8230 esac
8231 fi
8232 OCAMLC=$ac_cv_path_OCAMLC
8233 if test -n "$OCAMLC"; then
8234   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8235 echo "${ECHO_T}$OCAMLC" >&6; }
8236 else
8237   { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8239 fi
8240
8241
8242   test -n "$OCAMLC" && break
8243 done
8244
8245 for ac_prog in ocamlopt
8246 do
8247   # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   case $OCAMLOPT in
8255   [\\/]* | ?:[\\/]*)
8256   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8257   ;;
8258   *)
8259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8261 do
8262   IFS=$as_save_IFS
8263   test -z "$as_dir" && as_dir=.
8264   for ac_exec_ext in '' $ac_executable_extensions; do
8265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268     break 2
8269   fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274   ;;
8275 esac
8276 fi
8277 OCAMLOPT=$ac_cv_path_OCAMLOPT
8278 if test -n "$OCAMLOPT"; then
8279   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8280 echo "${ECHO_T}$OCAMLOPT" >&6; }
8281 else
8282   { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8284 fi
8285
8286
8287   test -n "$OCAMLOPT" && break
8288 done
8289
8290 for ac_prog in ocamldep
8291 do
8292   # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   case $OCAMLDEP in
8300   [\\/]* | ?:[\\/]*)
8301   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8302   ;;
8303   *)
8304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309   for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319   ;;
8320 esac
8321 fi
8322 OCAMLDEP=$ac_cv_path_OCAMLDEP
8323 if test -n "$OCAMLDEP"; then
8324   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8325 echo "${ECHO_T}$OCAMLDEP" >&6; }
8326 else
8327   { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8329 fi
8330
8331
8332   test -n "$OCAMLDEP" && break
8333 done
8334
8335 for ac_prog in ocamldoc
8336 do
8337   # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   case $OCAMLDOC in
8345   [\\/]* | ?:[\\/]*)
8346   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8347   ;;
8348   *)
8349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354   for ac_exec_ext in '' $ac_executable_extensions; do
8355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8356     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364   ;;
8365 esac
8366 fi
8367 OCAMLDOC=$ac_cv_path_OCAMLDOC
8368 if test -n "$OCAMLDOC"; then
8369   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8370 echo "${ECHO_T}$OCAMLDOC" >&6; }
8371 else
8372   { echo "$as_me:$LINENO: result: no" >&5
8373 echo "${ECHO_T}no" >&6; }
8374 fi
8375
8376
8377   test -n "$OCAMLDOC" && break
8378 done
8379
8380 for ac_prog in gas as
8381 do
8382   # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386 if test "${ac_cv_path_GAS+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   case $GAS in
8390   [\\/]* | ?:[\\/]*)
8391   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8392   ;;
8393   *)
8394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399   for ac_exec_ext in '' $ac_executable_extensions; do
8400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8401     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409   ;;
8410 esac
8411 fi
8412 GAS=$ac_cv_path_GAS
8413 if test -n "$GAS"; then
8414   { echo "$as_me:$LINENO: result: $GAS" >&5
8415 echo "${ECHO_T}$GAS" >&6; }
8416 else
8417   { echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6; }
8419 fi
8420
8421
8422   test -n "$GAS" && break
8423 done
8424
8425
8426 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8427 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8428 if test "${llvm_cv_link_use_r+set}" = set; then
8429   echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431    ac_ext=c
8432 ac_cpp='$CPP $CPPFLAGS'
8433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436
8437   oldcflags="$CFLAGS"
8438   CFLAGS="$CFLAGS -Wl,-R."
8439   cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 int
8447 main ()
8448 {
8449 int main() { return 0; }
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8456 case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_link") 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469   { (case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_try") 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; } &&
8478          { ac_try='test -s conftest$ac_exeext'
8479   { (case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484   (eval "$ac_try") 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   llvm_cv_link_use_r=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493         llvm_cv_link_use_r=no
8494 fi
8495
8496 rm -f core conftest.err conftest.$ac_objext \
8497       conftest$ac_exeext conftest.$ac_ext
8498   CFLAGS="$oldcflags"
8499   ac_ext=c
8500 ac_cpp='$CPP $CPPFLAGS'
8501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504
8505
8506 fi
8507 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8508 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8509 if test "$llvm_cv_link_use_r" = yes ; then
8510
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_LINK_R 1
8513 _ACEOF
8514
8515   fi
8516
8517
8518 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8519 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8520 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523    ac_ext=c
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8528
8529   oldcflags="$CFLAGS"
8530   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8531   cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h.  */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h.  */
8537
8538 int
8539 main ()
8540 {
8541 int main() { return 0; }
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553   (eval "$ac_link") 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561   { (case "(($ac_try" in
8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563   *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566   (eval "$ac_try") 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; } &&
8570          { ac_try='test -s conftest$ac_exeext'
8571   { (case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_try") 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   llvm_cv_link_use_export_dynamic=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585         llvm_cv_link_use_export_dynamic=no
8586 fi
8587
8588 rm -f core conftest.err conftest.$ac_objext \
8589       conftest$ac_exeext conftest.$ac_ext
8590   CFLAGS="$oldcflags"
8591   ac_ext=c
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597
8598 fi
8599 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8600 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8601 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8602
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_LINK_EXPORT_DYNAMIC 1
8605 _ACEOF
8606
8607   fi
8608
8609
8610
8611
8612 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8614 if test "${ac_cv_c_const+set}" = set; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h.  */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h.  */
8623
8624 int
8625 main ()
8626 {
8627 /* FIXME: Include the comments suggested by Paul. */
8628 #ifndef __cplusplus
8629   /* Ultrix mips cc rejects this.  */
8630   typedef int charset[2];
8631   const charset x;
8632   /* SunOS 4.1.1 cc rejects this.  */
8633   char const *const *ccp;
8634   char **p;
8635   /* NEC SVR4.0.2 mips cc rejects this.  */
8636   struct point {int x, y;};
8637   static struct point const zero = {0,0};
8638   /* AIX XL C 1.02.0.0 rejects this.
8639      It does not let you subtract one const X* pointer from another in
8640      an arm of an if-expression whose if-part is not a constant
8641      expression */
8642   const char *g = "string";
8643   ccp = &g + (g ? g-g : 0);
8644   /* HPUX 7.0 cc rejects these. */
8645   ++ccp;
8646   p = (char**) ccp;
8647   ccp = (char const *const *) p;
8648   { /* SCO 3.2v4 cc rejects this.  */
8649     char *t;
8650     char const *s = 0 ? (char *) 0 : (char const *) 0;
8651
8652     *t++ = 0;
8653     if (s) return 0;
8654   }
8655   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8656     int x[] = {25, 17};
8657     const int *foo = &x[0];
8658     ++foo;
8659   }
8660   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8661     typedef const int *iptr;
8662     iptr p = 0;
8663     ++p;
8664   }
8665   { /* AIX XL C 1.02.0.0 rejects this saying
8666        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8667     struct s { int j; const int *ap[3]; };
8668     struct s *b; b->j = 5;
8669   }
8670   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8671     const int foo = 10;
8672     if (!foo) return 0;
8673   }
8674   return !x[0] && !zero.x;
8675 #endif
8676
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685   *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688   (eval "$ac_compile") 2>conftest.er1
8689   ac_status=$?
8690   grep -v '^ *+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } &&
8695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8696   { (case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701   (eval "$ac_try") 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; } &&
8705          { ac_try='test -s conftest.$ac_objext'
8706   { (case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711   (eval "$ac_try") 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_c_const=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720         ac_cv_c_const=no
8721 fi
8722
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 fi
8725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8727 if test $ac_cv_c_const = no; then
8728
8729 cat >>confdefs.h <<\_ACEOF
8730 #define const
8731 _ACEOF
8732
8733 fi
8734
8735
8736
8737
8738
8739
8740 ac_header_dirent=no
8741 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8742   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8743 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8744 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754 #include <sys/types.h>
8755 #include <$ac_hdr>
8756
8757 int
8758 main ()
8759 {
8760 if ((DIR *) 0)
8761 return 0;
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8768 case "(($ac_try" in
8769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770   *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773   (eval "$ac_compile") 2>conftest.er1
8774   ac_status=$?
8775   grep -v '^ *+' conftest.er1 >conftest.err
8776   rm -f conftest.er1
8777   cat conftest.err >&5
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } &&
8780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8781   { (case "(($ac_try" in
8782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783   *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786   (eval "$ac_try") 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; } &&
8790          { ac_try='test -s conftest.$ac_objext'
8791   { (case "(($ac_try" in
8792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793   *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796   (eval "$ac_try") 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; }; then
8800   eval "$as_ac_Header=yes"
8801 else
8802   echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805         eval "$as_ac_Header=no"
8806 fi
8807
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 fi
8810 ac_res=`eval echo '${'$as_ac_Header'}'`
8811                { echo "$as_me:$LINENO: result: $ac_res" >&5
8812 echo "${ECHO_T}$ac_res" >&6; }
8813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814   cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8816 _ACEOF
8817
8818 ac_header_dirent=$ac_hdr; break
8819 fi
8820
8821 done
8822 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8823 if test $ac_header_dirent = dirent.h; then
8824   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8825 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8826 if test "${ac_cv_search_opendir+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   ac_func_search_save_LIBS=$LIBS
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836
8837 /* Override any GCC internal prototype to avoid an error.
8838    Use char because int might match the return type of a GCC
8839    builtin and then its argument prototype would still apply.  */
8840 #ifdef __cplusplus
8841 extern "C"
8842 #endif
8843 char opendir ();
8844 int
8845 main ()
8846 {
8847 return opendir ();
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 for ac_lib in '' dir; do
8853   if test -z "$ac_lib"; then
8854     ac_res="none required"
8855   else
8856     ac_res=-l$ac_lib
8857     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8858   fi
8859   rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8861 case "(($ac_try" in
8862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863   *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866   (eval "$ac_link") 2>conftest.er1
8867   ac_status=$?
8868   grep -v '^ *+' conftest.er1 >conftest.err
8869   rm -f conftest.er1
8870   cat conftest.err >&5
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); } &&
8873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8874   { (case "(($ac_try" in
8875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876   *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879   (eval "$ac_try") 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; } &&
8883          { ac_try='test -s conftest$ac_exeext'
8884   { (case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_try") 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }; }; then
8893   ac_cv_search_opendir=$ac_res
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898
8899 fi
8900
8901 rm -f core conftest.err conftest.$ac_objext \
8902       conftest$ac_exeext
8903   if test "${ac_cv_search_opendir+set}" = set; then
8904   break
8905 fi
8906 done
8907 if test "${ac_cv_search_opendir+set}" = set; then
8908   :
8909 else
8910   ac_cv_search_opendir=no
8911 fi
8912 rm conftest.$ac_ext
8913 LIBS=$ac_func_search_save_LIBS
8914 fi
8915 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8916 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8917 ac_res=$ac_cv_search_opendir
8918 if test "$ac_res" != no; then
8919   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8920
8921 fi
8922
8923 else
8924   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8926 if test "${ac_cv_search_opendir+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   ac_func_search_save_LIBS=$LIBS
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h.  */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h.  */
8936
8937 /* Override any GCC internal prototype to avoid an error.
8938    Use char because int might match the return type of a GCC
8939    builtin and then its argument prototype would still apply.  */
8940 #ifdef __cplusplus
8941 extern "C"
8942 #endif
8943 char opendir ();
8944 int
8945 main ()
8946 {
8947 return opendir ();
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 for ac_lib in '' x; do
8953   if test -z "$ac_lib"; then
8954     ac_res="none required"
8955   else
8956     ac_res=-l$ac_lib
8957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8958   fi
8959   rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8961 case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_link") 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974   { (case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_try") 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (case "(($ac_try" in
8985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986   *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989   (eval "$ac_try") 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_search_opendir=$ac_res
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext
9003   if test "${ac_cv_search_opendir+set}" = set; then
9004   break
9005 fi
9006 done
9007 if test "${ac_cv_search_opendir+set}" = set; then
9008   :
9009 else
9010   ac_cv_search_opendir=no
9011 fi
9012 rm conftest.$ac_ext
9013 LIBS=$ac_func_search_save_LIBS
9014 fi
9015 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9016 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9017 ac_res=$ac_cv_search_opendir
9018 if test "$ac_res" != no; then
9019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9020
9021 fi
9022
9023 fi
9024
9025
9026 for ac_header in dlfcn.h
9027 do
9028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9030   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 fi
9035 ac_res=`eval echo '${'$as_ac_Header'}'`
9036                { echo "$as_me:$LINENO: result: $ac_res" >&5
9037 echo "${ECHO_T}$ac_res" >&6; }
9038 else
9039   # Is the header compilable?
9040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h.  */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h.  */
9048 $ac_includes_default
9049 #include <$ac_header>
9050 _ACEOF
9051 rm -f conftest.$ac_objext
9052 if { (ac_try="$ac_compile"
9053 case "(($ac_try" in
9054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055   *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058   (eval "$ac_compile") 2>conftest.er1
9059   ac_status=$?
9060   grep -v '^ *+' conftest.er1 >conftest.err
9061   rm -f conftest.er1
9062   cat conftest.err >&5
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } &&
9065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9066   { (case "(($ac_try" in
9067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068   *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071   (eval "$ac_try") 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; } &&
9075          { ac_try='test -s conftest.$ac_objext'
9076   { (case "(($ac_try" in
9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078   *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081   (eval "$ac_try") 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; }; then
9085   ac_header_compiler=yes
9086 else
9087   echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090         ac_header_compiler=no
9091 fi
9092
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095 echo "${ECHO_T}$ac_header_compiler" >&6; }
9096
9097 # Is the header present?
9098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106 #include <$ac_header>
9107 _ACEOF
9108 if { (ac_try="$ac_cpp conftest.$ac_ext"
9109 case "(($ac_try" in
9110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111   *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9115   ac_status=$?
9116   grep -v '^ *+' conftest.er1 >conftest.err
9117   rm -f conftest.er1
9118   cat conftest.err >&5
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } >/dev/null; then
9121   if test -s conftest.err; then
9122     ac_cpp_err=$ac_c_preproc_warn_flag
9123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9124   else
9125     ac_cpp_err=
9126   fi
9127 else
9128   ac_cpp_err=yes
9129 fi
9130 if test -z "$ac_cpp_err"; then
9131   ac_header_preproc=yes
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136   ac_header_preproc=no
9137 fi
9138
9139 rm -f conftest.err conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141 echo "${ECHO_T}$ac_header_preproc" >&6; }
9142
9143 # So?  What about this header?
9144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9145   yes:no: )
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9150     ac_header_preproc=yes
9151     ;;
9152   no:yes:* )
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9165     ( cat <<\_ASBOX
9166 ## ----------------------------------- ##
9167 ## Report this to llvmbugs@cs.uiuc.edu ##
9168 ## ----------------------------------- ##
9169 _ASBOX
9170      ) | sed "s/^/$as_me: WARNING:     /" >&2
9171     ;;
9172 esac
9173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   eval "$as_ac_Header=\$ac_header_preproc"
9179 fi
9180 ac_res=`eval echo '${'$as_ac_Header'}'`
9181                { echo "$as_me:$LINENO: result: $ac_res" >&5
9182 echo "${ECHO_T}$ac_res" >&6; }
9183
9184 fi
9185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9186   cat >>confdefs.h <<_ACEOF
9187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188 _ACEOF
9189
9190 fi
9191
9192 done
9193
9194 # Check whether --enable-ltdl-install was given.
9195 if test "${enable_ltdl_install+set}" = set; then
9196   enableval=$enable_ltdl_install;
9197 fi
9198
9199
9200
9201
9202 if test x"${enable_ltdl_install-no}" != xno; then
9203   INSTALL_LTDL_TRUE=
9204   INSTALL_LTDL_FALSE='#'
9205 else
9206   INSTALL_LTDL_TRUE='#'
9207   INSTALL_LTDL_FALSE=
9208 fi
9209
9210
9211
9212 if test x"${enable_ltdl_convenience-no}" != xno; then
9213   CONVENIENCE_LTDL_TRUE=
9214   CONVENIENCE_LTDL_FALSE='#'
9215 else
9216   CONVENIENCE_LTDL_TRUE='#'
9217   CONVENIENCE_LTDL_FALSE=
9218 fi
9219
9220
9221 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9222 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9223 library_names_spec=
9224 libname_spec='lib$name'
9225 soname_spec=
9226 shrext_cmds=".so"
9227 postinstall_cmds=
9228 postuninstall_cmds=
9229 finish_cmds=
9230 finish_eval=
9231 shlibpath_var=
9232 shlibpath_overrides_runpath=unknown
9233 version_type=none
9234 dynamic_linker="$host_os ld.so"
9235 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9236 if test "$GCC" = yes; then
9237   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9238   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9239     # if the path contains ";" then we assume it to be the separator
9240     # otherwise default to the standard path separator (i.e. ":") - it is
9241     # assumed that no part of a normal pathname contains ";" but that should
9242     # okay in the real world where ";" in dirpaths is itself problematic.
9243     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9244   else
9245     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9246   fi
9247 else
9248   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9249 fi
9250 need_lib_prefix=unknown
9251 hardcode_into_libs=no
9252
9253 # when you set need_version to no, make sure it does not cause -set_version
9254 # flags to be left without arguments
9255 need_version=unknown
9256
9257 case $host_os in
9258 aix3*)
9259   version_type=linux
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9261   shlibpath_var=LIBPATH
9262
9263   # AIX 3 has no versioning support, so we append a major version to the name.
9264   soname_spec='${libname}${release}${shared_ext}$major'
9265   ;;
9266
9267 aix4* | aix5*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   hardcode_into_libs=yes
9272   if test "$host_cpu" = ia64; then
9273     # AIX 5 supports IA64
9274     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9275     shlibpath_var=LD_LIBRARY_PATH
9276   else
9277     # With GCC up to 2.95.x, collect2 would create an import file
9278     # for dependence libraries.  The import file would start with
9279     # the line `#! .'.  This would cause the generated library to
9280     # depend on `.', always an invalid library.  This was fixed in
9281     # development snapshots of GCC prior to 3.0.
9282     case $host_os in
9283       aix4 | aix4.[01] | aix4.[01].*)
9284       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9285            echo ' yes '
9286            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9287         :
9288       else
9289         can_build_shared=no
9290       fi
9291       ;;
9292     esac
9293     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9294     # soname into executable. Probably we can add versioning support to
9295     # collect2, so additional links can be useful in future.
9296     if test "$aix_use_runtimelinking" = yes; then
9297       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9298       # instead of lib<name>.a to let people know that these are not
9299       # typical AIX shared libraries.
9300       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301     else
9302       # We preserve .a as extension for shared libraries through AIX4.2
9303       # and later when we are not doing run time linking.
9304       library_names_spec='${libname}${release}.a $libname.a'
9305       soname_spec='${libname}${release}${shared_ext}$major'
9306     fi
9307     shlibpath_var=LIBPATH
9308   fi
9309   ;;
9310
9311 amigaos*)
9312   library_names_spec='$libname.ixlibrary $libname.a'
9313   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9314   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'
9315   ;;
9316
9317 beos*)
9318   library_names_spec='${libname}${shared_ext}'
9319   dynamic_linker="$host_os ld.so"
9320   shlibpath_var=LIBRARY_PATH
9321   ;;
9322
9323 bsdi[45]*)
9324   version_type=linux
9325   need_version=no
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327   soname_spec='${libname}${release}${shared_ext}$major'
9328   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9331   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9332   # the default ld.so.conf also contains /usr/contrib/lib and
9333   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9334   # libtool to hard-code these into programs
9335   ;;
9336
9337 cygwin* | mingw* | pw32*)
9338   version_type=windows
9339   shrext_cmds=".dll"
9340   need_version=no
9341   need_lib_prefix=no
9342
9343   case $GCC,$host_os in
9344   yes,cygwin* | yes,mingw* | yes,pw32*)
9345     library_names_spec='$libname.dll.a'
9346     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9347     postinstall_cmds='base_file=`basename \${file}`~
9348       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9349       dldir=$destdir/`dirname \$dlpath`~
9350       test -d \$dldir || mkdir -p \$dldir~
9351       $install_prog $dir/$dlname \$dldir/$dlname~
9352       chmod a+x \$dldir/$dlname'
9353     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9354       dlpath=$dir/\$dldll~
9355        $rm \$dlpath'
9356     shlibpath_overrides_runpath=yes
9357
9358     case $host_os in
9359     cygwin*)
9360       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9361       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9362       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9363       ;;
9364     mingw*)
9365       # MinGW DLLs use traditional 'lib' prefix
9366       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9367       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9368       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9369         # It is most probably a Windows format PATH printed by
9370         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9371         # path with ; separators, and with drive letters. We can handle the
9372         # drive letters (cygwin fileutils understands them), so leave them,
9373         # especially as we might pass files found there to a mingw objdump,
9374         # which wouldn't understand a cygwinified path. Ahh.
9375         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9376       else
9377         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9378       fi
9379       ;;
9380     pw32*)
9381       # pw32 DLLs use 'pw' prefix rather than 'lib'
9382       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9383       ;;
9384     esac
9385     ;;
9386
9387   *)
9388     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9389     ;;
9390   esac
9391   dynamic_linker='Win32 ld.exe'
9392   # FIXME: first we should search . and the directory the executable is in
9393   shlibpath_var=PATH
9394   ;;
9395
9396 darwin* | rhapsody*)
9397   dynamic_linker="$host_os dyld"
9398   version_type=darwin
9399   need_lib_prefix=no
9400   need_version=no
9401   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9402   soname_spec='${libname}${release}${major}$shared_ext'
9403   shlibpath_overrides_runpath=yes
9404   shlibpath_var=DYLD_LIBRARY_PATH
9405   shrext_cmds='.dylib'
9406   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9407   if test "$GCC" = yes; then
9408     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"`
9409   else
9410     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9411   fi
9412   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9413   ;;
9414
9415 dgux*)
9416   version_type=linux
9417   need_lib_prefix=no
9418   need_version=no
9419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9420   soname_spec='${libname}${release}${shared_ext}$major'
9421   shlibpath_var=LD_LIBRARY_PATH
9422   ;;
9423
9424 freebsd1*)
9425   dynamic_linker=no
9426   ;;
9427
9428 kfreebsd*-gnu)
9429   version_type=linux
9430   need_lib_prefix=no
9431   need_version=no
9432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433   soname_spec='${libname}${release}${shared_ext}$major'
9434   shlibpath_var=LD_LIBRARY_PATH
9435   shlibpath_overrides_runpath=no
9436   hardcode_into_libs=yes
9437   dynamic_linker='GNU ld.so'
9438   ;;
9439
9440 freebsd* | dragonfly*)
9441   # DragonFly does not have aout.  When/if they implement a new
9442   # versioning mechanism, adjust this.
9443   if test -x /usr/bin/objformat; then
9444     objformat=`/usr/bin/objformat`
9445   else
9446     case $host_os in
9447     freebsd[123]*) objformat=aout ;;
9448     *) objformat=elf ;;
9449     esac
9450   fi
9451   version_type=freebsd-$objformat
9452   case $version_type in
9453     freebsd-elf*)
9454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9455       need_version=no
9456       need_lib_prefix=no
9457       ;;
9458     freebsd-*)
9459       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9460       need_version=yes
9461       ;;
9462   esac
9463   shlibpath_var=LD_LIBRARY_PATH
9464   case $host_os in
9465   freebsd2*)
9466     shlibpath_overrides_runpath=yes
9467     ;;
9468   freebsd3.[01]* | freebsdelf3.[01]*)
9469     shlibpath_overrides_runpath=yes
9470     hardcode_into_libs=yes
9471     ;;
9472   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9473   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9474     shlibpath_overrides_runpath=no
9475     hardcode_into_libs=yes
9476     ;;
9477   freebsd*) # from 4.6 on
9478     shlibpath_overrides_runpath=yes
9479     hardcode_into_libs=yes
9480     ;;
9481   esac
9482   ;;
9483
9484 gnu*)
9485   version_type=linux
9486   need_lib_prefix=no
9487   need_version=no
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9489   soname_spec='${libname}${release}${shared_ext}$major'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   hardcode_into_libs=yes
9492   ;;
9493
9494 hpux9* | hpux10* | hpux11*)
9495   # Give a soname corresponding to the major version so that dld.sl refuses to
9496   # link against other versions.
9497   version_type=sunos
9498   need_lib_prefix=no
9499   need_version=no
9500   case $host_cpu in
9501   ia64*)
9502     shrext_cmds='.so'
9503     hardcode_into_libs=yes
9504     dynamic_linker="$host_os dld.so"
9505     shlibpath_var=LD_LIBRARY_PATH
9506     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508     soname_spec='${libname}${release}${shared_ext}$major'
9509     if test "X$HPUX_IA64_MODE" = X32; then
9510       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9511     else
9512       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9513     fi
9514     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9515     ;;
9516    hppa*64*)
9517      shrext_cmds='.sl'
9518      hardcode_into_libs=yes
9519      dynamic_linker="$host_os dld.sl"
9520      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9521      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523      soname_spec='${libname}${release}${shared_ext}$major'
9524      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9525      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9526      ;;
9527    *)
9528     shrext_cmds='.sl'
9529     dynamic_linker="$host_os dld.sl"
9530     shlibpath_var=SHLIB_PATH
9531     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533     soname_spec='${libname}${release}${shared_ext}$major'
9534     ;;
9535   esac
9536   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9537   postinstall_cmds='chmod 555 $lib'
9538   ;;
9539
9540 interix3*)
9541   version_type=linux
9542   need_lib_prefix=no
9543   need_version=no
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9545   soname_spec='${libname}${release}${shared_ext}$major'
9546   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9547   shlibpath_var=LD_LIBRARY_PATH
9548   shlibpath_overrides_runpath=no
9549   hardcode_into_libs=yes
9550   ;;
9551
9552 irix5* | irix6* | nonstopux*)
9553   case $host_os in
9554     nonstopux*) version_type=nonstopux ;;
9555     *)
9556         if test "$lt_cv_prog_gnu_ld" = yes; then
9557                 version_type=linux
9558         else
9559                 version_type=irix
9560         fi ;;
9561   esac
9562   need_lib_prefix=no
9563   need_version=no
9564   soname_spec='${libname}${release}${shared_ext}$major'
9565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9566   case $host_os in
9567   irix5* | nonstopux*)
9568     libsuff= shlibsuff=
9569     ;;
9570   *)
9571     case $LD in # libtool.m4 will add one of these switches to LD
9572     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9573       libsuff= shlibsuff= libmagic=32-bit;;
9574     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9575       libsuff=32 shlibsuff=N32 libmagic=N32;;
9576     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9577       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9578     *) libsuff= shlibsuff= libmagic=never-match;;
9579     esac
9580     ;;
9581   esac
9582   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9583   shlibpath_overrides_runpath=no
9584   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9585   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9586   hardcode_into_libs=yes
9587   ;;
9588
9589 # No shared lib support for Linux oldld, aout, or coff.
9590 linux*oldld* | linux*aout* | linux*coff*)
9591   dynamic_linker=no
9592   ;;
9593
9594 # This must be Linux ELF.
9595 linux*)
9596   version_type=linux
9597   need_lib_prefix=no
9598   need_version=no
9599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600   soname_spec='${libname}${release}${shared_ext}$major'
9601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9602   shlibpath_var=LD_LIBRARY_PATH
9603   shlibpath_overrides_runpath=no
9604   # This implies no fast_install, which is unacceptable.
9605   # Some rework will be needed to allow for fast_install
9606   # before this can be enabled.
9607   hardcode_into_libs=yes
9608
9609   # Append ld.so.conf contents to the search path
9610   if test -f /etc/ld.so.conf; then
9611     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' ' '`
9612     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9613   fi
9614
9615   # We used to test for /lib/ld.so.1 and disable shared libraries on
9616   # powerpc, because MkLinux only supported shared libraries with the
9617   # GNU dynamic linker.  Since this was broken with cross compilers,
9618   # most powerpc-linux boxes support dynamic linking these days and
9619   # people can always --disable-shared, the test was removed, and we
9620   # assume the GNU/Linux dynamic linker is in use.
9621   dynamic_linker='GNU/Linux ld.so'
9622   ;;
9623
9624 knetbsd*-gnu)
9625   version_type=linux
9626   need_lib_prefix=no
9627   need_version=no
9628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629   soname_spec='${libname}${release}${shared_ext}$major'
9630   shlibpath_var=LD_LIBRARY_PATH
9631   shlibpath_overrides_runpath=no
9632   hardcode_into_libs=yes
9633   dynamic_linker='GNU ld.so'
9634   ;;
9635
9636 netbsd*)
9637   version_type=sunos
9638   need_lib_prefix=no
9639   need_version=no
9640   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9642     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9643     dynamic_linker='NetBSD (a.out) ld.so'
9644   else
9645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9646     soname_spec='${libname}${release}${shared_ext}$major'
9647     dynamic_linker='NetBSD ld.elf_so'
9648   fi
9649   shlibpath_var=LD_LIBRARY_PATH
9650   shlibpath_overrides_runpath=yes
9651   hardcode_into_libs=yes
9652   ;;
9653
9654 newsos6)
9655   version_type=linux
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657   shlibpath_var=LD_LIBRARY_PATH
9658   shlibpath_overrides_runpath=yes
9659   ;;
9660
9661 nto-qnx*)
9662   version_type=linux
9663   need_lib_prefix=no
9664   need_version=no
9665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666   soname_spec='${libname}${release}${shared_ext}$major'
9667   shlibpath_var=LD_LIBRARY_PATH
9668   shlibpath_overrides_runpath=yes
9669   ;;
9670
9671 openbsd*)
9672   version_type=sunos
9673   sys_lib_dlsearch_path_spec="/usr/lib"
9674   need_lib_prefix=no
9675   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9676   case $host_os in
9677     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9678     *)                         need_version=no  ;;
9679   esac
9680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682   shlibpath_var=LD_LIBRARY_PATH
9683   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9684     case $host_os in
9685       openbsd2.[89] | openbsd2.[89].*)
9686         shlibpath_overrides_runpath=no
9687         ;;
9688       *)
9689         shlibpath_overrides_runpath=yes
9690         ;;
9691       esac
9692   else
9693     shlibpath_overrides_runpath=yes
9694   fi
9695   ;;
9696
9697 os2*)
9698   libname_spec='$name'
9699   shrext_cmds=".dll"
9700   need_lib_prefix=no
9701   library_names_spec='$libname${shared_ext} $libname.a'
9702   dynamic_linker='OS/2 ld.exe'
9703   shlibpath_var=LIBPATH
9704   ;;
9705
9706 osf3* | osf4* | osf5*)
9707   version_type=osf
9708   need_lib_prefix=no
9709   need_version=no
9710   soname_spec='${libname}${release}${shared_ext}$major'
9711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712   shlibpath_var=LD_LIBRARY_PATH
9713   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9714   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9715   ;;
9716
9717 solaris*)
9718   version_type=linux
9719   need_lib_prefix=no
9720   need_version=no
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722   soname_spec='${libname}${release}${shared_ext}$major'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   shlibpath_overrides_runpath=yes
9725   hardcode_into_libs=yes
9726   # ldd complains unless libraries are executable
9727   postinstall_cmds='chmod +x $lib'
9728   ;;
9729
9730 sunos4*)
9731   version_type=sunos
9732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9734   shlibpath_var=LD_LIBRARY_PATH
9735   shlibpath_overrides_runpath=yes
9736   if test "$with_gnu_ld" = yes; then
9737     need_lib_prefix=no
9738   fi
9739   need_version=yes
9740   ;;
9741
9742 sysv4 | sysv4.3*)
9743   version_type=linux
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   shlibpath_var=LD_LIBRARY_PATH
9747   case $host_vendor in
9748     sni)
9749       shlibpath_overrides_runpath=no
9750       need_lib_prefix=no
9751       export_dynamic_flag_spec='${wl}-Blargedynsym'
9752       runpath_var=LD_RUN_PATH
9753       ;;
9754     siemens)
9755       need_lib_prefix=no
9756       ;;
9757     motorola)
9758       need_lib_prefix=no
9759       need_version=no
9760       shlibpath_overrides_runpath=no
9761       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9762       ;;
9763   esac
9764   ;;
9765
9766 sysv4*MP*)
9767   if test -d /usr/nec ;then
9768     version_type=linux
9769     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770     soname_spec='$libname${shared_ext}.$major'
9771     shlibpath_var=LD_LIBRARY_PATH
9772   fi
9773   ;;
9774
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776   version_type=freebsd-elf
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   shlibpath_var=LD_LIBRARY_PATH
9782   hardcode_into_libs=yes
9783   if test "$with_gnu_ld" = yes; then
9784     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9785     shlibpath_overrides_runpath=no
9786   else
9787     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788     shlibpath_overrides_runpath=yes
9789     case $host_os in
9790       sco3.2v5*)
9791         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9792         ;;
9793     esac
9794   fi
9795   sys_lib_dlsearch_path_spec='/usr/lib'
9796   ;;
9797
9798 uts4*)
9799   version_type=linux
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   ;;
9804
9805 *)
9806   dynamic_linker=no
9807   ;;
9808 esac
9809 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810 echo "${ECHO_T}$dynamic_linker" >&6; }
9811 test "$dynamic_linker" = no && can_build_shared=no
9812
9813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9814 if test "$GCC" = yes; then
9815   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816 fi
9817
9818
9819 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9820 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9821 if test "${libltdl_cv_shlibext+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824
9825 module=yes
9826 eval libltdl_cv_shlibext=$shrext_cmds
9827
9828 fi
9829 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9830 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9831 if test -n "$libltdl_cv_shlibext"; then
9832
9833 cat >>confdefs.h <<_ACEOF
9834 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9835 _ACEOF
9836
9837 fi
9838
9839
9840 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9841 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9842 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845   libltdl_cv_shlibpath_var="$shlibpath_var"
9846 fi
9847 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9848 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9849 if test -n "$libltdl_cv_shlibpath_var"; then
9850
9851 cat >>confdefs.h <<_ACEOF
9852 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9853 _ACEOF
9854
9855 fi
9856
9857
9858 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9859 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9860 if test "${libltdl_cv_sys_search_path+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9864 fi
9865 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9866 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9867 if test -n "$libltdl_cv_sys_search_path"; then
9868   sys_search_path=
9869   for dir in $libltdl_cv_sys_search_path; do
9870     if test -z "$sys_search_path"; then
9871       sys_search_path="$dir"
9872     else
9873       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9874     fi
9875   done
9876
9877 cat >>confdefs.h <<_ACEOF
9878 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9879 _ACEOF
9880
9881 fi
9882
9883 { echo "$as_me:$LINENO: checking for objdir" >&5
9884 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9885 if test "${libltdl_cv_objdir+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   libltdl_cv_objdir="$objdir"
9889   if test -n "$objdir"; then
9890     :
9891   else
9892     rm -f .libs 2>/dev/null
9893     mkdir .libs 2>/dev/null
9894     if test -d .libs; then
9895       libltdl_cv_objdir=.libs
9896     else
9897       # MS-DOS does not allow filenames that begin with a dot.
9898       libltdl_cv_objdir=_libs
9899     fi
9900   rmdir .libs 2>/dev/null
9901   fi
9902
9903 fi
9904 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9905 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9906
9907 cat >>confdefs.h <<_ACEOF
9908 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9909 _ACEOF
9910
9911
9912
9913
9914
9915
9916 # Check for command to grab the raw symbol name followed by C symbol from nm.
9917 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9918 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9919 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922
9923 # These are sane defaults that work on at least a few old systems.
9924 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9925
9926 # Character class describing NM global symbol codes.
9927 symcode='[BCDEGRST]'
9928
9929 # Regexp to match symbols that can be accessed directly from C.
9930 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9931
9932 # Transform an extracted symbol line into a proper C declaration
9933 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9934
9935 # Transform an extracted symbol line into symbol name and symbol address
9936 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'"
9937
9938 # Define system-specific variables.
9939 case $host_os in
9940 aix*)
9941   symcode='[BCDT]'
9942   ;;
9943 cygwin* | mingw* | pw32*)
9944   symcode='[ABCDGISTW]'
9945   ;;
9946 hpux*) # Its linker distinguishes data from code symbols
9947   if test "$host_cpu" = ia64; then
9948     symcode='[ABCDEGRST]'
9949   fi
9950   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9951   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'"
9952   ;;
9953 linux*)
9954   if test "$host_cpu" = ia64; then
9955     symcode='[ABCDGIRSTW]'
9956     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9957     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'"
9958   fi
9959   ;;
9960 irix* | nonstopux*)
9961   symcode='[BCDEGRST]'
9962   ;;
9963 osf*)
9964   symcode='[BCDEGQRST]'
9965   ;;
9966 solaris*)
9967   symcode='[BDRT]'
9968   ;;
9969 sco3.2v5*)
9970   symcode='[DT]'
9971   ;;
9972 sysv4.2uw2*)
9973   symcode='[DT]'
9974   ;;
9975 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9976   symcode='[ABDT]'
9977   ;;
9978 sysv4)
9979   symcode='[DFNSTU]'
9980   ;;
9981 esac
9982
9983 # Handle CRLF in mingw tool chain
9984 opt_cr=
9985 case $build_os in
9986 mingw*)
9987   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9988   ;;
9989 esac
9990
9991 # If we're using GNU nm, then use its standard symbol codes.
9992 case `$NM -V 2>&1` in
9993 *GNU* | *'with BFD'*)
9994   symcode='[ABCDGIRSTW]' ;;
9995 esac
9996
9997 # Try without a prefix undercore, then with it.
9998 for ac_symprfx in "" "_"; do
9999
10000   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10001   symxfrm="\\1 $ac_symprfx\\2 \\2"
10002
10003   # Write the raw and C identifiers.
10004   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10005
10006   # Check to see that the pipe works correctly.
10007   pipe_works=no
10008
10009   rm -f conftest*
10010   cat > conftest.$ac_ext <<EOF
10011 #ifdef __cplusplus
10012 extern "C" {
10013 #endif
10014 char nm_test_var;
10015 void nm_test_func(){}
10016 #ifdef __cplusplus
10017 }
10018 #endif
10019 int main(){nm_test_var='a';nm_test_func();return(0);}
10020 EOF
10021
10022   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023   (eval $ac_compile) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; then
10027     # Now try to grab the symbols.
10028     nlist=conftest.nm
10029     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10030   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } && test -s "$nlist"; then
10034       # Try sorting and uniquifying the output.
10035       if sort "$nlist" | uniq > "$nlist"T; then
10036         mv -f "$nlist"T "$nlist"
10037       else
10038         rm -f "$nlist"T
10039       fi
10040
10041       # Make sure that we snagged all the symbols we need.
10042       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10043         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10044           cat <<EOF > conftest.$ac_ext
10045 #ifdef __cplusplus
10046 extern "C" {
10047 #endif
10048
10049 EOF
10050           # Now generate the symbol file.
10051           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10052
10053           cat <<EOF >> conftest.$ac_ext
10054 #if defined (__STDC__) && __STDC__
10055 # define lt_ptr_t void *
10056 #else
10057 # define lt_ptr_t char *
10058 # define const
10059 #endif
10060
10061 /* The mapping between symbol names and symbols. */
10062 const struct {
10063   const char *name;
10064   lt_ptr_t address;
10065 }
10066 lt_preloaded_symbols[] =
10067 {
10068 EOF
10069           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10070           cat <<\EOF >> conftest.$ac_ext
10071   {0, (lt_ptr_t) 0}
10072 };
10073
10074 #ifdef __cplusplus
10075 }
10076 #endif
10077 EOF
10078           # Now try linking the two files.
10079           mv conftest.$ac_objext conftstm.$ac_objext
10080           lt_save_LIBS="$LIBS"
10081           lt_save_CFLAGS="$CFLAGS"
10082           LIBS="conftstm.$ac_objext"
10083           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10084           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085   (eval $ac_link) 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10089             pipe_works=yes
10090           fi
10091           LIBS="$lt_save_LIBS"
10092           CFLAGS="$lt_save_CFLAGS"
10093         else
10094           echo "cannot find nm_test_func in $nlist" >&5
10095         fi
10096       else
10097         echo "cannot find nm_test_var in $nlist" >&5
10098       fi
10099     else
10100       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10101     fi
10102   else
10103     echo "$progname: failed program was:" >&5
10104     cat conftest.$ac_ext >&5
10105   fi
10106   rm -f conftest* conftst*
10107
10108   # Do not use the global_symbol_pipe unless it works.
10109   if test "$pipe_works" = yes; then
10110     break
10111   else
10112     lt_cv_sys_global_symbol_pipe=
10113   fi
10114 done
10115
10116 fi
10117
10118 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10119   lt_cv_sys_global_symbol_to_cdecl=
10120 fi
10121 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10122   { echo "$as_me:$LINENO: result: failed" >&5
10123 echo "${ECHO_T}failed" >&6; }
10124 else
10125   { echo "$as_me:$LINENO: result: ok" >&5
10126 echo "${ECHO_T}ok" >&6; }
10127 fi
10128
10129
10130 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10131 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10132 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10133   echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10136     libltdl_cv_preloaded_symbols=yes
10137   else
10138     libltdl_cv_preloaded_symbols=no
10139   fi
10140
10141 fi
10142 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10143 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10144 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10145
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_PRELOADED_SYMBOLS 1
10148 _ACEOF
10149
10150 fi
10151
10152 LIBADD_DL=
10153
10154 ac_ext=c
10155 ac_cpp='$CPP $CPPFLAGS'
10156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10159
10160
10161 { echo "$as_me:$LINENO: checking for shl_load" >&5
10162 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10163 if test "${ac_cv_func_shl_load+set}" = set; then
10164   echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166   cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10174 #define shl_load innocuous_shl_load
10175
10176 /* System header to define __stub macros and hopefully few prototypes,
10177     which can conflict with char shl_load (); below.
10178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179     <limits.h> exists even on freestanding compilers.  */
10180
10181 #ifdef __STDC__
10182 # include <limits.h>
10183 #else
10184 # include <assert.h>
10185 #endif
10186
10187 #undef shl_load
10188
10189 /* Override any GCC internal prototype to avoid an error.
10190    Use char because int might match the return type of a GCC
10191    builtin and then its argument prototype would still apply.  */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char shl_load ();
10196 /* The GNU C library defines this for functions which it implements
10197     to always fail with ENOSYS.  Some functions are actually named
10198     something starting with __ and the normal name is an alias.  */
10199 #if defined __stub_shl_load || defined __stub___shl_load
10200 choke me
10201 #endif
10202
10203 int
10204 main ()
10205 {
10206 return shl_load ();
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_link") 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } &&
10225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226   { (case "(($ac_try" in
10227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228   *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231   (eval "$ac_try") 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; } &&
10235          { ac_try='test -s conftest$ac_exeext'
10236   { (case "(($ac_try" in
10237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238   *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241   (eval "$ac_try") 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_func_shl_load=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250         ac_cv_func_shl_load=no
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext \
10254       conftest$ac_exeext conftest.$ac_ext
10255 fi
10256 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10257 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10258 if test $ac_cv_func_shl_load = yes; then
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_SHL_LOAD 1
10262 _ACEOF
10263
10264 else
10265   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10266 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10267 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-ldld  $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h.  */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h.  */
10278
10279 /* Override any GCC internal prototype to avoid an error.
10280    Use char because int might match the return type of a GCC
10281    builtin and then its argument prototype would still apply.  */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 char shl_load ();
10286 int
10287 main ()
10288 {
10289 return shl_load ();
10290   ;
10291   return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_link") 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } &&
10308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309   { (case "(($ac_try" in
10310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311   *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314   (eval "$ac_try") 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_try") 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; }; then
10328   ac_cv_lib_dld_shl_load=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333         ac_cv_lib_dld_shl_load=no
10334 fi
10335
10336 rm -f core conftest.err conftest.$ac_objext \
10337       conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10342 if test $ac_cv_lib_dld_shl_load = yes; then
10343
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_SHL_LOAD 1
10346 _ACEOF
10347
10348         LIBADD_DL="$LIBADD_DL -ldld"
10349 else
10350   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10351 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   ac_check_lib_save_LIBS=$LIBS
10356 LIBS="-ldl  $LIBS"
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h.  */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h.  */
10363
10364 /* Override any GCC internal prototype to avoid an error.
10365    Use char because int might match the return type of a GCC
10366    builtin and then its argument prototype would still apply.  */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char dlopen ();
10371 int
10372 main ()
10373 {
10374 return dlopen ();
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383   *) ac_try_echo=$ac_try;;
10384 esac
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386   (eval "$ac_link") 2>conftest.er1
10387   ac_status=$?
10388   grep -v '^ *+' conftest.er1 >conftest.err
10389   rm -f conftest.er1
10390   cat conftest.err >&5
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } &&
10393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394   { (case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_try") 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (case "(($ac_try" in
10405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406   *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409   (eval "$ac_try") 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_cv_lib_dl_dlopen=yes
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418         ac_cv_lib_dl_dlopen=no
10419 fi
10420
10421 rm -f core conftest.err conftest.$ac_objext \
10422       conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10426 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10427 if test $ac_cv_lib_dl_dlopen = yes; then
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_LIBDL 1
10431 _ACEOF
10432
10433                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10434 else
10435   cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 #if HAVE_DLFCN_H
10442 #  include <dlfcn.h>
10443 #endif
10444
10445 int
10446 main ()
10447 {
10448 dlopen(0, 0);
10449   ;
10450   return 0;
10451 }
10452 _ACEOF
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_link") 2>conftest.er1
10461   ac_status=$?
10462   grep -v '^ *+' conftest.er1 >conftest.err
10463   rm -f conftest.er1
10464   cat conftest.err >&5
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } &&
10467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10468   { (case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473   (eval "$ac_try") 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; } &&
10477          { ac_try='test -s conftest$ac_exeext'
10478   { (case "(($ac_try" in
10479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480   *) ac_try_echo=$ac_try;;
10481 esac
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483   (eval "$ac_try") 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; }; then
10487
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_LIBDL 1
10490 _ACEOF
10491  libltdl_cv_func_dlopen="yes"
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10497 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10498 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lsvld  $LIBS"
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509
10510 /* Override any GCC internal prototype to avoid an error.
10511    Use char because int might match the return type of a GCC
10512    builtin and then its argument prototype would still apply.  */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char dlopen ();
10517 int
10518 main ()
10519 {
10520 return dlopen ();
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_link") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10540   { (case "(($ac_try" in
10541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542   *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545   (eval "$ac_try") 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; } &&
10549          { ac_try='test -s conftest$ac_exeext'
10550   { (case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_try") 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   ac_cv_lib_svld_dlopen=yes
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564         ac_cv_lib_svld_dlopen=no
10565 fi
10566
10567 rm -f core conftest.err conftest.$ac_objext \
10568       conftest$ac_exeext conftest.$ac_ext
10569 LIBS=$ac_check_lib_save_LIBS
10570 fi
10571 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10573 if test $ac_cv_lib_svld_dlopen = yes; then
10574
10575 cat >>confdefs.h <<\_ACEOF
10576 #define HAVE_LIBDL 1
10577 _ACEOF
10578
10579                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10580 else
10581   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10584   echo $ECHO_N "(cached) $ECHO_C" >&6
10585 else
10586   ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-ldld  $LIBS"
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594
10595 /* Override any GCC internal prototype to avoid an error.
10596    Use char because int might match the return type of a GCC
10597    builtin and then its argument prototype would still apply.  */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char dld_link ();
10602 int
10603 main ()
10604 {
10605 return dld_link ();
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_link") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625   { (case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630   (eval "$ac_try") 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; } &&
10634          { ac_try='test -s conftest$ac_exeext'
10635   { (case "(($ac_try" in
10636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637   *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640   (eval "$ac_try") 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; }; then
10644   ac_cv_lib_dld_dld_link=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649         ac_cv_lib_dld_dld_link=no
10650 fi
10651
10652 rm -f core conftest.err conftest.$ac_objext \
10653       conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10655 fi
10656 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10657 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10658 if test $ac_cv_lib_dld_dld_link = yes; then
10659
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_DLD 1
10662 _ACEOF
10663
10664                 LIBADD_DL="$LIBADD_DL -ldld"
10665 else
10666   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10667 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10668 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671   cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h.  */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h.  */
10677 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10679 #define _dyld_func_lookup innocuous__dyld_func_lookup
10680
10681 /* System header to define __stub macros and hopefully few prototypes,
10682     which can conflict with char _dyld_func_lookup (); below.
10683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684     <limits.h> exists even on freestanding compilers.  */
10685
10686 #ifdef __STDC__
10687 # include <limits.h>
10688 #else
10689 # include <assert.h>
10690 #endif
10691
10692 #undef _dyld_func_lookup
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695    Use char because int might match the return type of a GCC
10696    builtin and then its argument prototype would still apply.  */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char _dyld_func_lookup ();
10701 /* The GNU C library defines this for functions which it implements
10702     to always fail with ENOSYS.  Some functions are actually named
10703     something starting with __ and the normal name is an alias.  */
10704 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10705 choke me
10706 #endif
10707
10708 int
10709 main ()
10710 {
10711 return _dyld_func_lookup ();
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } &&
10730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731   { (case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736   (eval "$ac_try") 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; } &&
10740          { ac_try='test -s conftest$ac_exeext'
10741   { (case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_try") 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_cv_func__dyld_func_lookup=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755         ac_cv_func__dyld_func_lookup=no
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext \
10759       conftest$ac_exeext conftest.$ac_ext
10760 fi
10761 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10762 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10763 if test $ac_cv_func__dyld_func_lookup = yes; then
10764
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_DYLD 1
10767 _ACEOF
10768
10769 fi
10770
10771
10772 fi
10773
10774
10775 fi
10776
10777
10778 fi
10779
10780 rm -f core conftest.err conftest.$ac_objext \
10781       conftest$ac_exeext conftest.$ac_ext
10782
10783 fi
10784
10785
10786 fi
10787
10788
10789 fi
10790
10791
10792 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10793 then
10794   lt_save_LIBS="$LIBS"
10795   LIBS="$LIBS $LIBADD_DL"
10796
10797 for ac_func in dlerror
10798 do
10799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10813 #define $ac_func innocuous_$ac_func
10814
10815 /* System header to define __stub macros and hopefully few prototypes,
10816     which can conflict with char $ac_func (); below.
10817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818     <limits.h> exists even on freestanding compilers.  */
10819
10820 #ifdef __STDC__
10821 # include <limits.h>
10822 #else
10823 # include <assert.h>
10824 #endif
10825
10826 #undef $ac_func
10827
10828 /* Override any GCC internal prototype to avoid an error.
10829    Use char because int might match the return type of a GCC
10830    builtin and then its argument prototype would still apply.  */
10831 #ifdef __cplusplus
10832 extern "C"
10833 #endif
10834 char $ac_func ();
10835 /* The GNU C library defines this for functions which it implements
10836     to always fail with ENOSYS.  Some functions are actually named
10837     something starting with __ and the normal name is an alias.  */
10838 #if defined __stub_$ac_func || defined __stub___$ac_func
10839 choke me
10840 #endif
10841
10842 int
10843 main ()
10844 {
10845 return $ac_func ();
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_link") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; } &&
10874          { ac_try='test -s conftest$ac_exeext'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   eval "$as_ac_var=yes"
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         eval "$as_ac_var=no"
10890 fi
10891
10892 rm -f core conftest.err conftest.$ac_objext \
10893       conftest$ac_exeext conftest.$ac_ext
10894 fi
10895 ac_res=`eval echo '${'$as_ac_var'}'`
10896                { echo "$as_me:$LINENO: result: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10898 if test `eval echo '${'$as_ac_var'}'` = yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 fi
10904 done
10905
10906   LIBS="$lt_save_LIBS"
10907 fi
10908 ac_ext=c
10909 ac_cpp='$CPP $CPPFLAGS'
10910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10913
10914
10915
10916 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10917 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10918 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921   ac_cv_sys_symbol_underscore=no
10922   cat > conftest.$ac_ext <<EOF
10923 void nm_test_func(){}
10924 int main(){nm_test_func;return 0;}
10925 EOF
10926   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927   (eval $ac_compile) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; then
10931     # Now try to grab the symbols.
10932     ac_nlist=conftest.nm
10933     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10934   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } && test -s "$ac_nlist"; then
10938       # See whether the symbols have a leading underscore.
10939       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10940         ac_cv_sys_symbol_underscore=yes
10941       else
10942         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10943           :
10944         else
10945           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10946         fi
10947       fi
10948     else
10949       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10950     fi
10951   else
10952     echo "configure: failed program was:" >&5
10953     cat conftest.c >&5
10954   fi
10955   rm -rf conftest*
10956
10957 fi
10958 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10959 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10960
10961
10962 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10963   if test x"$libltdl_cv_func_dlopen" = xyes ||
10964      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10965         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10966 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10967 if test "${libltdl_cv_need_uscore+set}" = set; then
10968   echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970   libltdl_cv_need_uscore=unknown
10971           save_LIBS="$LIBS"
10972           LIBS="$LIBS $LIBADD_DL"
10973           if test "$cross_compiling" = yes; then :
10974   libltdl_cv_need_uscore=cross
10975 else
10976   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10977   lt_status=$lt_dlunknown
10978   cat > conftest.$ac_ext <<EOF
10979 #line 10979 "configure"
10980 #include "confdefs.h"
10981
10982 #if HAVE_DLFCN_H
10983 #include <dlfcn.h>
10984 #endif
10985
10986 #include <stdio.h>
10987
10988 #ifdef RTLD_GLOBAL
10989 #  define LT_DLGLOBAL           RTLD_GLOBAL
10990 #else
10991 #  ifdef DL_GLOBAL
10992 #    define LT_DLGLOBAL         DL_GLOBAL
10993 #  else
10994 #    define LT_DLGLOBAL         0
10995 #  endif
10996 #endif
10997
10998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10999    find out it does not work in some platform. */
11000 #ifndef LT_DLLAZY_OR_NOW
11001 #  ifdef RTLD_LAZY
11002 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11003 #  else
11004 #    ifdef DL_LAZY
11005 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11006 #    else
11007 #      ifdef RTLD_NOW
11008 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11009 #      else
11010 #        ifdef DL_NOW
11011 #          define LT_DLLAZY_OR_NOW      DL_NOW
11012 #        else
11013 #          define LT_DLLAZY_OR_NOW      0
11014 #        endif
11015 #      endif
11016 #    endif
11017 #  endif
11018 #endif
11019
11020 #ifdef __cplusplus
11021 extern "C" void exit (int);
11022 #endif
11023
11024 void fnord() { int i=42;}
11025 int main ()
11026 {
11027   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11028   int status = $lt_dlunknown;
11029
11030   if (self)
11031     {
11032       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11033       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11034       /* dlclose (self); */
11035     }
11036   else
11037     puts (dlerror ());
11038
11039     exit (status);
11040 }
11041 EOF
11042   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043   (eval $ac_link) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11047     (./conftest; exit; ) >&5 2>/dev/null
11048     lt_status=$?
11049     case x$lt_status in
11050       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11051       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11052       x$lt_dlunknown|x*)  ;;
11053     esac
11054   else :
11055     # compilation failed
11056
11057   fi
11058 fi
11059 rm -fr conftest*
11060
11061           LIBS="$save_LIBS"
11062
11063 fi
11064 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11065 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11066   fi
11067 fi
11068
11069 if test x"$libltdl_cv_need_uscore" = xyes; then
11070
11071 cat >>confdefs.h <<\_ACEOF
11072 #define NEED_USCORE 1
11073 _ACEOF
11074
11075 fi
11076
11077
11078 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11079 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11080 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083   # PORTME does your system automatically load deplibs for dlopen?
11084   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11085   # For now, we just catch OSes we know something about -- in the
11086   # future, we'll try test this programmatically.
11087   libltdl_cv_sys_dlopen_deplibs=unknown
11088   case "$host_os" in
11089   aix3*|aix4.1.*|aix4.2.*)
11090     # Unknown whether this is true for these versions of AIX, but
11091     # we want this `case' here to explicitly catch those versions.
11092     libltdl_cv_sys_dlopen_deplibs=unknown
11093     ;;
11094   aix[45]*)
11095     libltdl_cv_sys_dlopen_deplibs=yes
11096     ;;
11097   darwin*)
11098     # Assuming the user has installed a libdl from somewhere, this is true
11099     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11100     libltdl_cv_sys_dlopen_deplibs=yes
11101     ;;
11102   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11103     # GNU and its variants, using gnu ld.so (Glibc)
11104     libltdl_cv_sys_dlopen_deplibs=yes
11105     ;;
11106   hpux10*|hpux11*)
11107     libltdl_cv_sys_dlopen_deplibs=yes
11108     ;;
11109   interix*)
11110     libltdl_cv_sys_dlopen_deplibs=yes
11111     ;;
11112   irix[12345]*|irix6.[01]*)
11113     # Catch all versions of IRIX before 6.2, and indicate that we don't
11114     # know how it worked for any of those versions.
11115     libltdl_cv_sys_dlopen_deplibs=unknown
11116     ;;
11117   irix*)
11118     # The case above catches anything before 6.2, and it's known that
11119     # at 6.2 and later dlopen does load deplibs.
11120     libltdl_cv_sys_dlopen_deplibs=yes
11121     ;;
11122   netbsd*)
11123     libltdl_cv_sys_dlopen_deplibs=yes
11124     ;;
11125   openbsd*)
11126     libltdl_cv_sys_dlopen_deplibs=yes
11127     ;;
11128   osf[1234]*)
11129     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11130     # it did *not* use an RPATH in a shared library to find objects the
11131     # library depends on, so we explictly say `no'.
11132     libltdl_cv_sys_dlopen_deplibs=no
11133     ;;
11134   osf5.0|osf5.0a|osf5.1)
11135     # dlopen *does* load deplibs and with the right loader patch applied
11136     # it even uses RPATH in a shared library to search for shared objects
11137     # that the library depends on, but there's no easy way to know if that
11138     # patch is installed.  Since this is the case, all we can really
11139     # say is unknown -- it depends on the patch being installed.  If
11140     # it is, this changes to `yes'.  Without it, it would be `no'.
11141     libltdl_cv_sys_dlopen_deplibs=unknown
11142     ;;
11143   osf*)
11144     # the two cases above should catch all versions of osf <= 5.1.  Read
11145     # the comments above for what we know about them.
11146     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11147     # is used to find them so we can finally say `yes'.
11148     libltdl_cv_sys_dlopen_deplibs=yes
11149     ;;
11150   solaris*)
11151     libltdl_cv_sys_dlopen_deplibs=yes
11152     ;;
11153   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11154     libltdl_cv_sys_dlopen_deplibs=yes
11155     ;;
11156   esac
11157
11158 fi
11159 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11160 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11161 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11162
11163 cat >>confdefs.h <<\_ACEOF
11164 #define LTDL_DLOPEN_DEPLIBS 1
11165 _ACEOF
11166
11167 fi
11168
11169
11170 for ac_header in argz.h
11171 do
11172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 fi
11179 ac_res=`eval echo '${'$as_ac_Header'}'`
11180                { echo "$as_me:$LINENO: result: $ac_res" >&5
11181 echo "${ECHO_T}$ac_res" >&6; }
11182 else
11183   # Is the header compilable?
11184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192 $ac_includes_default
11193 #include <$ac_header>
11194 _ACEOF
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_compile") 2>conftest.er1
11203   ac_status=$?
11204   grep -v '^ *+' conftest.er1 >conftest.err
11205   rm -f conftest.er1
11206   cat conftest.err >&5
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } &&
11209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210   { (case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_try") 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; } &&
11219          { ac_try='test -s conftest.$ac_objext'
11220   { (case "(($ac_try" in
11221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222   *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225   (eval "$ac_try") 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   ac_header_compiler=yes
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234         ac_header_compiler=no
11235 fi
11236
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6; }
11240
11241 # Is the header present?
11242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250 #include <$ac_header>
11251 _ACEOF
11252 if { (ac_try="$ac_cpp conftest.$ac_ext"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } >/dev/null; then
11265   if test -s conftest.err; then
11266     ac_cpp_err=$ac_c_preproc_warn_flag
11267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268   else
11269     ac_cpp_err=
11270   fi
11271 else
11272   ac_cpp_err=yes
11273 fi
11274 if test -z "$ac_cpp_err"; then
11275   ac_header_preproc=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280   ac_header_preproc=no
11281 fi
11282
11283 rm -f conftest.err conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 echo "${ECHO_T}$ac_header_preproc" >&6; }
11286
11287 # So?  What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289   yes:no: )
11290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294     ac_header_preproc=yes
11295     ;;
11296   no:yes:* )
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11309     ( cat <<\_ASBOX
11310 ## ----------------------------------- ##
11311 ## Report this to llvmbugs@cs.uiuc.edu ##
11312 ## ----------------------------------- ##
11313 _ASBOX
11314      ) | sed "s/^/$as_me: WARNING:     /" >&2
11315     ;;
11316 esac
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   eval "$as_ac_Header=\$ac_header_preproc"
11323 fi
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325                { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11327
11328 fi
11329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11330   cat >>confdefs.h <<_ACEOF
11331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11332 _ACEOF
11333
11334 fi
11335
11336 done
11337
11338
11339 { echo "$as_me:$LINENO: checking for error_t" >&5
11340 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11341 if test "${ac_cv_type_error_t+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 #if HAVE_ARGZ_H
11351 #  include <argz.h>
11352 #endif
11353
11354 typedef error_t ac__type_new_;
11355 int
11356 main ()
11357 {
11358 if ((ac__type_new_ *) 0)
11359   return 0;
11360 if (sizeof (ac__type_new_))
11361   return 0;
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_compile") 2>conftest.er1
11374   ac_status=$?
11375   grep -v '^ *+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } &&
11380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381   { (case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_try") 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; } &&
11390          { ac_try='test -s conftest.$ac_objext'
11391   { (case "(($ac_try" in
11392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393   *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396   (eval "$ac_try") 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   ac_cv_type_error_t=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405         ac_cv_type_error_t=no
11406 fi
11407
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 fi
11410 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11411 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11412 if test $ac_cv_type_error_t = yes; then
11413
11414 cat >>confdefs.h <<_ACEOF
11415 #define HAVE_ERROR_T 1
11416 _ACEOF
11417
11418
11419 else
11420
11421 cat >>confdefs.h <<\_ACEOF
11422 #define error_t int
11423 _ACEOF
11424
11425 fi
11426
11427
11428
11429
11430
11431
11432
11433 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11434 do
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441   cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11449 #define $ac_func innocuous_$ac_func
11450
11451 /* System header to define __stub macros and hopefully few prototypes,
11452     which can conflict with char $ac_func (); below.
11453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454     <limits.h> exists even on freestanding compilers.  */
11455
11456 #ifdef __STDC__
11457 # include <limits.h>
11458 #else
11459 # include <assert.h>
11460 #endif
11461
11462 #undef $ac_func
11463
11464 /* Override any GCC internal prototype to avoid an error.
11465    Use char because int might match the return type of a GCC
11466    builtin and then its argument prototype would still apply.  */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 char $ac_func ();
11471 /* The GNU C library defines this for functions which it implements
11472     to always fail with ENOSYS.  Some functions are actually named
11473     something starting with __ and the normal name is an alias.  */
11474 #if defined __stub_$ac_func || defined __stub___$ac_func
11475 choke me
11476 #endif
11477
11478 int
11479 main ()
11480 {
11481 return $ac_func ();
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_link") 2>conftest.er1
11494   ac_status=$?
11495   grep -v '^ *+' conftest.er1 >conftest.err
11496   rm -f conftest.er1
11497   cat conftest.err >&5
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501   { (case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_try") 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; } &&
11510          { ac_try='test -s conftest$ac_exeext'
11511   { (case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516   (eval "$ac_try") 2>&5
11517   ac_status=$?
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); }; }; then
11520   eval "$as_ac_var=yes"
11521 else
11522   echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525         eval "$as_ac_var=no"
11526 fi
11527
11528 rm -f core conftest.err conftest.$ac_objext \
11529       conftest$ac_exeext conftest.$ac_ext
11530 fi
11531 ac_res=`eval echo '${'$as_ac_var'}'`
11532                { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535   cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537 _ACEOF
11538
11539 fi
11540 done
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11570                   stdio.h unistd.h
11571 do
11572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 fi
11579 ac_res=`eval echo '${'$as_ac_Header'}'`
11580                { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11582 else
11583   # Is the header compilable?
11584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11586 cat >conftest.$ac_ext <<_ACEOF
11587 /* confdefs.h.  */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h.  */
11592 $ac_includes_default
11593 #include <$ac_header>
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (ac_try="$ac_compile"
11597 case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_compile") 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610   { (case "(($ac_try" in
11611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612   *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615   (eval "$ac_try") 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; } &&
11619          { ac_try='test -s conftest.$ac_objext'
11620   { (case "(($ac_try" in
11621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622   *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625   (eval "$ac_try") 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; }; then
11629   ac_header_compiler=yes
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634         ac_header_compiler=no
11635 fi
11636
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11639 echo "${ECHO_T}$ac_header_compiler" >&6; }
11640
11641 # Is the header present?
11642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 #include <$ac_header>
11651 _ACEOF
11652 if { (ac_try="$ac_cpp conftest.$ac_ext"
11653 case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } >/dev/null; then
11665   if test -s conftest.err; then
11666     ac_cpp_err=$ac_c_preproc_warn_flag
11667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11668   else
11669     ac_cpp_err=
11670   fi
11671 else
11672   ac_cpp_err=yes
11673 fi
11674 if test -z "$ac_cpp_err"; then
11675   ac_header_preproc=yes
11676 else
11677   echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680   ac_header_preproc=no
11681 fi
11682
11683 rm -f conftest.err conftest.$ac_ext
11684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685 echo "${ECHO_T}$ac_header_preproc" >&6; }
11686
11687 # So?  What about this header?
11688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11689   yes:no: )
11690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694     ac_header_preproc=yes
11695     ;;
11696   no:yes:* )
11697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11709     ( cat <<\_ASBOX
11710 ## ----------------------------------- ##
11711 ## Report this to llvmbugs@cs.uiuc.edu ##
11712 ## ----------------------------------- ##
11713 _ASBOX
11714      ) | sed "s/^/$as_me: WARNING:     /" >&2
11715     ;;
11716 esac
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722   eval "$as_ac_Header=\$ac_header_preproc"
11723 fi
11724 ac_res=`eval echo '${'$as_ac_Header'}'`
11725                { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11727
11728 fi
11729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11730   cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11732 _ACEOF
11733
11734 fi
11735
11736 done
11737
11738
11739
11740
11741
11742 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11743 do
11744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11746   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 fi
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752                { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11754 else
11755   # Is the header compilable?
11756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 $ac_includes_default
11765 #include <$ac_header>
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_compile") 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782   { (case "(($ac_try" in
11783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784   *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787   (eval "$ac_try") 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; } &&
11791          { ac_try='test -s conftest.$ac_objext'
11792   { (case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_try") 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; }; then
11801   ac_header_compiler=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806         ac_header_compiler=no
11807 fi
11808
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11812
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 #include <$ac_header>
11823 _ACEOF
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } >/dev/null; then
11837   if test -s conftest.err; then
11838     ac_cpp_err=$ac_c_preproc_warn_flag
11839     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840   else
11841     ac_cpp_err=
11842   fi
11843 else
11844   ac_cpp_err=yes
11845 fi
11846 if test -z "$ac_cpp_err"; then
11847   ac_header_preproc=yes
11848 else
11849   echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852   ac_header_preproc=no
11853 fi
11854
11855 rm -f conftest.err conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 echo "${ECHO_T}$ac_header_preproc" >&6; }
11858
11859 # So?  What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861   yes:no: )
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866     ac_header_preproc=yes
11867     ;;
11868   no:yes:* )
11869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11881     ( cat <<\_ASBOX
11882 ## ----------------------------------- ##
11883 ## Report this to llvmbugs@cs.uiuc.edu ##
11884 ## ----------------------------------- ##
11885 _ASBOX
11886      ) | sed "s/^/$as_me: WARNING:     /" >&2
11887     ;;
11888 esac
11889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   eval "$as_ac_Header=\$ac_header_preproc"
11895 fi
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897                { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899
11900 fi
11901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11902   cat >>confdefs.h <<_ACEOF
11903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11904 _ACEOF
11905
11906 fi
11907
11908 done
11909
11910
11911
11912 for ac_header in string.h strings.h
11913 do
11914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11916   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 fi
11921 ac_res=`eval echo '${'$as_ac_Header'}'`
11922                { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11924 else
11925   # Is the header compilable?
11926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h.  */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h.  */
11934 $ac_includes_default
11935 #include <$ac_header>
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (ac_try="$ac_compile"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_compile") 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952   { (case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_try") 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; } &&
11961          { ac_try='test -s conftest.$ac_objext'
11962   { (case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_try") 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); }; }; then
11971   ac_header_compiler=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976         ac_header_compiler=no
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 echo "${ECHO_T}$ac_header_compiler" >&6; }
11982
11983 # Is the header present?
11984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 #include <$ac_header>
11993 _ACEOF
11994 if { (ac_try="$ac_cpp conftest.$ac_ext"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } >/dev/null; then
12007   if test -s conftest.err; then
12008     ac_cpp_err=$ac_c_preproc_warn_flag
12009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12010   else
12011     ac_cpp_err=
12012   fi
12013 else
12014   ac_cpp_err=yes
12015 fi
12016 if test -z "$ac_cpp_err"; then
12017   ac_header_preproc=yes
12018 else
12019   echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12021
12022   ac_header_preproc=no
12023 fi
12024
12025 rm -f conftest.err conftest.$ac_ext
12026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12027 echo "${ECHO_T}$ac_header_preproc" >&6; }
12028
12029 # So?  What about this header?
12030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12031   yes:no: )
12032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12036     ac_header_preproc=yes
12037     ;;
12038   no:yes:* )
12039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12051     ( cat <<\_ASBOX
12052 ## ----------------------------------- ##
12053 ## Report this to llvmbugs@cs.uiuc.edu ##
12054 ## ----------------------------------- ##
12055 _ASBOX
12056      ) | sed "s/^/$as_me: WARNING:     /" >&2
12057     ;;
12058 esac
12059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   eval "$as_ac_Header=\$ac_header_preproc"
12065 fi
12066 ac_res=`eval echo '${'$as_ac_Header'}'`
12067                { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12069
12070 fi
12071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12072   cat >>confdefs.h <<_ACEOF
12073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12074 _ACEOF
12075  break
12076 fi
12077
12078 done
12079
12080
12081
12082
12083 for ac_func in strchr index
12084 do
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12099 #define $ac_func innocuous_$ac_func
12100
12101 /* System header to define __stub macros and hopefully few prototypes,
12102     which can conflict with char $ac_func (); below.
12103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104     <limits.h> exists even on freestanding compilers.  */
12105
12106 #ifdef __STDC__
12107 # include <limits.h>
12108 #else
12109 # include <assert.h>
12110 #endif
12111
12112 #undef $ac_func
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115    Use char because int might match the return type of a GCC
12116    builtin and then its argument prototype would still apply.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char $ac_func ();
12121 /* The GNU C library defines this for functions which it implements
12122     to always fail with ENOSYS.  Some functions are actually named
12123     something starting with __ and the normal name is an alias.  */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12125 choke me
12126 #endif
12127
12128 int
12129 main ()
12130 {
12131 return $ac_func ();
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } &&
12150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151   { (case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_try") 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; }; then
12170   eval "$as_ac_var=yes"
12171 else
12172   echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175         eval "$as_ac_var=no"
12176 fi
12177
12178 rm -f core conftest.err conftest.$ac_objext \
12179       conftest$ac_exeext conftest.$ac_ext
12180 fi
12181 ac_res=`eval echo '${'$as_ac_var'}'`
12182                { echo "$as_me:$LINENO: result: $ac_res" >&5
12183 echo "${ECHO_T}$ac_res" >&6; }
12184 if test `eval echo '${'$as_ac_var'}'` = yes; then
12185   cat >>confdefs.h <<_ACEOF
12186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12187 _ACEOF
12188  break
12189 fi
12190 done
12191
12192
12193
12194 for ac_func in strrchr rindex
12195 do
12196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12200   echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202   cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12210 #define $ac_func innocuous_$ac_func
12211
12212 /* System header to define __stub macros and hopefully few prototypes,
12213     which can conflict with char $ac_func (); below.
12214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215     <limits.h> exists even on freestanding compilers.  */
12216
12217 #ifdef __STDC__
12218 # include <limits.h>
12219 #else
12220 # include <assert.h>
12221 #endif
12222
12223 #undef $ac_func
12224
12225 /* Override any GCC internal prototype to avoid an error.
12226    Use char because int might match the return type of a GCC
12227    builtin and then its argument prototype would still apply.  */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char $ac_func ();
12232 /* The GNU C library defines this for functions which it implements
12233     to always fail with ENOSYS.  Some functions are actually named
12234     something starting with __ and the normal name is an alias.  */
12235 #if defined __stub_$ac_func || defined __stub___$ac_func
12236 choke me
12237 #endif
12238
12239 int
12240 main ()
12241 {
12242 return $ac_func ();
12243   ;
12244   return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_link") 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } &&
12261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262   { (case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267   (eval "$ac_try") 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; } &&
12271          { ac_try='test -s conftest$ac_exeext'
12272   { (case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_try") 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281   eval "$as_ac_var=yes"
12282 else
12283   echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286         eval "$as_ac_var=no"
12287 fi
12288
12289 rm -f core conftest.err conftest.$ac_objext \
12290       conftest$ac_exeext conftest.$ac_ext
12291 fi
12292 ac_res=`eval echo '${'$as_ac_var'}'`
12293                { echo "$as_me:$LINENO: result: $ac_res" >&5
12294 echo "${ECHO_T}$ac_res" >&6; }
12295 if test `eval echo '${'$as_ac_var'}'` = yes; then
12296   cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 _ACEOF
12299  break
12300 fi
12301 done
12302
12303
12304
12305 for ac_func in memcpy bcopy
12306 do
12307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12321 #define $ac_func innocuous_$ac_func
12322
12323 /* System header to define __stub macros and hopefully few prototypes,
12324     which can conflict with char $ac_func (); below.
12325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326     <limits.h> exists even on freestanding compilers.  */
12327
12328 #ifdef __STDC__
12329 # include <limits.h>
12330 #else
12331 # include <assert.h>
12332 #endif
12333
12334 #undef $ac_func
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char $ac_func ();
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined __stub_$ac_func || defined __stub___$ac_func
12347 choke me
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 return $ac_func ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_link") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373   { (case "(($ac_try" in
12374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375   *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378   (eval "$ac_try") 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; } &&
12382          { ac_try='test -s conftest$ac_exeext'
12383   { (case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_try") 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   eval "$as_ac_var=yes"
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397         eval "$as_ac_var=no"
12398 fi
12399
12400 rm -f core conftest.err conftest.$ac_objext \
12401       conftest$ac_exeext conftest.$ac_ext
12402 fi
12403 ac_res=`eval echo '${'$as_ac_var'}'`
12404                { echo "$as_me:$LINENO: result: $ac_res" >&5
12405 echo "${ECHO_T}$ac_res" >&6; }
12406 if test `eval echo '${'$as_ac_var'}'` = yes; then
12407   cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12409 _ACEOF
12410  break
12411 fi
12412 done
12413
12414
12415
12416 for ac_func in memmove strcmp
12417 do
12418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12432 #define $ac_func innocuous_$ac_func
12433
12434 /* System header to define __stub macros and hopefully few prototypes,
12435     which can conflict with char $ac_func (); below.
12436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437     <limits.h> exists even on freestanding compilers.  */
12438
12439 #ifdef __STDC__
12440 # include <limits.h>
12441 #else
12442 # include <assert.h>
12443 #endif
12444
12445 #undef $ac_func
12446
12447 /* Override any GCC internal prototype to avoid an error.
12448    Use char because int might match the return type of a GCC
12449    builtin and then its argument prototype would still apply.  */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 char $ac_func ();
12454 /* The GNU C library defines this for functions which it implements
12455     to always fail with ENOSYS.  Some functions are actually named
12456     something starting with __ and the normal name is an alias.  */
12457 #if defined __stub_$ac_func || defined __stub___$ac_func
12458 choke me
12459 #endif
12460
12461 int
12462 main ()
12463 {
12464 return $ac_func ();
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473   *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476   (eval "$ac_link") 2>conftest.er1
12477   ac_status=$?
12478   grep -v '^ *+' conftest.er1 >conftest.err
12479   rm -f conftest.er1
12480   cat conftest.err >&5
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); } &&
12483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12484   { (case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_try") 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; } &&
12493          { ac_try='test -s conftest$ac_exeext'
12494   { (case "(($ac_try" in
12495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496   *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499   (eval "$ac_try") 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; }; then
12503   eval "$as_ac_var=yes"
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         eval "$as_ac_var=no"
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext \
12512       conftest$ac_exeext conftest.$ac_ext
12513 fi
12514 ac_res=`eval echo '${'$as_ac_var'}'`
12515                { echo "$as_me:$LINENO: result: $ac_res" >&5
12516 echo "${ECHO_T}$ac_res" >&6; }
12517 if test `eval echo '${'$as_ac_var'}'` = yes; then
12518   cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12520 _ACEOF
12521
12522 fi
12523 done
12524
12525
12526
12527
12528 for ac_func in closedir opendir readdir
12529 do
12530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12544 #define $ac_func innocuous_$ac_func
12545
12546 /* System header to define __stub macros and hopefully few prototypes,
12547     which can conflict with char $ac_func (); below.
12548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549     <limits.h> exists even on freestanding compilers.  */
12550
12551 #ifdef __STDC__
12552 # include <limits.h>
12553 #else
12554 # include <assert.h>
12555 #endif
12556
12557 #undef $ac_func
12558
12559 /* Override any GCC internal prototype to avoid an error.
12560    Use char because int might match the return type of a GCC
12561    builtin and then its argument prototype would still apply.  */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 char $ac_func ();
12566 /* The GNU C library defines this for functions which it implements
12567     to always fail with ENOSYS.  Some functions are actually named
12568     something starting with __ and the normal name is an alias.  */
12569 #if defined __stub_$ac_func || defined __stub___$ac_func
12570 choke me
12571 #endif
12572
12573 int
12574 main ()
12575 {
12576 return $ac_func ();
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585   *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588   (eval "$ac_link") 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } &&
12595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12596   { (case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601   (eval "$ac_try") 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; } &&
12605          { ac_try='test -s conftest$ac_exeext'
12606   { (case "(($ac_try" in
12607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608   *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611   (eval "$ac_try") 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; }; then
12615   eval "$as_ac_var=yes"
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620         eval "$as_ac_var=no"
12621 fi
12622
12623 rm -f core conftest.err conftest.$ac_objext \
12624       conftest$ac_exeext conftest.$ac_ext
12625 fi
12626 ac_res=`eval echo '${'$as_ac_var'}'`
12627                { echo "$as_me:$LINENO: result: $ac_res" >&5
12628 echo "${ECHO_T}$ac_res" >&6; }
12629 if test `eval echo '${'$as_ac_var'}'` = yes; then
12630   cat >>confdefs.h <<_ACEOF
12631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632 _ACEOF
12633
12634 fi
12635 done
12636
12637
12638 # Check whether --enable-shared was given.
12639 if test "${enable_shared+set}" = set; then
12640   enableval=$enable_shared; p=${PACKAGE-default}
12641     case $enableval in
12642     yes) enable_shared=yes ;;
12643     no) enable_shared=no ;;
12644     *)
12645       enable_shared=no
12646       # Look at the argument we got.  We use all the common list separators.
12647       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12648       for pkg in $enableval; do
12649         IFS="$lt_save_ifs"
12650         if test "X$pkg" = "X$p"; then
12651           enable_shared=yes
12652         fi
12653       done
12654       IFS="$lt_save_ifs"
12655       ;;
12656     esac
12657 else
12658   enable_shared=yes
12659 fi
12660
12661
12662 # Check whether --enable-static was given.
12663 if test "${enable_static+set}" = set; then
12664   enableval=$enable_static; p=${PACKAGE-default}
12665     case $enableval in
12666     yes) enable_static=yes ;;
12667     no) enable_static=no ;;
12668     *)
12669      enable_static=no
12670       # Look at the argument we got.  We use all the common list separators.
12671       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672       for pkg in $enableval; do
12673         IFS="$lt_save_ifs"
12674         if test "X$pkg" = "X$p"; then
12675           enable_static=yes
12676         fi
12677       done
12678       IFS="$lt_save_ifs"
12679       ;;
12680     esac
12681 else
12682   enable_static=yes
12683 fi
12684
12685
12686 # Check whether --enable-fast-install was given.
12687 if test "${enable_fast_install+set}" = set; then
12688   enableval=$enable_fast_install; p=${PACKAGE-default}
12689     case $enableval in
12690     yes) enable_fast_install=yes ;;
12691     no) enable_fast_install=no ;;
12692     *)
12693       enable_fast_install=no
12694       # Look at the argument we got.  We use all the common list separators.
12695       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12696       for pkg in $enableval; do
12697         IFS="$lt_save_ifs"
12698         if test "X$pkg" = "X$p"; then
12699           enable_fast_install=yes
12700         fi
12701       done
12702       IFS="$lt_save_ifs"
12703       ;;
12704     esac
12705 else
12706   enable_fast_install=yes
12707 fi
12708
12709
12710 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12711 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12712 if test "${lt_cv_path_SED+set}" = set; then
12713   echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715   # Loop through the user's path and test for sed and gsed.
12716 # Then use that list of sed's as ones to test for truncation.
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12719 do
12720   IFS=$as_save_IFS
12721   test -z "$as_dir" && as_dir=.
12722   for lt_ac_prog in sed gsed; do
12723     for ac_exec_ext in '' $ac_executable_extensions; do
12724       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12725         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12726       fi
12727     done
12728   done
12729 done
12730 lt_ac_max=0
12731 lt_ac_count=0
12732 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12733 # along with /bin/sed that truncates output.
12734 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12735   test ! -f $lt_ac_sed && continue
12736   cat /dev/null > conftest.in
12737   lt_ac_count=0
12738   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12739   # Check for GNU sed and select it if it is found.
12740   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12741     lt_cv_path_SED=$lt_ac_sed
12742     break
12743   fi
12744   while true; do
12745     cat conftest.in conftest.in >conftest.tmp
12746     mv conftest.tmp conftest.in
12747     cp conftest.in conftest.nl
12748     echo >>conftest.nl
12749     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12750     cmp -s conftest.out conftest.nl || break
12751     # 10000 chars as input seems more than enough
12752     test $lt_ac_count -gt 10 && break
12753     lt_ac_count=`expr $lt_ac_count + 1`
12754     if test $lt_ac_count -gt $lt_ac_max; then
12755       lt_ac_max=$lt_ac_count
12756       lt_cv_path_SED=$lt_ac_sed
12757     fi
12758   done
12759 done
12760
12761 fi
12762
12763 SED=$lt_cv_path_SED
12764 { echo "$as_me:$LINENO: result: $SED" >&5
12765 echo "${ECHO_T}$SED" >&6; }
12766
12767
12768 # Check whether --with-gnu-ld was given.
12769 if test "${with_gnu_ld+set}" = set; then
12770   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12771 else
12772   with_gnu_ld=no
12773 fi
12774
12775 ac_prog=ld
12776 if test "$GCC" = yes; then
12777   # Check if gcc -print-prog-name=ld gives a path.
12778   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12779 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12780   case $host in
12781   *-*-mingw*)
12782     # gcc leaves a trailing carriage return which upsets mingw
12783     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12784   *)
12785     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12786   esac
12787   case $ac_prog in
12788     # Accept absolute paths.
12789     [\\/]* | ?:[\\/]*)
12790       re_direlt='/[^/][^/]*/\.\./'
12791       # Canonicalize the pathname of ld
12792       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12793       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12794         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12795       done
12796       test -z "$LD" && LD="$ac_prog"
12797       ;;
12798   "")
12799     # If it fails, then pretend we aren't using GCC.
12800     ac_prog=ld
12801     ;;
12802   *)
12803     # If it is relative, then search for the first ld in PATH.
12804     with_gnu_ld=unknown
12805     ;;
12806   esac
12807 elif test "$with_gnu_ld" = yes; then
12808   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12809 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12810 else
12811   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12812 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12813 fi
12814 if test "${lt_cv_path_LD+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817   if test -z "$LD"; then
12818   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12819   for ac_dir in $PATH; do
12820     IFS="$lt_save_ifs"
12821     test -z "$ac_dir" && ac_dir=.
12822     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12823       lt_cv_path_LD="$ac_dir/$ac_prog"
12824       # Check to see if the program is GNU ld.  I'd rather use --version,
12825       # but apparently some variants of GNU ld only accept -v.
12826       # Break only if it was the GNU/non-GNU ld that we prefer.
12827       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12828       *GNU* | *'with BFD'*)
12829         test "$with_gnu_ld" != no && break
12830         ;;
12831       *)
12832         test "$with_gnu_ld" != yes && break
12833         ;;
12834       esac
12835     fi
12836   done
12837   IFS="$lt_save_ifs"
12838 else
12839   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12840 fi
12841 fi
12842
12843 LD="$lt_cv_path_LD"
12844 if test -n "$LD"; then
12845   { echo "$as_me:$LINENO: result: $LD" >&5
12846 echo "${ECHO_T}$LD" >&6; }
12847 else
12848   { echo "$as_me:$LINENO: result: no" >&5
12849 echo "${ECHO_T}no" >&6; }
12850 fi
12851 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12852 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12853    { (exit 1); exit 1; }; }
12854 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12855 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12856 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12860 case `$LD -v 2>&1 </dev/null` in
12861 *GNU* | *'with BFD'*)
12862   lt_cv_prog_gnu_ld=yes
12863   ;;
12864 *)
12865   lt_cv_prog_gnu_ld=no
12866   ;;
12867 esac
12868 fi
12869 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12870 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12871 with_gnu_ld=$lt_cv_prog_gnu_ld
12872
12873
12874 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12875 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12876 if test "${lt_cv_ld_reload_flag+set}" = set; then
12877   echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879   lt_cv_ld_reload_flag='-r'
12880 fi
12881 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12882 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12883 reload_flag=$lt_cv_ld_reload_flag
12884 case $reload_flag in
12885 "" | " "*) ;;
12886 *) reload_flag=" $reload_flag" ;;
12887 esac
12888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12889 case $host_os in
12890   darwin*)
12891     if test "$GCC" = yes; then
12892       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12893     else
12894       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12895     fi
12896     ;;
12897 esac
12898
12899 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12900 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12901 if test "${lt_cv_deplibs_check_method+set}" = set; then
12902   echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904   lt_cv_file_magic_cmd='$MAGIC_CMD'
12905 lt_cv_file_magic_test_file=
12906 lt_cv_deplibs_check_method='unknown'
12907 # Need to set the preceding variable on all platforms that support
12908 # interlibrary dependencies.
12909 # 'none' -- dependencies not supported.
12910 # `unknown' -- same as none, but documents that we really don't know.
12911 # 'pass_all' -- all dependencies passed with no checks.
12912 # 'test_compile' -- check by making test program.
12913 # 'file_magic [[regex]]' -- check by looking for files in library path
12914 # which responds to the $file_magic_cmd with a given extended regex.
12915 # If you have `file' or equivalent on your system and you're not sure
12916 # whether `pass_all' will *always* work, you probably want this one.
12917
12918 case $host_os in
12919 aix4* | aix5*)
12920   lt_cv_deplibs_check_method=pass_all
12921   ;;
12922
12923 beos*)
12924   lt_cv_deplibs_check_method=pass_all
12925   ;;
12926
12927 bsdi[45]*)
12928   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12929   lt_cv_file_magic_cmd='/usr/bin/file -L'
12930   lt_cv_file_magic_test_file=/shlib/libc.so
12931   ;;
12932
12933 cygwin*)
12934   # func_win32_libid is a shell function defined in ltmain.sh
12935   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12936   lt_cv_file_magic_cmd='func_win32_libid'
12937   ;;
12938
12939 mingw* | pw32*)
12940   # Base MSYS/MinGW do not provide the 'file' command needed by
12941   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12942   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12943   lt_cv_file_magic_cmd='$OBJDUMP -f'
12944   ;;
12945
12946 darwin* | rhapsody*)
12947   lt_cv_deplibs_check_method=pass_all
12948   ;;
12949
12950 freebsd* | kfreebsd*-gnu | dragonfly*)
12951   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12952     case $host_cpu in
12953     i*86 )
12954       # Not sure whether the presence of OpenBSD here was a mistake.
12955       # Let's accept both of them until this is cleared up.
12956       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12957       lt_cv_file_magic_cmd=/usr/bin/file
12958       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12959       ;;
12960     esac
12961   else
12962     lt_cv_deplibs_check_method=pass_all
12963   fi
12964   ;;
12965
12966 gnu*)
12967   lt_cv_deplibs_check_method=pass_all
12968   ;;
12969
12970 hpux10.20* | hpux11*)
12971   lt_cv_file_magic_cmd=/usr/bin/file
12972   case $host_cpu in
12973   ia64*)
12974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12975     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12976     ;;
12977   hppa*64*)
12978     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]'
12979     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12980     ;;
12981   *)
12982     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12983     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12984     ;;
12985   esac
12986   ;;
12987
12988 interix3*)
12989   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12990   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12991   ;;
12992
12993 irix5* | irix6* | nonstopux*)
12994   case $LD in
12995   *-32|*"-32 ") libmagic=32-bit;;
12996   *-n32|*"-n32 ") libmagic=N32;;
12997   *-64|*"-64 ") libmagic=64-bit;;
12998   *) libmagic=never-match;;
12999   esac
13000   lt_cv_deplibs_check_method=pass_all
13001   ;;
13002
13003 # This must be Linux ELF.
13004 linux*)
13005   lt_cv_deplibs_check_method=pass_all
13006   ;;
13007
13008 netbsd*)
13009   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13011   else
13012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13013   fi
13014   ;;
13015
13016 newos6*)
13017   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13018   lt_cv_file_magic_cmd=/usr/bin/file
13019   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13020   ;;
13021
13022 nto-qnx*)
13023   lt_cv_deplibs_check_method=unknown
13024   ;;
13025
13026 openbsd*)
13027   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13029   else
13030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13031   fi
13032   ;;
13033
13034 osf3* | osf4* | osf5*)
13035   lt_cv_deplibs_check_method=pass_all
13036   ;;
13037
13038 solaris*)
13039   lt_cv_deplibs_check_method=pass_all
13040   ;;
13041
13042 sysv4 | sysv4.3*)
13043   case $host_vendor in
13044   motorola)
13045     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]'
13046     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13047     ;;
13048   ncr)
13049     lt_cv_deplibs_check_method=pass_all
13050     ;;
13051   sequent)
13052     lt_cv_file_magic_cmd='/bin/file'
13053     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13054     ;;
13055   sni)
13056     lt_cv_file_magic_cmd='/bin/file'
13057     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13058     lt_cv_file_magic_test_file=/lib/libc.so
13059     ;;
13060   siemens)
13061     lt_cv_deplibs_check_method=pass_all
13062     ;;
13063   pc)
13064     lt_cv_deplibs_check_method=pass_all
13065     ;;
13066   esac
13067   ;;
13068
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13070   lt_cv_deplibs_check_method=pass_all
13071   ;;
13072 esac
13073
13074 fi
13075 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13076 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13077 file_magic_cmd=$lt_cv_file_magic_cmd
13078 deplibs_check_method=$lt_cv_deplibs_check_method
13079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13080
13081
13082
13083 # If no C compiler was specified, use CC.
13084 LTCC=${LTCC-"$CC"}
13085
13086 # If no C compiler flags were specified, use CFLAGS.
13087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13088
13089 # Allow CC to be a program name with arguments.
13090 compiler=$CC
13091
13092 # Check whether --enable-libtool-lock was given.
13093 if test "${enable_libtool_lock+set}" = set; then
13094   enableval=$enable_libtool_lock;
13095 fi
13096
13097 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13098
13099 # Some flags need to be propagated to the compiler or linker for good
13100 # libtool support.
13101 case $host in
13102 ia64-*-hpux*)
13103   # Find out which ABI we are using.
13104   echo 'int i;' > conftest.$ac_ext
13105   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106   (eval $ac_compile) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; then
13110     case `/usr/bin/file conftest.$ac_objext` in
13111     *ELF-32*)
13112       HPUX_IA64_MODE="32"
13113       ;;
13114     *ELF-64*)
13115       HPUX_IA64_MODE="64"
13116       ;;
13117     esac
13118   fi
13119   rm -rf conftest*
13120   ;;
13121 *-*-irix6*)
13122   # Find out which ABI we are using.
13123   echo '#line 13123 "configure"' > conftest.$ac_ext
13124   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125   (eval $ac_compile) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; then
13129    if test "$lt_cv_prog_gnu_ld" = yes; then
13130     case `/usr/bin/file conftest.$ac_objext` in
13131     *32-bit*)
13132       LD="${LD-ld} -melf32bsmip"
13133       ;;
13134     *N32*)
13135       LD="${LD-ld} -melf32bmipn32"
13136       ;;
13137     *64-bit*)
13138       LD="${LD-ld} -melf64bmip"
13139       ;;
13140     esac
13141    else
13142     case `/usr/bin/file conftest.$ac_objext` in
13143     *32-bit*)
13144       LD="${LD-ld} -32"
13145       ;;
13146     *N32*)
13147       LD="${LD-ld} -n32"
13148       ;;
13149     *64-bit*)
13150       LD="${LD-ld} -64"
13151       ;;
13152     esac
13153    fi
13154   fi
13155   rm -rf conftest*
13156   ;;
13157
13158 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13159   # Find out which ABI we are using.
13160   echo 'int i;' > conftest.$ac_ext
13161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); }; then
13166     case `/usr/bin/file conftest.o` in
13167     *32-bit*)
13168       case $host in
13169         x86_64-*linux*)
13170           LD="${LD-ld} -m elf_i386"
13171           ;;
13172         ppc64-*linux*|powerpc64-*linux*)
13173           LD="${LD-ld} -m elf32ppclinux"
13174           ;;
13175         s390x-*linux*)
13176           LD="${LD-ld} -m elf_s390"
13177           ;;
13178         sparc64-*linux*)
13179           LD="${LD-ld} -m elf32_sparc"
13180           ;;
13181       esac
13182       ;;
13183     *64-bit*)
13184       case $host in
13185         x86_64-*linux*)
13186           LD="${LD-ld} -m elf_x86_64"
13187           ;;
13188         ppc*-*linux*|powerpc*-*linux*)
13189           LD="${LD-ld} -m elf64ppc"
13190           ;;
13191         s390*-*linux*)
13192           LD="${LD-ld} -m elf64_s390"
13193           ;;
13194         sparc*-*linux*)
13195           LD="${LD-ld} -m elf64_sparc"
13196           ;;
13197       esac
13198       ;;
13199     esac
13200   fi
13201   rm -rf conftest*
13202   ;;
13203
13204 *-*-sco3.2v5*)
13205   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13206   SAVE_CFLAGS="$CFLAGS"
13207   CFLAGS="$CFLAGS -belf"
13208   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13209 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13210 if test "${lt_cv_cc_needs_belf+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   ac_ext=c
13214 ac_cpp='$CPP $CPPFLAGS'
13215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13218
13219      cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225
13226 int
13227 main ()
13228 {
13229
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_link") 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249   { (case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_try") 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; } &&
13258          { ac_try='test -s conftest$ac_exeext'
13259   { (case "(($ac_try" in
13260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261   *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264   (eval "$ac_try") 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   lt_cv_cc_needs_belf=yes
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273         lt_cv_cc_needs_belf=no
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext \
13277       conftest$ac_exeext conftest.$ac_ext
13278      ac_ext=c
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13283
13284 fi
13285 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13286 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13287   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13288     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13289     CFLAGS="$SAVE_CFLAGS"
13290   fi
13291   ;;
13292 sparc*-*solaris*)
13293   # Find out which ABI we are using.
13294   echo 'int i;' > conftest.$ac_ext
13295   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296   (eval $ac_compile) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; then
13300     case `/usr/bin/file conftest.o` in
13301     *64-bit*)
13302       case $lt_cv_prog_gnu_ld in
13303       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13304       *)    LD="${LD-ld} -64" ;;
13305       esac
13306       ;;
13307     esac
13308   fi
13309   rm -rf conftest*
13310   ;;
13311
13312
13313 esac
13314
13315 need_locks="$enable_libtool_lock"
13316
13317
13318
13319
13320 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13321     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13322     (test "X$CXX" != "Xg++"))) ; then
13323   ac_ext=cpp
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13328 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13329 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13330 if test -z "$CXXCPP"; then
13331   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13332   echo $ECHO_N "(cached) $ECHO_C" >&6
13333 else
13334       # Double quotes because CXXCPP needs to be expanded
13335     for CXXCPP in "$CXX -E" "/lib/cpp"
13336     do
13337       ac_preproc_ok=false
13338 for ac_cxx_preproc_warn_flag in '' yes
13339 do
13340   # Use a header file that comes with gcc, so configuring glibc
13341   # with a fresh cross-compiler works.
13342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343   # <limits.h> exists even on freestanding compilers.
13344   # On the NeXT, cc -E runs the code through the compiler's parser,
13345   # not just through cpp. "Syntax error" is here to catch this case.
13346   cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352 #ifdef __STDC__
13353 # include <limits.h>
13354 #else
13355 # include <assert.h>
13356 #endif
13357                      Syntax error
13358 _ACEOF
13359 if { (ac_try="$ac_cpp conftest.$ac_ext"
13360 case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } >/dev/null; then
13372   if test -s conftest.err; then
13373     ac_cpp_err=$ac_cxx_preproc_warn_flag
13374     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13375   else
13376     ac_cpp_err=
13377   fi
13378 else
13379   ac_cpp_err=yes
13380 fi
13381 if test -z "$ac_cpp_err"; then
13382   :
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387   # Broken: fails on valid input.
13388 continue
13389 fi
13390
13391 rm -f conftest.err conftest.$ac_ext
13392
13393   # OK, works on sane cases.  Now check whether nonexistent headers
13394   # can be detected and how.
13395   cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h.  */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h.  */
13401 #include <ac_nonexistent.h>
13402 _ACEOF
13403 if { (ac_try="$ac_cpp conftest.$ac_ext"
13404 case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13410   ac_status=$?
13411   grep -v '^ *+' conftest.er1 >conftest.err
13412   rm -f conftest.er1
13413   cat conftest.err >&5
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } >/dev/null; then
13416   if test -s conftest.err; then
13417     ac_cpp_err=$ac_cxx_preproc_warn_flag
13418     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13419   else
13420     ac_cpp_err=
13421   fi
13422 else
13423   ac_cpp_err=yes
13424 fi
13425 if test -z "$ac_cpp_err"; then
13426   # Broken: success on invalid input.
13427 continue
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432   # Passes both tests.
13433 ac_preproc_ok=:
13434 break
13435 fi
13436
13437 rm -f conftest.err conftest.$ac_ext
13438
13439 done
13440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13441 rm -f conftest.err conftest.$ac_ext
13442 if $ac_preproc_ok; then
13443   break
13444 fi
13445
13446     done
13447     ac_cv_prog_CXXCPP=$CXXCPP
13448
13449 fi
13450   CXXCPP=$ac_cv_prog_CXXCPP
13451 else
13452   ac_cv_prog_CXXCPP=$CXXCPP
13453 fi
13454 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13455 echo "${ECHO_T}$CXXCPP" >&6; }
13456 ac_preproc_ok=false
13457 for ac_cxx_preproc_warn_flag in '' yes
13458 do
13459   # Use a header file that comes with gcc, so configuring glibc
13460   # with a fresh cross-compiler works.
13461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13462   # <limits.h> exists even on freestanding compilers.
13463   # On the NeXT, cc -E runs the code through the compiler's parser,
13464   # not just through cpp. "Syntax error" is here to catch this case.
13465   cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471 #ifdef __STDC__
13472 # include <limits.h>
13473 #else
13474 # include <assert.h>
13475 #endif
13476                      Syntax error
13477 _ACEOF
13478 if { (ac_try="$ac_cpp conftest.$ac_ext"
13479 case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13485   ac_status=$?
13486   grep -v '^ *+' conftest.er1 >conftest.err
13487   rm -f conftest.er1
13488   cat conftest.err >&5
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); } >/dev/null; then
13491   if test -s conftest.err; then
13492     ac_cpp_err=$ac_cxx_preproc_warn_flag
13493     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13494   else
13495     ac_cpp_err=
13496   fi
13497 else
13498   ac_cpp_err=yes
13499 fi
13500 if test -z "$ac_cpp_err"; then
13501   :
13502 else
13503   echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13505
13506   # Broken: fails on valid input.
13507 continue
13508 fi
13509
13510 rm -f conftest.err conftest.$ac_ext
13511
13512   # OK, works on sane cases.  Now check whether nonexistent headers
13513   # can be detected and how.
13514   cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520 #include <ac_nonexistent.h>
13521 _ACEOF
13522 if { (ac_try="$ac_cpp conftest.$ac_ext"
13523 case "(($ac_try" in
13524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525   *) ac_try_echo=$ac_try;;
13526 esac
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } >/dev/null; then
13535   if test -s conftest.err; then
13536     ac_cpp_err=$ac_cxx_preproc_warn_flag
13537     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13538   else
13539     ac_cpp_err=
13540   fi
13541 else
13542   ac_cpp_err=yes
13543 fi
13544 if test -z "$ac_cpp_err"; then
13545   # Broken: success on invalid input.
13546 continue
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551   # Passes both tests.
13552 ac_preproc_ok=:
13553 break
13554 fi
13555
13556 rm -f conftest.err conftest.$ac_ext
13557
13558 done
13559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13560 rm -f conftest.err conftest.$ac_ext
13561 if $ac_preproc_ok; then
13562   :
13563 else
13564   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13565 See \`config.log' for more details." >&5
13566 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13567 See \`config.log' for more details." >&2;}
13568    { (exit 1); exit 1; }; }
13569 fi
13570
13571 ac_ext=cpp
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13576
13577 fi
13578
13579
13580 ac_ext=f
13581 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13582 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13584 if test -n "$ac_tool_prefix"; then
13585   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
13586   do
13587     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13591 if test "${ac_cv_prog_F77+set}" = set; then
13592   echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594   if test -n "$F77"; then
13595   ac_cv_prog_F77="$F77" # Let the user override the test.
13596 else
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13599 do
13600   IFS=$as_save_IFS
13601   test -z "$as_dir" && as_dir=.
13602   for ac_exec_ext in '' $ac_executable_extensions; do
13603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13604     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13606     break 2
13607   fi
13608 done
13609 done
13610 IFS=$as_save_IFS
13611
13612 fi
13613 fi
13614 F77=$ac_cv_prog_F77
13615 if test -n "$F77"; then
13616   { echo "$as_me:$LINENO: result: $F77" >&5
13617 echo "${ECHO_T}$F77" >&6; }
13618 else
13619   { echo "$as_me:$LINENO: result: no" >&5
13620 echo "${ECHO_T}no" >&6; }
13621 fi
13622
13623
13624     test -n "$F77" && break
13625   done
13626 fi
13627 if test -z "$F77"; then
13628   ac_ct_F77=$F77
13629   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
13630 do
13631   # Extract the first word of "$ac_prog", so it can be a program name with args.
13632 set dummy $ac_prog; ac_word=$2
13633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13635 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   if test -n "$ac_ct_F77"; then
13639   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13640 else
13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13643 do
13644   IFS=$as_save_IFS
13645   test -z "$as_dir" && as_dir=.
13646   for ac_exec_ext in '' $ac_executable_extensions; do
13647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13648     ac_cv_prog_ac_ct_F77="$ac_prog"
13649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13650     break 2
13651   fi
13652 done
13653 done
13654 IFS=$as_save_IFS
13655
13656 fi
13657 fi
13658 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13659 if test -n "$ac_ct_F77"; then
13660   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13661 echo "${ECHO_T}$ac_ct_F77" >&6; }
13662 else
13663   { echo "$as_me:$LINENO: result: no" >&5
13664 echo "${ECHO_T}no" >&6; }
13665 fi
13666
13667
13668   test -n "$ac_ct_F77" && break
13669 done
13670
13671   if test "x$ac_ct_F77" = x; then
13672     F77=""
13673   else
13674     case $cross_compiling:$ac_tool_warned in
13675 yes:)
13676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13677 whose name does not start with the host triplet.  If you think this
13678 configuration is useful to you, please write to autoconf@gnu.org." >&5
13679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13680 whose name does not start with the host triplet.  If you think this
13681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13682 ac_tool_warned=yes ;;
13683 esac
13684     F77=$ac_ct_F77
13685   fi
13686 fi
13687
13688
13689 # Provide some information about the compiler.
13690 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13691 ac_compiler=`set X $ac_compile; echo $2`
13692 { (ac_try="$ac_compiler --version >&5"
13693 case "(($ac_try" in
13694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695   *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698   (eval "$ac_compiler --version >&5") 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }
13702 { (ac_try="$ac_compiler -v >&5"
13703 case "(($ac_try" in
13704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705   *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708   (eval "$ac_compiler -v >&5") 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }
13712 { (ac_try="$ac_compiler -V >&5"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718   (eval "$ac_compiler -V >&5") 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }
13722 rm -f a.out
13723
13724 # If we don't use `.F' as extension, the preprocessor is not run on the
13725 # input file.  (Note that this only needs to work for GNU compilers.)
13726 ac_save_ext=$ac_ext
13727 ac_ext=F
13728 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13729 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13730 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13731   echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733   cat >conftest.$ac_ext <<_ACEOF
13734       program main
13735 #ifndef __GNUC__
13736        choke me
13737 #endif
13738
13739       end
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_compile") 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13756   { (case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_try") 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_try") 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_compiler_gnu=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780         ac_compiler_gnu=no
13781 fi
13782
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13785
13786 fi
13787 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13788 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13789 ac_ext=$ac_save_ext
13790 ac_test_FFLAGS=${FFLAGS+set}
13791 ac_save_FFLAGS=$FFLAGS
13792 FFLAGS=
13793 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13794 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13795 if test "${ac_cv_prog_f77_g+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   FFLAGS=-g
13799 cat >conftest.$ac_ext <<_ACEOF
13800       program main
13801
13802       end
13803 _ACEOF
13804 rm -f conftest.$ac_objext
13805 if { (ac_try="$ac_compile"
13806 case "(($ac_try" in
13807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808   *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811   (eval "$ac_compile") 2>conftest.er1
13812   ac_status=$?
13813   grep -v '^ *+' conftest.er1 >conftest.err
13814   rm -f conftest.er1
13815   cat conftest.err >&5
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13819   { (case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824   (eval "$ac_try") 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; } &&
13828          { ac_try='test -s conftest.$ac_objext'
13829   { (case "(($ac_try" in
13830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831   *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834   (eval "$ac_try") 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   ac_cv_prog_f77_g=yes
13839 else
13840   echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843         ac_cv_prog_f77_g=no
13844 fi
13845
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847
13848 fi
13849 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13850 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13851 if test "$ac_test_FFLAGS" = set; then
13852   FFLAGS=$ac_save_FFLAGS
13853 elif test $ac_cv_prog_f77_g = yes; then
13854   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13855     FFLAGS="-g -O2"
13856   else
13857     FFLAGS="-g"
13858   fi
13859 else
13860   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13861     FFLAGS="-O2"
13862   else
13863     FFLAGS=
13864   fi
13865 fi
13866
13867 G77=`test $ac_compiler_gnu = yes && echo yes`
13868 ac_ext=c
13869 ac_cpp='$CPP $CPPFLAGS'
13870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873
13874
13875
13876 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13877
13878 # find the maximum length of command line arguments
13879 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13880 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13881 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884     i=0
13885   teststring="ABCD"
13886
13887   case $build_os in
13888   msdosdjgpp*)
13889     # On DJGPP, this test can blow up pretty badly due to problems in libc
13890     # (any single argument exceeding 2000 bytes causes a buffer overrun
13891     # during glob expansion).  Even if it were fixed, the result of this
13892     # check would be larger than it should be.
13893     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13894     ;;
13895
13896   gnu*)
13897     # Under GNU Hurd, this test is not required because there is
13898     # no limit to the length of command line arguments.
13899     # Libtool will interpret -1 as no limit whatsoever
13900     lt_cv_sys_max_cmd_len=-1;
13901     ;;
13902
13903   cygwin* | mingw*)
13904     # On Win9x/ME, this test blows up -- it succeeds, but takes
13905     # about 5 minutes as the teststring grows exponentially.
13906     # Worse, since 9x/ME are not pre-emptively multitasking,
13907     # you end up with a "frozen" computer, even though with patience
13908     # the test eventually succeeds (with a max line length of 256k).
13909     # Instead, let's just punt: use the minimum linelength reported by
13910     # all of the supported platforms: 8192 (on NT/2K/XP).
13911     lt_cv_sys_max_cmd_len=8192;
13912     ;;
13913
13914   amigaos*)
13915     # On AmigaOS with pdksh, this test takes hours, literally.
13916     # So we just punt and use a minimum line length of 8192.
13917     lt_cv_sys_max_cmd_len=8192;
13918     ;;
13919
13920   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13921     # This has been around since 386BSD, at least.  Likely further.
13922     if test -x /sbin/sysctl; then
13923       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13924     elif test -x /usr/sbin/sysctl; then
13925       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13926     else
13927       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13928     fi
13929     # And add a safety zone
13930     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13931     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13932     ;;
13933
13934   interix*)
13935     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13936     lt_cv_sys_max_cmd_len=196608
13937     ;;
13938
13939   osf*)
13940     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13941     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13942     # nice to cause kernel panics so lets avoid the loop below.
13943     # First set a reasonable default.
13944     lt_cv_sys_max_cmd_len=16384
13945     #
13946     if test -x /sbin/sysconfig; then
13947       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13948         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13949       esac
13950     fi
13951     ;;
13952   sco3.2v5*)
13953     lt_cv_sys_max_cmd_len=102400
13954     ;;
13955   sysv5* | sco5v6* | sysv4.2uw2*)
13956     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13957     if test -n "$kargmax"; then
13958       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13959     else
13960       lt_cv_sys_max_cmd_len=32768
13961     fi
13962     ;;
13963   *)
13964     # If test is not a shell built-in, we'll probably end up computing a
13965     # maximum length that is only half of the actual maximum length, but
13966     # we can't tell.
13967     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13968     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13969                = "XX$teststring") >/dev/null 2>&1 &&
13970             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13971             lt_cv_sys_max_cmd_len=$new_result &&
13972             test $i != 17 # 1/2 MB should be enough
13973     do
13974       i=`expr $i + 1`
13975       teststring=$teststring$teststring
13976     done
13977     teststring=
13978     # Add a significant safety factor because C++ compilers can tack on massive
13979     # amounts of additional arguments before passing them to the linker.
13980     # It appears as though 1/2 is a usable value.
13981     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13982     ;;
13983   esac
13984
13985 fi
13986
13987 if test -n $lt_cv_sys_max_cmd_len ; then
13988   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13989 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13990 else
13991   { echo "$as_me:$LINENO: result: none" >&5
13992 echo "${ECHO_T}none" >&6; }
13993 fi
13994
13995
13996
13997
13998 # Check for command to grab the raw symbol name followed by C symbol from nm.
13999 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14000 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14001 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004
14005 # These are sane defaults that work on at least a few old systems.
14006 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14007
14008 # Character class describing NM global symbol codes.
14009 symcode='[BCDEGRST]'
14010
14011 # Regexp to match symbols that can be accessed directly from C.
14012 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14013
14014 # Transform an extracted symbol line into a proper C declaration
14015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14016
14017 # Transform an extracted symbol line into symbol name and symbol address
14018 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'"
14019
14020 # Define system-specific variables.
14021 case $host_os in
14022 aix*)
14023   symcode='[BCDT]'
14024   ;;
14025 cygwin* | mingw* | pw32*)
14026   symcode='[ABCDGISTW]'
14027   ;;
14028 hpux*) # Its linker distinguishes data from code symbols
14029   if test "$host_cpu" = ia64; then
14030     symcode='[ABCDEGRST]'
14031   fi
14032   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14033   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'"
14034   ;;
14035 linux*)
14036   if test "$host_cpu" = ia64; then
14037     symcode='[ABCDGIRSTW]'
14038     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14039     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'"
14040   fi
14041   ;;
14042 irix* | nonstopux*)
14043   symcode='[BCDEGRST]'
14044   ;;
14045 osf*)
14046   symcode='[BCDEGQRST]'
14047   ;;
14048 solaris*)
14049   symcode='[BDRT]'
14050   ;;
14051 sco3.2v5*)
14052   symcode='[DT]'
14053   ;;
14054 sysv4.2uw2*)
14055   symcode='[DT]'
14056   ;;
14057 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14058   symcode='[ABDT]'
14059   ;;
14060 sysv4)
14061   symcode='[DFNSTU]'
14062   ;;
14063 esac
14064
14065 # Handle CRLF in mingw tool chain
14066 opt_cr=
14067 case $build_os in
14068 mingw*)
14069   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14070   ;;
14071 esac
14072
14073 # If we're using GNU nm, then use its standard symbol codes.
14074 case `$NM -V 2>&1` in
14075 *GNU* | *'with BFD'*)
14076   symcode='[ABCDGIRSTW]' ;;
14077 esac
14078
14079 # Try without a prefix undercore, then with it.
14080 for ac_symprfx in "" "_"; do
14081
14082   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14083   symxfrm="\\1 $ac_symprfx\\2 \\2"
14084
14085   # Write the raw and C identifiers.
14086   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14087
14088   # Check to see that the pipe works correctly.
14089   pipe_works=no
14090
14091   rm -f conftest*
14092   cat > conftest.$ac_ext <<EOF
14093 #ifdef __cplusplus
14094 extern "C" {
14095 #endif
14096 char nm_test_var;
14097 void nm_test_func(){}
14098 #ifdef __cplusplus
14099 }
14100 #endif
14101 int main(){nm_test_var='a';nm_test_func();return(0);}
14102 EOF
14103
14104   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105   (eval $ac_compile) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; then
14109     # Now try to grab the symbols.
14110     nlist=conftest.nm
14111     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14112   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } && test -s "$nlist"; then
14116       # Try sorting and uniquifying the output.
14117       if sort "$nlist" | uniq > "$nlist"T; then
14118         mv -f "$nlist"T "$nlist"
14119       else
14120         rm -f "$nlist"T
14121       fi
14122
14123       # Make sure that we snagged all the symbols we need.
14124       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14125         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14126           cat <<EOF > conftest.$ac_ext
14127 #ifdef __cplusplus
14128 extern "C" {
14129 #endif
14130
14131 EOF
14132           # Now generate the symbol file.
14133           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14134
14135           cat <<EOF >> conftest.$ac_ext
14136 #if defined (__STDC__) && __STDC__
14137 # define lt_ptr_t void *
14138 #else
14139 # define lt_ptr_t char *
14140 # define const
14141 #endif
14142
14143 /* The mapping between symbol names and symbols. */
14144 const struct {
14145   const char *name;
14146   lt_ptr_t address;
14147 }
14148 lt_preloaded_symbols[] =
14149 {
14150 EOF
14151           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14152           cat <<\EOF >> conftest.$ac_ext
14153   {0, (lt_ptr_t) 0}
14154 };
14155
14156 #ifdef __cplusplus
14157 }
14158 #endif
14159 EOF
14160           # Now try linking the two files.
14161           mv conftest.$ac_objext conftstm.$ac_objext
14162           lt_save_LIBS="$LIBS"
14163           lt_save_CFLAGS="$CFLAGS"
14164           LIBS="conftstm.$ac_objext"
14165           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14166           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167   (eval $ac_link) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14171             pipe_works=yes
14172           fi
14173           LIBS="$lt_save_LIBS"
14174           CFLAGS="$lt_save_CFLAGS"
14175         else
14176           echo "cannot find nm_test_func in $nlist" >&5
14177         fi
14178       else
14179         echo "cannot find nm_test_var in $nlist" >&5
14180       fi
14181     else
14182       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14183     fi
14184   else
14185     echo "$progname: failed program was:" >&5
14186     cat conftest.$ac_ext >&5
14187   fi
14188   rm -f conftest* conftst*
14189
14190   # Do not use the global_symbol_pipe unless it works.
14191   if test "$pipe_works" = yes; then
14192     break
14193   else
14194     lt_cv_sys_global_symbol_pipe=
14195   fi
14196 done
14197
14198 fi
14199
14200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14201   lt_cv_sys_global_symbol_to_cdecl=
14202 fi
14203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14204   { echo "$as_me:$LINENO: result: failed" >&5
14205 echo "${ECHO_T}failed" >&6; }
14206 else
14207   { echo "$as_me:$LINENO: result: ok" >&5
14208 echo "${ECHO_T}ok" >&6; }
14209 fi
14210
14211 { echo "$as_me:$LINENO: checking for objdir" >&5
14212 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14213 if test "${lt_cv_objdir+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216   rm -f .libs 2>/dev/null
14217 mkdir .libs 2>/dev/null
14218 if test -d .libs; then
14219   lt_cv_objdir=.libs
14220 else
14221   # MS-DOS does not allow filenames that begin with a dot.
14222   lt_cv_objdir=_libs
14223 fi
14224 rmdir .libs 2>/dev/null
14225 fi
14226 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14227 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14228 objdir=$lt_cv_objdir
14229
14230
14231
14232
14233
14234 case $host_os in
14235 aix3*)
14236   # AIX sometimes has problems with the GCC collect2 program.  For some
14237   # reason, if we set the COLLECT_NAMES environment variable, the problems
14238   # vanish in a puff of smoke.
14239   if test "X${COLLECT_NAMES+set}" != Xset; then
14240     COLLECT_NAMES=
14241     export COLLECT_NAMES
14242   fi
14243   ;;
14244 esac
14245
14246 # Sed substitution that helps us do robust quoting.  It backslashifies
14247 # metacharacters that are still active within double-quoted strings.
14248 Xsed='sed -e 1s/^X//'
14249 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14250
14251 # Same as above, but do not quote variable references.
14252 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14253
14254 # Sed substitution to delay expansion of an escaped shell variable in a
14255 # double_quote_subst'ed string.
14256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14257
14258 # Sed substitution to avoid accidental globbing in evaled expressions
14259 no_glob_subst='s/\*/\\\*/g'
14260
14261 # Constants:
14262 rm="rm -f"
14263
14264 # Global variables:
14265 default_ofile=mklib
14266 can_build_shared=yes
14267
14268 # All known linkers require a `.a' archive for static linking (except MSVC,
14269 # which needs '.lib').
14270 libext=a
14271 ltmain="$ac_aux_dir/ltmain.sh"
14272 ofile="$default_ofile"
14273 with_gnu_ld="$lt_cv_prog_gnu_ld"
14274
14275 if test -n "$ac_tool_prefix"; then
14276   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14277 set dummy ${ac_tool_prefix}ar; ac_word=$2
14278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14280 if test "${ac_cv_prog_AR+set}" = set; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   if test -n "$AR"; then
14284   ac_cv_prog_AR="$AR" # Let the user override the test.
14285 else
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14288 do
14289   IFS=$as_save_IFS
14290   test -z "$as_dir" && as_dir=.
14291   for ac_exec_ext in '' $ac_executable_extensions; do
14292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14293     ac_cv_prog_AR="${ac_tool_prefix}ar"
14294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14295     break 2
14296   fi
14297 done
14298 done
14299 IFS=$as_save_IFS
14300
14301 fi
14302 fi
14303 AR=$ac_cv_prog_AR
14304 if test -n "$AR"; then
14305   { echo "$as_me:$LINENO: result: $AR" >&5
14306 echo "${ECHO_T}$AR" >&6; }
14307 else
14308   { echo "$as_me:$LINENO: result: no" >&5
14309 echo "${ECHO_T}no" >&6; }
14310 fi
14311
14312
14313 fi
14314 if test -z "$ac_cv_prog_AR"; then
14315   ac_ct_AR=$AR
14316   # Extract the first word of "ar", so it can be a program name with args.
14317 set dummy ar; ac_word=$2
14318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   if test -n "$ac_ct_AR"; then
14324   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14325 else
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329   IFS=$as_save_IFS
14330   test -z "$as_dir" && as_dir=.
14331   for ac_exec_ext in '' $ac_executable_extensions; do
14332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14333     ac_cv_prog_ac_ct_AR="ar"
14334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14335     break 2
14336   fi
14337 done
14338 done
14339 IFS=$as_save_IFS
14340
14341 fi
14342 fi
14343 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14344 if test -n "$ac_ct_AR"; then
14345   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14346 echo "${ECHO_T}$ac_ct_AR" >&6; }
14347 else
14348   { echo "$as_me:$LINENO: result: no" >&5
14349 echo "${ECHO_T}no" >&6; }
14350 fi
14351
14352   if test "x$ac_ct_AR" = x; then
14353     AR="false"
14354   else
14355     case $cross_compiling:$ac_tool_warned in
14356 yes:)
14357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14358 whose name does not start with the host triplet.  If you think this
14359 configuration is useful to you, please write to autoconf@gnu.org." >&5
14360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14361 whose name does not start with the host triplet.  If you think this
14362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14363 ac_tool_warned=yes ;;
14364 esac
14365     AR=$ac_ct_AR
14366   fi
14367 else
14368   AR="$ac_cv_prog_AR"
14369 fi
14370
14371 if test -n "$ac_tool_prefix"; then
14372   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14376 if test "${ac_cv_prog_RANLIB+set}" = set; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   if test -n "$RANLIB"; then
14380   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14384 do
14385   IFS=$as_save_IFS
14386   test -z "$as_dir" && as_dir=.
14387   for ac_exec_ext in '' $ac_executable_extensions; do
14388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14389     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14391     break 2
14392   fi
14393 done
14394 done
14395 IFS=$as_save_IFS
14396
14397 fi
14398 fi
14399 RANLIB=$ac_cv_prog_RANLIB
14400 if test -n "$RANLIB"; then
14401   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14402 echo "${ECHO_T}$RANLIB" >&6; }
14403 else
14404   { echo "$as_me:$LINENO: result: no" >&5
14405 echo "${ECHO_T}no" >&6; }
14406 fi
14407
14408
14409 fi
14410 if test -z "$ac_cv_prog_RANLIB"; then
14411   ac_ct_RANLIB=$RANLIB
14412   # Extract the first word of "ranlib", so it can be a program name with args.
14413 set dummy ranlib; ac_word=$2
14414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   if test -n "$ac_ct_RANLIB"; then
14420   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14421 else
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14424 do
14425   IFS=$as_save_IFS
14426   test -z "$as_dir" && as_dir=.
14427   for ac_exec_ext in '' $ac_executable_extensions; do
14428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14429     ac_cv_prog_ac_ct_RANLIB="ranlib"
14430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14431     break 2
14432   fi
14433 done
14434 done
14435 IFS=$as_save_IFS
14436
14437 fi
14438 fi
14439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14440 if test -n "$ac_ct_RANLIB"; then
14441   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14443 else
14444   { echo "$as_me:$LINENO: result: no" >&5
14445 echo "${ECHO_T}no" >&6; }
14446 fi
14447
14448   if test "x$ac_ct_RANLIB" = x; then
14449     RANLIB=":"
14450   else
14451     case $cross_compiling:$ac_tool_warned in
14452 yes:)
14453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14454 whose name does not start with the host triplet.  If you think this
14455 configuration is useful to you, please write to autoconf@gnu.org." >&5
14456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14457 whose name does not start with the host triplet.  If you think this
14458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14459 ac_tool_warned=yes ;;
14460 esac
14461     RANLIB=$ac_ct_RANLIB
14462   fi
14463 else
14464   RANLIB="$ac_cv_prog_RANLIB"
14465 fi
14466
14467 if test -n "$ac_tool_prefix"; then
14468   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14469 set dummy ${ac_tool_prefix}strip; ac_word=$2
14470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14472 if test "${ac_cv_prog_STRIP+set}" = set; then
14473   echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475   if test -n "$STRIP"; then
14476   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14477 else
14478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479 for as_dir in $PATH
14480 do
14481   IFS=$as_save_IFS
14482   test -z "$as_dir" && as_dir=.
14483   for ac_exec_ext in '' $ac_executable_extensions; do
14484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14485     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14487     break 2
14488   fi
14489 done
14490 done
14491 IFS=$as_save_IFS
14492
14493 fi
14494 fi
14495 STRIP=$ac_cv_prog_STRIP
14496 if test -n "$STRIP"; then
14497   { echo "$as_me:$LINENO: result: $STRIP" >&5
14498 echo "${ECHO_T}$STRIP" >&6; }
14499 else
14500   { echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6; }
14502 fi
14503
14504
14505 fi
14506 if test -z "$ac_cv_prog_STRIP"; then
14507   ac_ct_STRIP=$STRIP
14508   # Extract the first word of "strip", so it can be a program name with args.
14509 set dummy strip; ac_word=$2
14510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14512 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   if test -n "$ac_ct_STRIP"; then
14516   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14517 else
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14520 do
14521   IFS=$as_save_IFS
14522   test -z "$as_dir" && as_dir=.
14523   for ac_exec_ext in '' $ac_executable_extensions; do
14524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14525     ac_cv_prog_ac_ct_STRIP="strip"
14526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14527     break 2
14528   fi
14529 done
14530 done
14531 IFS=$as_save_IFS
14532
14533 fi
14534 fi
14535 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14536 if test -n "$ac_ct_STRIP"; then
14537   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14538 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14539 else
14540   { echo "$as_me:$LINENO: result: no" >&5
14541 echo "${ECHO_T}no" >&6; }
14542 fi
14543
14544   if test "x$ac_ct_STRIP" = x; then
14545     STRIP=":"
14546   else
14547     case $cross_compiling:$ac_tool_warned in
14548 yes:)
14549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14550 whose name does not start with the host triplet.  If you think this
14551 configuration is useful to you, please write to autoconf@gnu.org." >&5
14552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14553 whose name does not start with the host triplet.  If you think this
14554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14555 ac_tool_warned=yes ;;
14556 esac
14557     STRIP=$ac_ct_STRIP
14558   fi
14559 else
14560   STRIP="$ac_cv_prog_STRIP"
14561 fi
14562
14563
14564 old_CC="$CC"
14565 old_CFLAGS="$CFLAGS"
14566
14567 # Set sane defaults for various variables
14568 test -z "$AR" && AR=ar
14569 test -z "$AR_FLAGS" && AR_FLAGS=cru
14570 test -z "$AS" && AS=as
14571 test -z "$CC" && CC=cc
14572 test -z "$LTCC" && LTCC=$CC
14573 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14574 test -z "$DLLTOOL" && DLLTOOL=dlltool
14575 test -z "$LD" && LD=ld
14576 test -z "$LN_S" && LN_S="ln -s"
14577 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14578 test -z "$NM" && NM=nm
14579 test -z "$SED" && SED=sed
14580 test -z "$OBJDUMP" && OBJDUMP=objdump
14581 test -z "$RANLIB" && RANLIB=:
14582 test -z "$STRIP" && STRIP=:
14583 test -z "$ac_objext" && ac_objext=o
14584
14585 # Determine commands to create old-style static archives.
14586 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14587 old_postinstall_cmds='chmod 644 $oldlib'
14588 old_postuninstall_cmds=
14589
14590 if test -n "$RANLIB"; then
14591   case $host_os in
14592   openbsd*)
14593     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14594     ;;
14595   *)
14596     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14597     ;;
14598   esac
14599   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14600 fi
14601
14602 for cc_temp in $compiler""; do
14603   case $cc_temp in
14604     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14605     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14606     \-*) ;;
14607     *) break;;
14608   esac
14609 done
14610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14611
14612
14613 # Only perform the check for file, if the check method requires it
14614 case $deplibs_check_method in
14615 file_magic*)
14616   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14617     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14618 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   case $MAGIC_CMD in
14623 [\\/*] |  ?:[\\/]*)
14624   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14625   ;;
14626 *)
14627   lt_save_MAGIC_CMD="$MAGIC_CMD"
14628   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14629   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14630   for ac_dir in $ac_dummy; do
14631     IFS="$lt_save_ifs"
14632     test -z "$ac_dir" && ac_dir=.
14633     if test -f $ac_dir/${ac_tool_prefix}file; then
14634       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14635       if test -n "$file_magic_test_file"; then
14636         case $deplibs_check_method in
14637         "file_magic "*)
14638           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14639           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14640           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14641             $EGREP "$file_magic_regex" > /dev/null; then
14642             :
14643           else
14644             cat <<EOF 1>&2
14645
14646 *** Warning: the command libtool uses to detect shared libraries,
14647 *** $file_magic_cmd, produces output that libtool cannot recognize.
14648 *** The result is that libtool may fail to recognize shared libraries
14649 *** as such.  This will affect the creation of libtool libraries that
14650 *** depend on shared libraries, but programs linked with such libtool
14651 *** libraries will work regardless of this problem.  Nevertheless, you
14652 *** may want to report the problem to your system manager and/or to
14653 *** bug-libtool@gnu.org
14654
14655 EOF
14656           fi ;;
14657         esac
14658       fi
14659       break
14660     fi
14661   done
14662   IFS="$lt_save_ifs"
14663   MAGIC_CMD="$lt_save_MAGIC_CMD"
14664   ;;
14665 esac
14666 fi
14667
14668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14669 if test -n "$MAGIC_CMD"; then
14670   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14671 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14672 else
14673   { echo "$as_me:$LINENO: result: no" >&5
14674 echo "${ECHO_T}no" >&6; }
14675 fi
14676
14677 if test -z "$lt_cv_path_MAGIC_CMD"; then
14678   if test -n "$ac_tool_prefix"; then
14679     { echo "$as_me:$LINENO: checking for file" >&5
14680 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14682   echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684   case $MAGIC_CMD in
14685 [\\/*] |  ?:[\\/]*)
14686   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14687   ;;
14688 *)
14689   lt_save_MAGIC_CMD="$MAGIC_CMD"
14690   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14691   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14692   for ac_dir in $ac_dummy; do
14693     IFS="$lt_save_ifs"
14694     test -z "$ac_dir" && ac_dir=.
14695     if test -f $ac_dir/file; then
14696       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14697       if test -n "$file_magic_test_file"; then
14698         case $deplibs_check_method in
14699         "file_magic "*)
14700           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14701           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14703             $EGREP "$file_magic_regex" > /dev/null; then
14704             :
14705           else
14706             cat <<EOF 1>&2
14707
14708 *** Warning: the command libtool uses to detect shared libraries,
14709 *** $file_magic_cmd, produces output that libtool cannot recognize.
14710 *** The result is that libtool may fail to recognize shared libraries
14711 *** as such.  This will affect the creation of libtool libraries that
14712 *** depend on shared libraries, but programs linked with such libtool
14713 *** libraries will work regardless of this problem.  Nevertheless, you
14714 *** may want to report the problem to your system manager and/or to
14715 *** bug-libtool@gnu.org
14716
14717 EOF
14718           fi ;;
14719         esac
14720       fi
14721       break
14722     fi
14723   done
14724   IFS="$lt_save_ifs"
14725   MAGIC_CMD="$lt_save_MAGIC_CMD"
14726   ;;
14727 esac
14728 fi
14729
14730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14731 if test -n "$MAGIC_CMD"; then
14732   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14733 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14734 else
14735   { echo "$as_me:$LINENO: result: no" >&5
14736 echo "${ECHO_T}no" >&6; }
14737 fi
14738
14739   else
14740     MAGIC_CMD=:
14741   fi
14742 fi
14743
14744   fi
14745   ;;
14746 esac
14747
14748 enable_dlopen=yes
14749 enable_win32_dll=no
14750
14751 # Check whether --enable-libtool-lock was given.
14752 if test "${enable_libtool_lock+set}" = set; then
14753   enableval=$enable_libtool_lock;
14754 fi
14755
14756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14757
14758
14759 # Check whether --with-pic was given.
14760 if test "${with_pic+set}" = set; then
14761   withval=$with_pic; pic_mode="$withval"
14762 else
14763   pic_mode=default
14764 fi
14765
14766 test -z "$pic_mode" && pic_mode=default
14767
14768 # Use C for the default configuration in the libtool script
14769 tagname=
14770 lt_save_CC="$CC"
14771 ac_ext=c
14772 ac_cpp='$CPP $CPPFLAGS'
14773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776
14777
14778 # Source file extension for C test sources.
14779 ac_ext=c
14780
14781 # Object file extension for compiled C test sources.
14782 objext=o
14783 objext=$objext
14784
14785 # Code to be used in simple compile tests
14786 lt_simple_compile_test_code="int some_variable = 0;\n"
14787
14788 # Code to be used in simple link tests
14789 lt_simple_link_test_code='int main(){return(0);}\n'
14790
14791
14792 # If no C compiler was specified, use CC.
14793 LTCC=${LTCC-"$CC"}
14794
14795 # If no C compiler flags were specified, use CFLAGS.
14796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14797
14798 # Allow CC to be a program name with arguments.
14799 compiler=$CC
14800
14801
14802 # save warnings/boilerplate of simple test code
14803 ac_outfile=conftest.$ac_objext
14804 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14805 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14806 _lt_compiler_boilerplate=`cat conftest.err`
14807 $rm conftest*
14808
14809 ac_outfile=conftest.$ac_objext
14810 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14811 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14812 _lt_linker_boilerplate=`cat conftest.err`
14813 $rm conftest*
14814
14815
14816
14817 lt_prog_compiler_no_builtin_flag=
14818
14819 if test "$GCC" = yes; then
14820   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14821
14822
14823 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14824 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14825 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14826   echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828   lt_cv_prog_compiler_rtti_exceptions=no
14829   ac_outfile=conftest.$ac_objext
14830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14831    lt_compiler_flag="-fno-rtti -fno-exceptions"
14832    # Insert the option either (1) after the last *FLAGS variable, or
14833    # (2) before a word containing "conftest.", or (3) at the end.
14834    # Note that $ac_compile itself does not contain backslashes and begins
14835    # with a dollar sign (not a hyphen), so the echo should work correctly.
14836    # The option is referenced via a variable to avoid confusing sed.
14837    lt_compile=`echo "$ac_compile" | $SED \
14838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840    -e 's:$: $lt_compiler_flag:'`
14841    (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14842    (eval "$lt_compile" 2>conftest.err)
14843    ac_status=$?
14844    cat conftest.err >&5
14845    echo "$as_me:14845: \$? = $ac_status" >&5
14846    if (exit $ac_status) && test -s "$ac_outfile"; then
14847      # The compiler can only warn and ignore the option if not recognized
14848      # So say no if there are warnings other than the usual output.
14849      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14850      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14852        lt_cv_prog_compiler_rtti_exceptions=yes
14853      fi
14854    fi
14855    $rm conftest*
14856
14857 fi
14858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14859 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14860
14861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14862     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14863 else
14864     :
14865 fi
14866
14867 fi
14868
14869 lt_prog_compiler_wl=
14870 lt_prog_compiler_pic=
14871 lt_prog_compiler_static=
14872
14873 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14874 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14875
14876   if test "$GCC" = yes; then
14877     lt_prog_compiler_wl='-Wl,'
14878     lt_prog_compiler_static='-static'
14879
14880     case $host_os in
14881       aix*)
14882       # All AIX code is PIC.
14883       if test "$host_cpu" = ia64; then
14884         # AIX 5 now supports IA64 processor
14885         lt_prog_compiler_static='-Bstatic'
14886       fi
14887       ;;
14888
14889     amigaos*)
14890       # FIXME: we need at least 68020 code to build shared libraries, but
14891       # adding the `-m68020' flag to GCC prevents building anything better,
14892       # like `-m68040'.
14893       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14894       ;;
14895
14896     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14897       # PIC is the default for these OSes.
14898       ;;
14899
14900     mingw* | pw32* | os2*)
14901       # This hack is so that the source file can tell whether it is being
14902       # built for inclusion in a dll (and should export symbols for example).
14903       lt_prog_compiler_pic='-DDLL_EXPORT'
14904       ;;
14905
14906     darwin* | rhapsody*)
14907       # PIC is the default on this platform
14908       # Common symbols not allowed in MH_DYLIB files
14909       lt_prog_compiler_pic='-fno-common'
14910       ;;
14911
14912     interix3*)
14913       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14914       # Instead, we relocate shared libraries at runtime.
14915       ;;
14916
14917     msdosdjgpp*)
14918       # Just because we use GCC doesn't mean we suddenly get shared libraries
14919       # on systems that don't support them.
14920       lt_prog_compiler_can_build_shared=no
14921       enable_shared=no
14922       ;;
14923
14924     sysv4*MP*)
14925       if test -d /usr/nec; then
14926         lt_prog_compiler_pic=-Kconform_pic
14927       fi
14928       ;;
14929
14930     hpux*)
14931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932       # not for PA HP-UX.
14933       case $host_cpu in
14934       hppa*64*|ia64*)
14935         # +Z the default
14936         ;;
14937       *)
14938         lt_prog_compiler_pic='-fPIC'
14939         ;;
14940       esac
14941       ;;
14942
14943     *)
14944       lt_prog_compiler_pic='-fPIC'
14945       ;;
14946     esac
14947   else
14948     # PORTME Check for flag to pass linker flags through the system compiler.
14949     case $host_os in
14950     aix*)
14951       lt_prog_compiler_wl='-Wl,'
14952       if test "$host_cpu" = ia64; then
14953         # AIX 5 now supports IA64 processor
14954         lt_prog_compiler_static='-Bstatic'
14955       else
14956         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14957       fi
14958       ;;
14959       darwin*)
14960         # PIC is the default on this platform
14961         # Common symbols not allowed in MH_DYLIB files
14962        case $cc_basename in
14963          xlc*)
14964          lt_prog_compiler_pic='-qnocommon'
14965          lt_prog_compiler_wl='-Wl,'
14966          ;;
14967        esac
14968        ;;
14969
14970     mingw* | pw32* | os2*)
14971       # This hack is so that the source file can tell whether it is being
14972       # built for inclusion in a dll (and should export symbols for example).
14973       lt_prog_compiler_pic='-DDLL_EXPORT'
14974       ;;
14975
14976     hpux9* | hpux10* | hpux11*)
14977       lt_prog_compiler_wl='-Wl,'
14978       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14979       # not for PA HP-UX.
14980       case $host_cpu in
14981       hppa*64*|ia64*)
14982         # +Z the default
14983         ;;
14984       *)
14985         lt_prog_compiler_pic='+Z'
14986         ;;
14987       esac
14988       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14989       lt_prog_compiler_static='${wl}-a ${wl}archive'
14990       ;;
14991
14992     irix5* | irix6* | nonstopux*)
14993       lt_prog_compiler_wl='-Wl,'
14994       # PIC (with -KPIC) is the default.
14995       lt_prog_compiler_static='-non_shared'
14996       ;;
14997
14998     newsos6)
14999       lt_prog_compiler_pic='-KPIC'
15000       lt_prog_compiler_static='-Bstatic'
15001       ;;
15002
15003     linux*)
15004       case $cc_basename in
15005       icc* | ecc*)
15006         lt_prog_compiler_wl='-Wl,'
15007         lt_prog_compiler_pic='-KPIC'
15008         lt_prog_compiler_static='-static'
15009         ;;
15010       pgcc* | pgf77* | pgf90* | pgf95*)
15011         # Portland Group compilers (*not* the Pentium gcc compiler,
15012         # which looks to be a dead project)
15013         lt_prog_compiler_wl='-Wl,'
15014         lt_prog_compiler_pic='-fpic'
15015         lt_prog_compiler_static='-Bstatic'
15016         ;;
15017       ccc*)
15018         lt_prog_compiler_wl='-Wl,'
15019         # All Alpha code is PIC.
15020         lt_prog_compiler_static='-non_shared'
15021         ;;
15022       esac
15023       ;;
15024
15025     osf3* | osf4* | osf5*)
15026       lt_prog_compiler_wl='-Wl,'
15027       # All OSF/1 code is PIC.
15028       lt_prog_compiler_static='-non_shared'
15029       ;;
15030
15031     solaris*)
15032       lt_prog_compiler_pic='-KPIC'
15033       lt_prog_compiler_static='-Bstatic'
15034       case $cc_basename in
15035       f77* | f90* | f95*)
15036         lt_prog_compiler_wl='-Qoption ld ';;
15037       *)
15038         lt_prog_compiler_wl='-Wl,';;
15039       esac
15040       ;;
15041
15042     sunos4*)
15043       lt_prog_compiler_wl='-Qoption ld '
15044       lt_prog_compiler_pic='-PIC'
15045       lt_prog_compiler_static='-Bstatic'
15046       ;;
15047
15048     sysv4 | sysv4.2uw2* | sysv4.3*)
15049       lt_prog_compiler_wl='-Wl,'
15050       lt_prog_compiler_pic='-KPIC'
15051       lt_prog_compiler_static='-Bstatic'
15052       ;;
15053
15054     sysv4*MP*)
15055       if test -d /usr/nec ;then
15056         lt_prog_compiler_pic='-Kconform_pic'
15057         lt_prog_compiler_static='-Bstatic'
15058       fi
15059       ;;
15060
15061     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15062       lt_prog_compiler_wl='-Wl,'
15063       lt_prog_compiler_pic='-KPIC'
15064       lt_prog_compiler_static='-Bstatic'
15065       ;;
15066
15067     unicos*)
15068       lt_prog_compiler_wl='-Wl,'
15069       lt_prog_compiler_can_build_shared=no
15070       ;;
15071
15072     uts4*)
15073       lt_prog_compiler_pic='-pic'
15074       lt_prog_compiler_static='-Bstatic'
15075       ;;
15076
15077     *)
15078       lt_prog_compiler_can_build_shared=no
15079       ;;
15080     esac
15081   fi
15082
15083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15084 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15085
15086 #
15087 # Check to make sure the PIC flag actually works.
15088 #
15089 if test -n "$lt_prog_compiler_pic"; then
15090
15091 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15092 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15093 if test "${lt_prog_compiler_pic_works+set}" = set; then
15094   echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096   lt_prog_compiler_pic_works=no
15097   ac_outfile=conftest.$ac_objext
15098    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15099    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15100    # Insert the option either (1) after the last *FLAGS variable, or
15101    # (2) before a word containing "conftest.", or (3) at the end.
15102    # Note that $ac_compile itself does not contain backslashes and begins
15103    # with a dollar sign (not a hyphen), so the echo should work correctly.
15104    # The option is referenced via a variable to avoid confusing sed.
15105    lt_compile=`echo "$ac_compile" | $SED \
15106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15108    -e 's:$: $lt_compiler_flag:'`
15109    (eval echo "\"\$as_me:15109: $lt_compile\"" >&5)
15110    (eval "$lt_compile" 2>conftest.err)
15111    ac_status=$?
15112    cat conftest.err >&5
15113    echo "$as_me:15113: \$? = $ac_status" >&5
15114    if (exit $ac_status) && test -s "$ac_outfile"; then
15115      # The compiler can only warn and ignore the option if not recognized
15116      # So say no if there are warnings other than the usual output.
15117      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15118      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15119      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15120        lt_prog_compiler_pic_works=yes
15121      fi
15122    fi
15123    $rm conftest*
15124
15125 fi
15126 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15127 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15128
15129 if test x"$lt_prog_compiler_pic_works" = xyes; then
15130     case $lt_prog_compiler_pic in
15131      "" | " "*) ;;
15132      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15133      esac
15134 else
15135     lt_prog_compiler_pic=
15136      lt_prog_compiler_can_build_shared=no
15137 fi
15138
15139 fi
15140 case $host_os in
15141   # For platforms which do not support PIC, -DPIC is meaningless:
15142   *djgpp*)
15143     lt_prog_compiler_pic=
15144     ;;
15145   *)
15146     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15147     ;;
15148 esac
15149
15150 #
15151 # Check to make sure the static flag actually works.
15152 #
15153 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15154 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15155 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15156 if test "${lt_prog_compiler_static_works+set}" = set; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   lt_prog_compiler_static_works=no
15160    save_LDFLAGS="$LDFLAGS"
15161    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15162    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15163    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15164      # The linker can only warn and ignore the option if not recognized
15165      # So say no if there are warnings
15166      if test -s conftest.err; then
15167        # Append any errors to the config.log.
15168        cat conftest.err 1>&5
15169        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15170        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171        if diff conftest.exp conftest.er2 >/dev/null; then
15172          lt_prog_compiler_static_works=yes
15173        fi
15174      else
15175        lt_prog_compiler_static_works=yes
15176      fi
15177    fi
15178    $rm conftest*
15179    LDFLAGS="$save_LDFLAGS"
15180
15181 fi
15182 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15183 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15184
15185 if test x"$lt_prog_compiler_static_works" = xyes; then
15186     :
15187 else
15188     lt_prog_compiler_static=
15189 fi
15190
15191
15192 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15193 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15194 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   lt_cv_prog_compiler_c_o=no
15198    $rm -r conftest 2>/dev/null
15199    mkdir conftest
15200    cd conftest
15201    mkdir out
15202    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15203
15204    lt_compiler_flag="-o out/conftest2.$ac_objext"
15205    # Insert the option either (1) after the last *FLAGS variable, or
15206    # (2) before a word containing "conftest.", or (3) at the end.
15207    # Note that $ac_compile itself does not contain backslashes and begins
15208    # with a dollar sign (not a hyphen), so the echo should work correctly.
15209    lt_compile=`echo "$ac_compile" | $SED \
15210    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212    -e 's:$: $lt_compiler_flag:'`
15213    (eval echo "\"\$as_me:15213: $lt_compile\"" >&5)
15214    (eval "$lt_compile" 2>out/conftest.err)
15215    ac_status=$?
15216    cat out/conftest.err >&5
15217    echo "$as_me:15217: \$? = $ac_status" >&5
15218    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15219    then
15220      # The compiler can only warn and ignore the option if not recognized
15221      # So say no if there are warnings
15222      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15223      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15224      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15225        lt_cv_prog_compiler_c_o=yes
15226      fi
15227    fi
15228    chmod u+w . 2>&5
15229    $rm conftest*
15230    # SGI C++ compiler will create directory out/ii_files/ for
15231    # template instantiation
15232    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15233    $rm out/* && rmdir out
15234    cd ..
15235    rmdir conftest
15236    $rm conftest*
15237
15238 fi
15239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15241
15242
15243 hard_links="nottested"
15244 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15245   # do not overwrite the value of need_locks provided by the user
15246   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15247 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15248   hard_links=yes
15249   $rm conftest*
15250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15251   touch conftest.a
15252   ln conftest.a conftest.b 2>&5 || hard_links=no
15253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15254   { echo "$as_me:$LINENO: result: $hard_links" >&5
15255 echo "${ECHO_T}$hard_links" >&6; }
15256   if test "$hard_links" = no; then
15257     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15258 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15259     need_locks=warn
15260   fi
15261 else
15262   need_locks=no
15263 fi
15264
15265 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15267
15268   runpath_var=
15269   allow_undefined_flag=
15270   enable_shared_with_static_runtimes=no
15271   archive_cmds=
15272   archive_expsym_cmds=
15273   old_archive_From_new_cmds=
15274   old_archive_from_expsyms_cmds=
15275   export_dynamic_flag_spec=
15276   whole_archive_flag_spec=
15277   thread_safe_flag_spec=
15278   hardcode_libdir_flag_spec=
15279   hardcode_libdir_flag_spec_ld=
15280   hardcode_libdir_separator=
15281   hardcode_direct=no
15282   hardcode_minus_L=no
15283   hardcode_shlibpath_var=unsupported
15284   link_all_deplibs=unknown
15285   hardcode_automatic=no
15286   module_cmds=
15287   module_expsym_cmds=
15288   always_export_symbols=no
15289   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15290   # include_expsyms should be a list of space-separated symbols to be *always*
15291   # included in the symbol list
15292   include_expsyms=
15293   # exclude_expsyms can be an extended regexp of symbols to exclude
15294   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15295   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15296   # as well as any symbol that contains `d'.
15297   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15298   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15299   # platforms (ab)use it in PIC code, but their linkers get confused if
15300   # the symbol is explicitly referenced.  Since portable code cannot
15301   # rely on this symbol name, it's probably fine to never include it in
15302   # preloaded symbol tables.
15303   extract_expsyms_cmds=
15304   # Just being paranoid about ensuring that cc_basename is set.
15305   for cc_temp in $compiler""; do
15306   case $cc_temp in
15307     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15308     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15309     \-*) ;;
15310     *) break;;
15311   esac
15312 done
15313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15314
15315   case $host_os in
15316   cygwin* | mingw* | pw32*)
15317     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15318     # When not using gcc, we currently assume that we are using
15319     # Microsoft Visual C++.
15320     if test "$GCC" != yes; then
15321       with_gnu_ld=no
15322     fi
15323     ;;
15324   interix*)
15325     # we just hope/assume this is gcc and not c89 (= MSVC++)
15326     with_gnu_ld=yes
15327     ;;
15328   openbsd*)
15329     with_gnu_ld=no
15330     ;;
15331   esac
15332
15333   ld_shlibs=yes
15334   if test "$with_gnu_ld" = yes; then
15335     # If archive_cmds runs LD, not CC, wlarc should be empty
15336     wlarc='${wl}'
15337
15338     # Set some defaults for GNU ld with shared library support. These
15339     # are reset later if shared libraries are not supported. Putting them
15340     # here allows them to be overridden if necessary.
15341     runpath_var=LD_RUN_PATH
15342     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15343     export_dynamic_flag_spec='${wl}--export-dynamic'
15344     # ancient GNU ld didn't support --whole-archive et. al.
15345     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15346         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15347       else
15348         whole_archive_flag_spec=
15349     fi
15350     supports_anon_versioning=no
15351     case `$LD -v 2>/dev/null` in
15352       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15353       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15354       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15355       *\ 2.11.*) ;; # other 2.11 versions
15356       *) supports_anon_versioning=yes ;;
15357     esac
15358
15359     # See if GNU ld supports shared libraries.
15360     case $host_os in
15361     aix3* | aix4* | aix5*)
15362       # On AIX/PPC, the GNU linker is very broken
15363       if test "$host_cpu" != ia64; then
15364         ld_shlibs=no
15365         cat <<EOF 1>&2
15366
15367 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15368 *** to be unable to reliably create shared libraries on AIX.
15369 *** Therefore, libtool is disabling shared libraries support.  If you
15370 *** really care for shared libraries, you may want to modify your PATH
15371 *** so that a non-GNU linker is found, and then restart.
15372
15373 EOF
15374       fi
15375       ;;
15376
15377     amigaos*)
15378       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)'
15379       hardcode_libdir_flag_spec='-L$libdir'
15380       hardcode_minus_L=yes
15381
15382       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15383       # that the semantics of dynamic libraries on AmigaOS, at least up
15384       # to version 4, is to share data among multiple programs linked
15385       # with the same dynamic library.  Since this doesn't match the
15386       # behavior of shared libraries on other platforms, we can't use
15387       # them.
15388       ld_shlibs=no
15389       ;;
15390
15391     beos*)
15392       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15393         allow_undefined_flag=unsupported
15394         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15395         # support --undefined.  This deserves some investigation.  FIXME
15396         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397       else
15398         ld_shlibs=no
15399       fi
15400       ;;
15401
15402     cygwin* | mingw* | pw32*)
15403       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15404       # as there is no search path for DLLs.
15405       hardcode_libdir_flag_spec='-L$libdir'
15406       allow_undefined_flag=unsupported
15407       always_export_symbols=no
15408       enable_shared_with_static_runtimes=yes
15409       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15410
15411       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15412         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15413         # If the export-symbols file already is a .def file (1st line
15414         # is EXPORTS), use it as is; otherwise, prepend...
15415         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15416           cp $export_symbols $output_objdir/$soname.def;
15417         else
15418           echo EXPORTS > $output_objdir/$soname.def;
15419           cat $export_symbols >> $output_objdir/$soname.def;
15420         fi~
15421         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15422       else
15423         ld_shlibs=no
15424       fi
15425       ;;
15426
15427     interix3*)
15428       hardcode_direct=no
15429       hardcode_shlibpath_var=no
15430       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15431       export_dynamic_flag_spec='${wl}-E'
15432       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15433       # Instead, shared libraries are loaded at an image base (0x10000000 by
15434       # default) and relocated if they conflict, which is a slow very memory
15435       # consuming and fragmenting process.  To avoid this, we pick a random,
15436       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15437       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15438       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15439       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'
15440       ;;
15441
15442     linux*)
15443       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15444         tmp_addflag=
15445         case $cc_basename,$host_cpu in
15446         pgcc*)                          # Portland Group C compiler
15447           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'
15448           tmp_addflag=' $pic_flag'
15449           ;;
15450         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15451           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'
15452           tmp_addflag=' $pic_flag -Mnomain' ;;
15453         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15454           tmp_addflag=' -i_dynamic' ;;
15455         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15456           tmp_addflag=' -i_dynamic -nofor_main' ;;
15457         ifc* | ifort*)                  # Intel Fortran compiler
15458           tmp_addflag=' -nofor_main' ;;
15459         esac
15460         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461
15462         if test $supports_anon_versioning = yes; then
15463           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15464   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15465   $echo "local: *; };" >> $output_objdir/$libname.ver~
15466           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15467         fi
15468       else
15469         ld_shlibs=no
15470       fi
15471       ;;
15472
15473     netbsd*)
15474       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15475         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15476         wlarc=
15477       else
15478         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15480       fi
15481       ;;
15482
15483     solaris*)
15484       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15485         ld_shlibs=no
15486         cat <<EOF 1>&2
15487
15488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15489 *** create shared libraries on Solaris systems.  Therefore, libtool
15490 *** is disabling shared libraries support.  We urge you to upgrade GNU
15491 *** binutils to release 2.9.1 or newer.  Another option is to modify
15492 *** your PATH or compiler configuration so that the native linker is
15493 *** used, and then restart.
15494
15495 EOF
15496       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15497         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15498         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15499       else
15500         ld_shlibs=no
15501       fi
15502       ;;
15503
15504     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15505       case `$LD -v 2>&1` in
15506         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15507         ld_shlibs=no
15508         cat <<_LT_EOF 1>&2
15509
15510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15511 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15512 *** is disabling shared libraries support.  We urge you to upgrade GNU
15513 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15514 *** your PATH or compiler configuration so that the native linker is
15515 *** used, and then restart.
15516
15517 _LT_EOF
15518         ;;
15519         *)
15520           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15521             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15523             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15524           else
15525             ld_shlibs=no
15526           fi
15527         ;;
15528       esac
15529       ;;
15530
15531     sunos4*)
15532       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15533       wlarc=
15534       hardcode_direct=yes
15535       hardcode_shlibpath_var=no
15536       ;;
15537
15538     *)
15539       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542       else
15543         ld_shlibs=no
15544       fi
15545       ;;
15546     esac
15547
15548     if test "$ld_shlibs" = no; then
15549       runpath_var=
15550       hardcode_libdir_flag_spec=
15551       export_dynamic_flag_spec=
15552       whole_archive_flag_spec=
15553     fi
15554   else
15555     # PORTME fill in a description of your system's linker (not GNU ld)
15556     case $host_os in
15557     aix3*)
15558       allow_undefined_flag=unsupported
15559       always_export_symbols=yes
15560       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'
15561       # Note: this linker hardcodes the directories in LIBPATH if there
15562       # are no directories specified by -L.
15563       hardcode_minus_L=yes
15564       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15565         # Neither direct hardcoding nor static linking is supported with a
15566         # broken collect2.
15567         hardcode_direct=unsupported
15568       fi
15569       ;;
15570
15571     aix4* | aix5*)
15572       if test "$host_cpu" = ia64; then
15573         # On IA64, the linker does run time linking by default, so we don't
15574         # have to do anything special.
15575         aix_use_runtimelinking=no
15576         exp_sym_flag='-Bexport'
15577         no_entry_flag=""
15578       else
15579         # If we're using GNU nm, then we don't want the "-C" option.
15580         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15581         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15582           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'
15583         else
15584           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'
15585         fi
15586         aix_use_runtimelinking=no
15587
15588         # Test if we are trying to use run time linking or normal
15589         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15590         # need to do runtime linking.
15591         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15592           for ld_flag in $LDFLAGS; do
15593           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15594             aix_use_runtimelinking=yes
15595             break
15596           fi
15597           done
15598           ;;
15599         esac
15600
15601         exp_sym_flag='-bexport'
15602         no_entry_flag='-bnoentry'
15603       fi
15604
15605       # When large executables or shared objects are built, AIX ld can
15606       # have problems creating the table of contents.  If linking a library
15607       # or program results in "error TOC overflow" add -mminimal-toc to
15608       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15609       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15610
15611       archive_cmds=''
15612       hardcode_direct=yes
15613       hardcode_libdir_separator=':'
15614       link_all_deplibs=yes
15615
15616       if test "$GCC" = yes; then
15617         case $host_os in aix4.[012]|aix4.[012].*)
15618         # We only want to do this on AIX 4.2 and lower, the check
15619         # below for broken collect2 doesn't work under 4.3+
15620           collect2name=`${CC} -print-prog-name=collect2`
15621           if test -f "$collect2name" && \
15622            strings "$collect2name" | grep resolve_lib_name >/dev/null
15623           then
15624           # We have reworked collect2
15625           hardcode_direct=yes
15626           else
15627           # We have old collect2
15628           hardcode_direct=unsupported
15629           # It fails to find uninstalled libraries when the uninstalled
15630           # path is not listed in the libpath.  Setting hardcode_minus_L
15631           # to unsupported forces relinking
15632           hardcode_minus_L=yes
15633           hardcode_libdir_flag_spec='-L$libdir'
15634           hardcode_libdir_separator=
15635           fi
15636           ;;
15637         esac
15638         shared_flag='-shared'
15639         if test "$aix_use_runtimelinking" = yes; then
15640           shared_flag="$shared_flag "'${wl}-G'
15641         fi
15642       else
15643         # not using gcc
15644         if test "$host_cpu" = ia64; then
15645         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15646         # chokes on -Wl,-G. The following line is correct:
15647           shared_flag='-G'
15648         else
15649           if test "$aix_use_runtimelinking" = yes; then
15650             shared_flag='${wl}-G'
15651           else
15652             shared_flag='${wl}-bM:SRE'
15653           fi
15654         fi
15655       fi
15656
15657       # It seems that -bexpall does not export symbols beginning with
15658       # underscore (_), so it is better to generate a list of symbols to export.
15659       always_export_symbols=yes
15660       if test "$aix_use_runtimelinking" = yes; then
15661         # Warning - without using the other runtime loading flags (-brtl),
15662         # -berok will link without error, but may produce a broken library.
15663         allow_undefined_flag='-berok'
15664        # Determine the default libpath from the value encoded in an empty executable.
15665        cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 int
15673 main ()
15674 {
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_link") 2>conftest.er1
15688   ac_status=$?
15689   grep -v '^ *+' conftest.er1 >conftest.err
15690   rm -f conftest.er1
15691   cat conftest.err >&5
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } &&
15694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695   { (case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700   (eval "$ac_try") 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; } &&
15704          { ac_try='test -s conftest$ac_exeext'
15705   { (case "(($ac_try" in
15706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707   *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710   (eval "$ac_try") 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714
15715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15716 }'`
15717 # Check for a 64-bit object if we didn't find anything.
15718 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; }
15719 }'`; fi
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724
15725 fi
15726
15727 rm -f core conftest.err conftest.$ac_objext \
15728       conftest$ac_exeext conftest.$ac_ext
15729 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15730
15731        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15732         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"
15733        else
15734         if test "$host_cpu" = ia64; then
15735           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15736           allow_undefined_flag="-z nodefs"
15737           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"
15738         else
15739          # Determine the default libpath from the value encoded in an empty executable.
15740          cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746
15747 int
15748 main ()
15749 {
15750
15751   ;
15752   return 0;
15753 }
15754 _ACEOF
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (ac_try="$ac_link"
15757 case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_link") 2>conftest.er1
15763   ac_status=$?
15764   grep -v '^ *+' conftest.er1 >conftest.err
15765   rm -f conftest.er1
15766   cat conftest.err >&5
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } &&
15769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770   { (case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775   (eval "$ac_try") 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; } &&
15779          { ac_try='test -s conftest$ac_exeext'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789
15790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15791 }'`
15792 # Check for a 64-bit object if we didn't find anything.
15793 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; }
15794 }'`; fi
15795 else
15796   echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15798
15799
15800 fi
15801
15802 rm -f core conftest.err conftest.$ac_objext \
15803       conftest$ac_exeext conftest.$ac_ext
15804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15805
15806          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15807           # Warning - without using the other run time loading flags,
15808           # -berok will link without error, but may produce a broken library.
15809           no_undefined_flag=' ${wl}-bernotok'
15810           allow_undefined_flag=' ${wl}-berok'
15811           # Exported symbols can be pulled into shared objects from archives
15812           whole_archive_flag_spec='$convenience'
15813           archive_cmds_need_lc=yes
15814           # This is similar to how AIX traditionally builds its shared libraries.
15815           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'
15816         fi
15817       fi
15818       ;;
15819
15820     amigaos*)
15821       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)'
15822       hardcode_libdir_flag_spec='-L$libdir'
15823       hardcode_minus_L=yes
15824       # see comment about different semantics on the GNU ld section
15825       ld_shlibs=no
15826       ;;
15827
15828     bsdi[45]*)
15829       export_dynamic_flag_spec=-rdynamic
15830       ;;
15831
15832     cygwin* | mingw* | pw32*)
15833       # When not using gcc, we currently assume that we are using
15834       # Microsoft Visual C++.
15835       # hardcode_libdir_flag_spec is actually meaningless, as there is
15836       # no search path for DLLs.
15837       hardcode_libdir_flag_spec=' '
15838       allow_undefined_flag=unsupported
15839       # Tell ltmain to make .lib files, not .a files.
15840       libext=lib
15841       # Tell ltmain to make .dll files, not .so files.
15842       shrext_cmds=".dll"
15843       # FIXME: Setting linknames here is a bad hack.
15844       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15845       # The linker will automatically build a .lib file if we build a DLL.
15846       old_archive_From_new_cmds='true'
15847       # FIXME: Should let the user specify the lib program.
15848       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15849       fix_srcfile_path='`cygpath -w "$srcfile"`'
15850       enable_shared_with_static_runtimes=yes
15851       ;;
15852
15853     darwin* | rhapsody*)
15854       case $host_os in
15855         rhapsody* | darwin1.[012])
15856          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15857          ;;
15858        *) # Darwin 1.3 on
15859          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15860            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15861          else
15862            case ${MACOSX_DEPLOYMENT_TARGET} in
15863              10.[012])
15864                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15865                ;;
15866              10.*)
15867                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15868                ;;
15869            esac
15870          fi
15871          ;;
15872       esac
15873       archive_cmds_need_lc=no
15874       hardcode_direct=no
15875       hardcode_automatic=yes
15876       hardcode_shlibpath_var=unsupported
15877       whole_archive_flag_spec=''
15878       link_all_deplibs=yes
15879     if test "$GCC" = yes ; then
15880         output_verbose_link_cmd='echo'
15881         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15882       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15883       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15884       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}'
15885       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}'
15886     else
15887       case $cc_basename in
15888         xlc*)
15889          output_verbose_link_cmd='echo'
15890          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15891          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15892           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15893          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}'
15894           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}'
15895           ;;
15896        *)
15897          ld_shlibs=no
15898           ;;
15899       esac
15900     fi
15901       ;;
15902
15903     dgux*)
15904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15905       hardcode_libdir_flag_spec='-L$libdir'
15906       hardcode_shlibpath_var=no
15907       ;;
15908
15909     freebsd1*)
15910       ld_shlibs=no
15911       ;;
15912
15913     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15914     # support.  Future versions do this automatically, but an explicit c++rt0.o
15915     # does not break anything, and helps significantly (at the cost of a little
15916     # extra space).
15917     freebsd2.2*)
15918       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15919       hardcode_libdir_flag_spec='-R$libdir'
15920       hardcode_direct=yes
15921       hardcode_shlibpath_var=no
15922       ;;
15923
15924     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15925     freebsd2*)
15926       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15927       hardcode_direct=yes
15928       hardcode_minus_L=yes
15929       hardcode_shlibpath_var=no
15930       ;;
15931
15932     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15933     freebsd* | kfreebsd*-gnu | dragonfly*)
15934       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15935       hardcode_libdir_flag_spec='-R$libdir'
15936       hardcode_direct=yes
15937       hardcode_shlibpath_var=no
15938       ;;
15939
15940     hpux9*)
15941       if test "$GCC" = yes; then
15942         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'
15943       else
15944         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'
15945       fi
15946       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15947       hardcode_libdir_separator=:
15948       hardcode_direct=yes
15949
15950       # hardcode_minus_L: Not really in the search PATH,
15951       # but as the default location of the library.
15952       hardcode_minus_L=yes
15953       export_dynamic_flag_spec='${wl}-E'
15954       ;;
15955
15956     hpux10*)
15957       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15958         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15959       else
15960         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15961       fi
15962       if test "$with_gnu_ld" = no; then
15963         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15964         hardcode_libdir_separator=:
15965
15966         hardcode_direct=yes
15967         export_dynamic_flag_spec='${wl}-E'
15968
15969         # hardcode_minus_L: Not really in the search PATH,
15970         # but as the default location of the library.
15971         hardcode_minus_L=yes
15972       fi
15973       ;;
15974
15975     hpux11*)
15976       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15977         case $host_cpu in
15978         hppa*64*)
15979           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15980           ;;
15981         ia64*)
15982           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15983           ;;
15984         *)
15985           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15986           ;;
15987         esac
15988       else
15989         case $host_cpu in
15990         hppa*64*)
15991           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992           ;;
15993         ia64*)
15994           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15995           ;;
15996         *)
15997           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15998           ;;
15999         esac
16000       fi
16001       if test "$with_gnu_ld" = no; then
16002         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16003         hardcode_libdir_separator=:
16004
16005         case $host_cpu in
16006         hppa*64*|ia64*)
16007           hardcode_libdir_flag_spec_ld='+b $libdir'
16008           hardcode_direct=no
16009           hardcode_shlibpath_var=no
16010           ;;
16011         *)
16012           hardcode_direct=yes
16013           export_dynamic_flag_spec='${wl}-E'
16014
16015           # hardcode_minus_L: Not really in the search PATH,
16016           # but as the default location of the library.
16017           hardcode_minus_L=yes
16018           ;;
16019         esac
16020       fi
16021       ;;
16022
16023     irix5* | irix6* | nonstopux*)
16024       if test "$GCC" = yes; then
16025         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'
16026       else
16027         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'
16028         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16029       fi
16030       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16031       hardcode_libdir_separator=:
16032       link_all_deplibs=yes
16033       ;;
16034
16035     netbsd*)
16036       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16037         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16038       else
16039         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16040       fi
16041       hardcode_libdir_flag_spec='-R$libdir'
16042       hardcode_direct=yes
16043       hardcode_shlibpath_var=no
16044       ;;
16045
16046     newsos6)
16047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048       hardcode_direct=yes
16049       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16050       hardcode_libdir_separator=:
16051       hardcode_shlibpath_var=no
16052       ;;
16053
16054     openbsd*)
16055       hardcode_direct=yes
16056       hardcode_shlibpath_var=no
16057       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16058         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16059         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16060         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16061         export_dynamic_flag_spec='${wl}-E'
16062       else
16063        case $host_os in
16064          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16065            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16066            hardcode_libdir_flag_spec='-R$libdir'
16067            ;;
16068          *)
16069            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16071            ;;
16072        esac
16073       fi
16074       ;;
16075
16076     os2*)
16077       hardcode_libdir_flag_spec='-L$libdir'
16078       hardcode_minus_L=yes
16079       allow_undefined_flag=unsupported
16080       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'
16081       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16082       ;;
16083
16084     osf3*)
16085       if test "$GCC" = yes; then
16086         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16087         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'
16088       else
16089         allow_undefined_flag=' -expect_unresolved \*'
16090         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'
16091       fi
16092       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16093       hardcode_libdir_separator=:
16094       ;;
16095
16096     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16097       if test "$GCC" = yes; then
16098         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16099         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'
16100         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16101       else
16102         allow_undefined_flag=' -expect_unresolved \*'
16103         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'
16104         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16105         $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'
16106
16107         # Both c and cxx compiler support -rpath directly
16108         hardcode_libdir_flag_spec='-rpath $libdir'
16109       fi
16110       hardcode_libdir_separator=:
16111       ;;
16112
16113     solaris*)
16114       no_undefined_flag=' -z text'
16115       if test "$GCC" = yes; then
16116         wlarc='${wl}'
16117         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16119           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16120       else
16121         wlarc=''
16122         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16124         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16125       fi
16126       hardcode_libdir_flag_spec='-R$libdir'
16127       hardcode_shlibpath_var=no
16128       case $host_os in
16129       solaris2.[0-5] | solaris2.[0-5].*) ;;
16130       *)
16131         # The compiler driver will combine linker options so we
16132         # cannot just pass the convience library names through
16133         # without $wl, iff we do not link with $LD.
16134         # Luckily, gcc supports the same syntax we need for Sun Studio.
16135         # Supported since Solaris 2.6 (maybe 2.5.1?)
16136         case $wlarc in
16137         '')
16138           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16139         *)
16140           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' ;;
16141         esac ;;
16142       esac
16143       link_all_deplibs=yes
16144       ;;
16145
16146     sunos4*)
16147       if test "x$host_vendor" = xsequent; then
16148         # Use $CC to link under sequent, because it throws in some extra .o
16149         # files that make .init and .fini sections work.
16150         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16151       else
16152         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16153       fi
16154       hardcode_libdir_flag_spec='-L$libdir'
16155       hardcode_direct=yes
16156       hardcode_minus_L=yes
16157       hardcode_shlibpath_var=no
16158       ;;
16159
16160     sysv4)
16161       case $host_vendor in
16162         sni)
16163           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164           hardcode_direct=yes # is this really true???
16165         ;;
16166         siemens)
16167           ## LD is ld it makes a PLAMLIB
16168           ## CC just makes a GrossModule.
16169           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16170           reload_cmds='$CC -r -o $output$reload_objs'
16171           hardcode_direct=no
16172         ;;
16173         motorola)
16174           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16175           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16176         ;;
16177       esac
16178       runpath_var='LD_RUN_PATH'
16179       hardcode_shlibpath_var=no
16180       ;;
16181
16182     sysv4.3*)
16183       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184       hardcode_shlibpath_var=no
16185       export_dynamic_flag_spec='-Bexport'
16186       ;;
16187
16188     sysv4*MP*)
16189       if test -d /usr/nec; then
16190         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191         hardcode_shlibpath_var=no
16192         runpath_var=LD_RUN_PATH
16193         hardcode_runpath_var=yes
16194         ld_shlibs=yes
16195       fi
16196       ;;
16197
16198     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16199       no_undefined_flag='${wl}-z,text'
16200       archive_cmds_need_lc=no
16201       hardcode_shlibpath_var=no
16202       runpath_var='LD_RUN_PATH'
16203
16204       if test "$GCC" = yes; then
16205         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16207       else
16208         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16209         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16210       fi
16211       ;;
16212
16213     sysv5* | sco3.2v5* | sco5v6*)
16214       # Note: We can NOT use -z defs as we might desire, because we do not
16215       # link with -lc, and that would cause any symbols used from libc to
16216       # always be unresolved, which means just about no library would
16217       # ever link correctly.  If we're not using GNU ld we use -z text
16218       # though, which does catch some bad symbols but isn't as heavy-handed
16219       # as -z defs.
16220       no_undefined_flag='${wl}-z,text'
16221       allow_undefined_flag='${wl}-z,nodefs'
16222       archive_cmds_need_lc=no
16223       hardcode_shlibpath_var=no
16224       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16225       hardcode_libdir_separator=':'
16226       link_all_deplibs=yes
16227       export_dynamic_flag_spec='${wl}-Bexport'
16228       runpath_var='LD_RUN_PATH'
16229
16230       if test "$GCC" = yes; then
16231         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233       else
16234         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16236       fi
16237       ;;
16238
16239     uts4*)
16240       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16241       hardcode_libdir_flag_spec='-L$libdir'
16242       hardcode_shlibpath_var=no
16243       ;;
16244
16245     *)
16246       ld_shlibs=no
16247       ;;
16248     esac
16249   fi
16250
16251 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16252 echo "${ECHO_T}$ld_shlibs" >&6; }
16253 test "$ld_shlibs" = no && can_build_shared=no
16254
16255 #
16256 # Do we need to explicitly link libc?
16257 #
16258 case "x$archive_cmds_need_lc" in
16259 x|xyes)
16260   # Assume -lc should be added
16261   archive_cmds_need_lc=yes
16262
16263   if test "$enable_shared" = yes && test "$GCC" = yes; then
16264     case $archive_cmds in
16265     *'~'*)
16266       # FIXME: we may have to deal with multi-command sequences.
16267       ;;
16268     '$CC '*)
16269       # Test whether the compiler implicitly links with -lc since on some
16270       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16271       # to ld, don't add -lc before -lgcc.
16272       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16274       $rm conftest*
16275       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16276
16277       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16278   (eval $ac_compile) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } 2>conftest.err; then
16282         soname=conftest
16283         lib=conftest
16284         libobjs=conftest.$ac_objext
16285         deplibs=
16286         wl=$lt_prog_compiler_wl
16287         pic_flag=$lt_prog_compiler_pic
16288         compiler_flags=-v
16289         linker_flags=-v
16290         verstring=
16291         output_objdir=.
16292         libname=conftest
16293         lt_save_allow_undefined_flag=$allow_undefined_flag
16294         allow_undefined_flag=
16295         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16296   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }
16300         then
16301           archive_cmds_need_lc=no
16302         else
16303           archive_cmds_need_lc=yes
16304         fi
16305         allow_undefined_flag=$lt_save_allow_undefined_flag
16306       else
16307         cat conftest.err 1>&5
16308       fi
16309       $rm conftest*
16310       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16311 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16312       ;;
16313     esac
16314   fi
16315   ;;
16316 esac
16317
16318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16320 library_names_spec=
16321 libname_spec='lib$name'
16322 soname_spec=
16323 shrext_cmds=".so"
16324 postinstall_cmds=
16325 postuninstall_cmds=
16326 finish_cmds=
16327 finish_eval=
16328 shlibpath_var=
16329 shlibpath_overrides_runpath=unknown
16330 version_type=none
16331 dynamic_linker="$host_os ld.so"
16332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16333 if test "$GCC" = yes; then
16334   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16335   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16336     # if the path contains ";" then we assume it to be the separator
16337     # otherwise default to the standard path separator (i.e. ":") - it is
16338     # assumed that no part of a normal pathname contains ";" but that should
16339     # okay in the real world where ";" in dirpaths is itself problematic.
16340     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16341   else
16342     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16343   fi
16344 else
16345   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16346 fi
16347 need_lib_prefix=unknown
16348 hardcode_into_libs=no
16349
16350 # when you set need_version to no, make sure it does not cause -set_version
16351 # flags to be left without arguments
16352 need_version=unknown
16353
16354 case $host_os in
16355 aix3*)
16356   version_type=linux
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16358   shlibpath_var=LIBPATH
16359
16360   # AIX 3 has no versioning support, so we append a major version to the name.
16361   soname_spec='${libname}${release}${shared_ext}$major'
16362   ;;
16363
16364 aix4* | aix5*)
16365   version_type=linux
16366   need_lib_prefix=no
16367   need_version=no
16368   hardcode_into_libs=yes
16369   if test "$host_cpu" = ia64; then
16370     # AIX 5 supports IA64
16371     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16372     shlibpath_var=LD_LIBRARY_PATH
16373   else
16374     # With GCC up to 2.95.x, collect2 would create an import file
16375     # for dependence libraries.  The import file would start with
16376     # the line `#! .'.  This would cause the generated library to
16377     # depend on `.', always an invalid library.  This was fixed in
16378     # development snapshots of GCC prior to 3.0.
16379     case $host_os in
16380       aix4 | aix4.[01] | aix4.[01].*)
16381       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16382            echo ' yes '
16383            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16384         :
16385       else
16386         can_build_shared=no
16387       fi
16388       ;;
16389     esac
16390     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16391     # soname into executable. Probably we can add versioning support to
16392     # collect2, so additional links can be useful in future.
16393     if test "$aix_use_runtimelinking" = yes; then
16394       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16395       # instead of lib<name>.a to let people know that these are not
16396       # typical AIX shared libraries.
16397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398     else
16399       # We preserve .a as extension for shared libraries through AIX4.2
16400       # and later when we are not doing run time linking.
16401       library_names_spec='${libname}${release}.a $libname.a'
16402       soname_spec='${libname}${release}${shared_ext}$major'
16403     fi
16404     shlibpath_var=LIBPATH
16405   fi
16406   ;;
16407
16408 amigaos*)
16409   library_names_spec='$libname.ixlibrary $libname.a'
16410   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16411   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'
16412   ;;
16413
16414 beos*)
16415   library_names_spec='${libname}${shared_ext}'
16416   dynamic_linker="$host_os ld.so"
16417   shlibpath_var=LIBRARY_PATH
16418   ;;
16419
16420 bsdi[45]*)
16421   version_type=linux
16422   need_version=no
16423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424   soname_spec='${libname}${release}${shared_ext}$major'
16425   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16426   shlibpath_var=LD_LIBRARY_PATH
16427   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16428   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16429   # the default ld.so.conf also contains /usr/contrib/lib and
16430   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16431   # libtool to hard-code these into programs
16432   ;;
16433
16434 cygwin* | mingw* | pw32*)
16435   version_type=windows
16436   shrext_cmds=".dll"
16437   need_version=no
16438   need_lib_prefix=no
16439
16440   case $GCC,$host_os in
16441   yes,cygwin* | yes,mingw* | yes,pw32*)
16442     library_names_spec='$libname.dll.a'
16443     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16444     postinstall_cmds='base_file=`basename \${file}`~
16445       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16446       dldir=$destdir/`dirname \$dlpath`~
16447       test -d \$dldir || mkdir -p \$dldir~
16448       $install_prog $dir/$dlname \$dldir/$dlname~
16449       chmod a+x \$dldir/$dlname'
16450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16451       dlpath=$dir/\$dldll~
16452        $rm \$dlpath'
16453     shlibpath_overrides_runpath=yes
16454
16455     case $host_os in
16456     cygwin*)
16457       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16458       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16459       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16460       ;;
16461     mingw*)
16462       # MinGW DLLs use traditional 'lib' prefix
16463       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16465       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16466         # It is most probably a Windows format PATH printed by
16467         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16468         # path with ; separators, and with drive letters. We can handle the
16469         # drive letters (cygwin fileutils understands them), so leave them,
16470         # especially as we might pass files found there to a mingw objdump,
16471         # which wouldn't understand a cygwinified path. Ahh.
16472         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16473       else
16474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16475       fi
16476       ;;
16477     pw32*)
16478       # pw32 DLLs use 'pw' prefix rather than 'lib'
16479       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16480       ;;
16481     esac
16482     ;;
16483
16484   *)
16485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16486     ;;
16487   esac
16488   dynamic_linker='Win32 ld.exe'
16489   # FIXME: first we should search . and the directory the executable is in
16490   shlibpath_var=PATH
16491   ;;
16492
16493 darwin* | rhapsody*)
16494   dynamic_linker="$host_os dyld"
16495   version_type=darwin
16496   need_lib_prefix=no
16497   need_version=no
16498   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16499   soname_spec='${libname}${release}${major}$shared_ext'
16500   shlibpath_overrides_runpath=yes
16501   shlibpath_var=DYLD_LIBRARY_PATH
16502   shrext_cmds='.dylib'
16503   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16504   if test "$GCC" = yes; then
16505     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"`
16506   else
16507     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16508   fi
16509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16510   ;;
16511
16512 dgux*)
16513   version_type=linux
16514   need_lib_prefix=no
16515   need_version=no
16516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517   soname_spec='${libname}${release}${shared_ext}$major'
16518   shlibpath_var=LD_LIBRARY_PATH
16519   ;;
16520
16521 freebsd1*)
16522   dynamic_linker=no
16523   ;;
16524
16525 kfreebsd*-gnu)
16526   version_type=linux
16527   need_lib_prefix=no
16528   need_version=no
16529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16530   soname_spec='${libname}${release}${shared_ext}$major'
16531   shlibpath_var=LD_LIBRARY_PATH
16532   shlibpath_overrides_runpath=no
16533   hardcode_into_libs=yes
16534   dynamic_linker='GNU ld.so'
16535   ;;
16536
16537 freebsd* | dragonfly*)
16538   # DragonFly does not have aout.  When/if they implement a new
16539   # versioning mechanism, adjust this.
16540   if test -x /usr/bin/objformat; then
16541     objformat=`/usr/bin/objformat`
16542   else
16543     case $host_os in
16544     freebsd[123]*) objformat=aout ;;
16545     *) objformat=elf ;;
16546     esac
16547   fi
16548   version_type=freebsd-$objformat
16549   case $version_type in
16550     freebsd-elf*)
16551       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16552       need_version=no
16553       need_lib_prefix=no
16554       ;;
16555     freebsd-*)
16556       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16557       need_version=yes
16558       ;;
16559   esac
16560   shlibpath_var=LD_LIBRARY_PATH
16561   case $host_os in
16562   freebsd2*)
16563     shlibpath_overrides_runpath=yes
16564     ;;
16565   freebsd3.[01]* | freebsdelf3.[01]*)
16566     shlibpath_overrides_runpath=yes
16567     hardcode_into_libs=yes
16568     ;;
16569   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16570   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16571     shlibpath_overrides_runpath=no
16572     hardcode_into_libs=yes
16573     ;;
16574   freebsd*) # from 4.6 on
16575     shlibpath_overrides_runpath=yes
16576     hardcode_into_libs=yes
16577     ;;
16578   esac
16579   ;;
16580
16581 gnu*)
16582   version_type=linux
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   shlibpath_var=LD_LIBRARY_PATH
16588   hardcode_into_libs=yes
16589   ;;
16590
16591 hpux9* | hpux10* | hpux11*)
16592   # Give a soname corresponding to the major version so that dld.sl refuses to
16593   # link against other versions.
16594   version_type=sunos
16595   need_lib_prefix=no
16596   need_version=no
16597   case $host_cpu in
16598   ia64*)
16599     shrext_cmds='.so'
16600     hardcode_into_libs=yes
16601     dynamic_linker="$host_os dld.so"
16602     shlibpath_var=LD_LIBRARY_PATH
16603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605     soname_spec='${libname}${release}${shared_ext}$major'
16606     if test "X$HPUX_IA64_MODE" = X32; then
16607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16608     else
16609       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16610     fi
16611     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16612     ;;
16613    hppa*64*)
16614      shrext_cmds='.sl'
16615      hardcode_into_libs=yes
16616      dynamic_linker="$host_os dld.sl"
16617      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16618      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16619      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620      soname_spec='${libname}${release}${shared_ext}$major'
16621      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16622      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16623      ;;
16624    *)
16625     shrext_cmds='.sl'
16626     dynamic_linker="$host_os dld.sl"
16627     shlibpath_var=SHLIB_PATH
16628     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630     soname_spec='${libname}${release}${shared_ext}$major'
16631     ;;
16632   esac
16633   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16634   postinstall_cmds='chmod 555 $lib'
16635   ;;
16636
16637 interix3*)
16638   version_type=linux
16639   need_lib_prefix=no
16640   need_version=no
16641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642   soname_spec='${libname}${release}${shared_ext}$major'
16643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=no
16646   hardcode_into_libs=yes
16647   ;;
16648
16649 irix5* | irix6* | nonstopux*)
16650   case $host_os in
16651     nonstopux*) version_type=nonstopux ;;
16652     *)
16653         if test "$lt_cv_prog_gnu_ld" = yes; then
16654                 version_type=linux
16655         else
16656                 version_type=irix
16657         fi ;;
16658   esac
16659   need_lib_prefix=no
16660   need_version=no
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16663   case $host_os in
16664   irix5* | nonstopux*)
16665     libsuff= shlibsuff=
16666     ;;
16667   *)
16668     case $LD in # libtool.m4 will add one of these switches to LD
16669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670       libsuff= shlibsuff= libmagic=32-bit;;
16671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672       libsuff=32 shlibsuff=N32 libmagic=N32;;
16673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675     *) libsuff= shlibsuff= libmagic=never-match;;
16676     esac
16677     ;;
16678   esac
16679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680   shlibpath_overrides_runpath=no
16681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16683   hardcode_into_libs=yes
16684   ;;
16685
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16688   dynamic_linker=no
16689   ;;
16690
16691 # This must be Linux ELF.
16692 linux*)
16693   version_type=linux
16694   need_lib_prefix=no
16695   need_version=no
16696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   shlibpath_overrides_runpath=no
16701   # This implies no fast_install, which is unacceptable.
16702   # Some rework will be needed to allow for fast_install
16703   # before this can be enabled.
16704   hardcode_into_libs=yes
16705
16706   # Append ld.so.conf contents to the search path
16707   if test -f /etc/ld.so.conf; then
16708     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' ' '`
16709     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16710   fi
16711
16712   # We used to test for /lib/ld.so.1 and disable shared libraries on
16713   # powerpc, because MkLinux only supported shared libraries with the
16714   # GNU dynamic linker.  Since this was broken with cross compilers,
16715   # most powerpc-linux boxes support dynamic linking these days and
16716   # people can always --disable-shared, the test was removed, and we
16717   # assume the GNU/Linux dynamic linker is in use.
16718   dynamic_linker='GNU/Linux ld.so'
16719   ;;
16720
16721 knetbsd*-gnu)
16722   version_type=linux
16723   need_lib_prefix=no
16724   need_version=no
16725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16726   soname_spec='${libname}${release}${shared_ext}$major'
16727   shlibpath_var=LD_LIBRARY_PATH
16728   shlibpath_overrides_runpath=no
16729   hardcode_into_libs=yes
16730   dynamic_linker='GNU ld.so'
16731   ;;
16732
16733 netbsd*)
16734   version_type=sunos
16735   need_lib_prefix=no
16736   need_version=no
16737   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16739     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16740     dynamic_linker='NetBSD (a.out) ld.so'
16741   else
16742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16743     soname_spec='${libname}${release}${shared_ext}$major'
16744     dynamic_linker='NetBSD ld.elf_so'
16745   fi
16746   shlibpath_var=LD_LIBRARY_PATH
16747   shlibpath_overrides_runpath=yes
16748   hardcode_into_libs=yes
16749   ;;
16750
16751 newsos6)
16752   version_type=linux
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   shlibpath_overrides_runpath=yes
16756   ;;
16757
16758 nto-qnx*)
16759   version_type=linux
16760   need_lib_prefix=no
16761   need_version=no
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   shlibpath_overrides_runpath=yes
16766   ;;
16767
16768 openbsd*)
16769   version_type=sunos
16770   sys_lib_dlsearch_path_spec="/usr/lib"
16771   need_lib_prefix=no
16772   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16773   case $host_os in
16774     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16775     *)                         need_version=no  ;;
16776   esac
16777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16779   shlibpath_var=LD_LIBRARY_PATH
16780   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16781     case $host_os in
16782       openbsd2.[89] | openbsd2.[89].*)
16783         shlibpath_overrides_runpath=no
16784         ;;
16785       *)
16786         shlibpath_overrides_runpath=yes
16787         ;;
16788       esac
16789   else
16790     shlibpath_overrides_runpath=yes
16791   fi
16792   ;;
16793
16794 os2*)
16795   libname_spec='$name'
16796   shrext_cmds=".dll"
16797   need_lib_prefix=no
16798   library_names_spec='$libname${shared_ext} $libname.a'
16799   dynamic_linker='OS/2 ld.exe'
16800   shlibpath_var=LIBPATH
16801   ;;
16802
16803 osf3* | osf4* | osf5*)
16804   version_type=osf
16805   need_lib_prefix=no
16806   need_version=no
16807   soname_spec='${libname}${release}${shared_ext}$major'
16808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16811   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16812   ;;
16813
16814 solaris*)
16815   version_type=linux
16816   need_lib_prefix=no
16817   need_version=no
16818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819   soname_spec='${libname}${release}${shared_ext}$major'
16820   shlibpath_var=LD_LIBRARY_PATH
16821   shlibpath_overrides_runpath=yes
16822   hardcode_into_libs=yes
16823   # ldd complains unless libraries are executable
16824   postinstall_cmds='chmod +x $lib'
16825   ;;
16826
16827 sunos4*)
16828   version_type=sunos
16829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16830   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16831   shlibpath_var=LD_LIBRARY_PATH
16832   shlibpath_overrides_runpath=yes
16833   if test "$with_gnu_ld" = yes; then
16834     need_lib_prefix=no
16835   fi
16836   need_version=yes
16837   ;;
16838
16839 sysv4 | sysv4.3*)
16840   version_type=linux
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842   soname_spec='${libname}${release}${shared_ext}$major'
16843   shlibpath_var=LD_LIBRARY_PATH
16844   case $host_vendor in
16845     sni)
16846       shlibpath_overrides_runpath=no
16847       need_lib_prefix=no
16848       export_dynamic_flag_spec='${wl}-Blargedynsym'
16849       runpath_var=LD_RUN_PATH
16850       ;;
16851     siemens)
16852       need_lib_prefix=no
16853       ;;
16854     motorola)
16855       need_lib_prefix=no
16856       need_version=no
16857       shlibpath_overrides_runpath=no
16858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16859       ;;
16860   esac
16861   ;;
16862
16863 sysv4*MP*)
16864   if test -d /usr/nec ;then
16865     version_type=linux
16866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16867     soname_spec='$libname${shared_ext}.$major'
16868     shlibpath_var=LD_LIBRARY_PATH
16869   fi
16870   ;;
16871
16872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16873   version_type=freebsd-elf
16874   need_lib_prefix=no
16875   need_version=no
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16877   soname_spec='${libname}${release}${shared_ext}$major'
16878   shlibpath_var=LD_LIBRARY_PATH
16879   hardcode_into_libs=yes
16880   if test "$with_gnu_ld" = yes; then
16881     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16882     shlibpath_overrides_runpath=no
16883   else
16884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16885     shlibpath_overrides_runpath=yes
16886     case $host_os in
16887       sco3.2v5*)
16888         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16889         ;;
16890     esac
16891   fi
16892   sys_lib_dlsearch_path_spec='/usr/lib'
16893   ;;
16894
16895 uts4*)
16896   version_type=linux
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898   soname_spec='${libname}${release}${shared_ext}$major'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   ;;
16901
16902 *)
16903   dynamic_linker=no
16904   ;;
16905 esac
16906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16907 echo "${ECHO_T}$dynamic_linker" >&6; }
16908 test "$dynamic_linker" = no && can_build_shared=no
16909
16910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16911 if test "$GCC" = yes; then
16912   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16913 fi
16914
16915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16917 hardcode_action=
16918 if test -n "$hardcode_libdir_flag_spec" || \
16919    test -n "$runpath_var" || \
16920    test "X$hardcode_automatic" = "Xyes" ; then
16921
16922   # We can hardcode non-existant directories.
16923   if test "$hardcode_direct" != no &&
16924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16925      # have to relink, otherwise we might link with an installed library
16926      # when we should be linking with a yet-to-be-installed one
16927      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16928      test "$hardcode_minus_L" != no; then
16929     # Linking always hardcodes the temporary library directory.
16930     hardcode_action=relink
16931   else
16932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16933     hardcode_action=immediate
16934   fi
16935 else
16936   # We cannot hardcode anything, or else we can only hardcode existing
16937   # directories.
16938   hardcode_action=unsupported
16939 fi
16940 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16941 echo "${ECHO_T}$hardcode_action" >&6; }
16942
16943 if test "$hardcode_action" = relink; then
16944   # Fast installation is not supported
16945   enable_fast_install=no
16946 elif test "$shlibpath_overrides_runpath" = yes ||
16947      test "$enable_shared" = no; then
16948   # Fast installation is not necessary
16949   enable_fast_install=needless
16950 fi
16951
16952 striplib=
16953 old_striplib=
16954 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16957   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16958   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16959   { echo "$as_me:$LINENO: result: yes" >&5
16960 echo "${ECHO_T}yes" >&6; }
16961 else
16962 # FIXME - insert some real tests, host_os isn't really good enough
16963   case $host_os in
16964    darwin*)
16965        if test -n "$STRIP" ; then
16966          striplib="$STRIP -x"
16967          { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16969        else
16970   { echo "$as_me:$LINENO: result: no" >&5
16971 echo "${ECHO_T}no" >&6; }
16972 fi
16973        ;;
16974    *)
16975   { echo "$as_me:$LINENO: result: no" >&5
16976 echo "${ECHO_T}no" >&6; }
16977     ;;
16978   esac
16979 fi
16980
16981 if test "x$enable_dlopen" != xyes; then
16982   enable_dlopen=unknown
16983   enable_dlopen_self=unknown
16984   enable_dlopen_self_static=unknown
16985 else
16986   lt_cv_dlopen=no
16987   lt_cv_dlopen_libs=
16988
16989   case $host_os in
16990   beos*)
16991     lt_cv_dlopen="load_add_on"
16992     lt_cv_dlopen_libs=
16993     lt_cv_dlopen_self=yes
16994     ;;
16995
16996   mingw* | pw32*)
16997     lt_cv_dlopen="LoadLibrary"
16998     lt_cv_dlopen_libs=
16999    ;;
17000
17001   cygwin*)
17002     lt_cv_dlopen="dlopen"
17003     lt_cv_dlopen_libs=
17004    ;;
17005
17006   darwin*)
17007   # if libdl is installed we need to link against it
17008     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17011   echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013   ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-ldl  $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021
17022 /* Override any GCC internal prototype to avoid an error.
17023    Use char because int might match the return type of a GCC
17024    builtin and then its argument prototype would still apply.  */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 char dlopen ();
17029 int
17030 main ()
17031 {
17032 return dlopen ();
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041   *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044   (eval "$ac_link") 2>conftest.er1
17045   ac_status=$?
17046   grep -v '^ *+' conftest.er1 >conftest.err
17047   rm -f conftest.er1
17048   cat conftest.err >&5
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); } &&
17051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052   { (case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_try") 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; } &&
17061          { ac_try='test -s conftest$ac_exeext'
17062   { (case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_try") 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_lib_dl_dlopen=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076         ac_cv_lib_dl_dlopen=no
17077 fi
17078
17079 rm -f core conftest.err conftest.$ac_objext \
17080       conftest$ac_exeext conftest.$ac_ext
17081 LIBS=$ac_check_lib_save_LIBS
17082 fi
17083 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17085 if test $ac_cv_lib_dl_dlopen = yes; then
17086   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17087 else
17088
17089     lt_cv_dlopen="dyld"
17090     lt_cv_dlopen_libs=
17091     lt_cv_dlopen_self=yes
17092
17093 fi
17094
17095    ;;
17096
17097   *)
17098     { echo "$as_me:$LINENO: checking for shl_load" >&5
17099 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17100 if test "${ac_cv_func_shl_load+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17111 #define shl_load innocuous_shl_load
17112
17113 /* System header to define __stub macros and hopefully few prototypes,
17114     which can conflict with char shl_load (); below.
17115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17116     <limits.h> exists even on freestanding compilers.  */
17117
17118 #ifdef __STDC__
17119 # include <limits.h>
17120 #else
17121 # include <assert.h>
17122 #endif
17123
17124 #undef shl_load
17125
17126 /* Override any GCC internal prototype to avoid an error.
17127    Use char because int might match the return type of a GCC
17128    builtin and then its argument prototype would still apply.  */
17129 #ifdef __cplusplus
17130 extern "C"
17131 #endif
17132 char shl_load ();
17133 /* The GNU C library defines this for functions which it implements
17134     to always fail with ENOSYS.  Some functions are actually named
17135     something starting with __ and the normal name is an alias.  */
17136 #if defined __stub_shl_load || defined __stub___shl_load
17137 choke me
17138 #endif
17139
17140 int
17141 main ()
17142 {
17143 return shl_load ();
17144   ;
17145   return 0;
17146 }
17147 _ACEOF
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (ac_try="$ac_link"
17150 case "(($ac_try" in
17151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152   *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155   (eval "$ac_link") 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } &&
17162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17163   { (case "(($ac_try" in
17164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165   *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168   (eval "$ac_try") 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); }; } &&
17172          { ac_try='test -s conftest$ac_exeext'
17173   { (case "(($ac_try" in
17174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175   *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178   (eval "$ac_try") 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); }; }; then
17182   ac_cv_func_shl_load=yes
17183 else
17184   echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187         ac_cv_func_shl_load=no
17188 fi
17189
17190 rm -f core conftest.err conftest.$ac_objext \
17191       conftest$ac_exeext conftest.$ac_ext
17192 fi
17193 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17194 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17195 if test $ac_cv_func_shl_load = yes; then
17196   lt_cv_dlopen="shl_load"
17197 else
17198   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17199 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17201   echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203   ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-ldld  $LIBS"
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211
17212 /* Override any GCC internal prototype to avoid an error.
17213    Use char because int might match the return type of a GCC
17214    builtin and then its argument prototype would still apply.  */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 char shl_load ();
17219 int
17220 main ()
17221 {
17222 return shl_load ();
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_link") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest$ac_exeext'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   ac_cv_lib_dld_shl_load=yes
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         ac_cv_lib_dld_shl_load=no
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext \
17270       conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17272 fi
17273 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17274 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17275 if test $ac_cv_lib_dld_shl_load = yes; then
17276   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17277 else
17278   { echo "$as_me:$LINENO: checking for dlopen" >&5
17279 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17280 if test "${ac_cv_func_dlopen+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17291 #define dlopen innocuous_dlopen
17292
17293 /* System header to define __stub macros and hopefully few prototypes,
17294     which can conflict with char dlopen (); below.
17295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296     <limits.h> exists even on freestanding compilers.  */
17297
17298 #ifdef __STDC__
17299 # include <limits.h>
17300 #else
17301 # include <assert.h>
17302 #endif
17303
17304 #undef dlopen
17305
17306 /* Override any GCC internal prototype to avoid an error.
17307    Use char because int might match the return type of a GCC
17308    builtin and then its argument prototype would still apply.  */
17309 #ifdef __cplusplus
17310 extern "C"
17311 #endif
17312 char dlopen ();
17313 /* The GNU C library defines this for functions which it implements
17314     to always fail with ENOSYS.  Some functions are actually named
17315     something starting with __ and the normal name is an alias.  */
17316 #if defined __stub_dlopen || defined __stub___dlopen
17317 choke me
17318 #endif
17319
17320 int
17321 main ()
17322 {
17323 return dlopen ();
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_link") 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } &&
17342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343   { (case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_try") 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; } &&
17352          { ac_try='test -s conftest$ac_exeext'
17353   { (case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_try") 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; }; then
17362   ac_cv_func_dlopen=yes
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         ac_cv_func_dlopen=no
17368 fi
17369
17370 rm -f core conftest.err conftest.$ac_objext \
17371       conftest$ac_exeext conftest.$ac_ext
17372 fi
17373 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17374 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17375 if test $ac_cv_func_dlopen = yes; then
17376   lt_cv_dlopen="dlopen"
17377 else
17378   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17379 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17381   echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383   ac_check_lib_save_LIBS=$LIBS
17384 LIBS="-ldl  $LIBS"
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391
17392 /* Override any GCC internal prototype to avoid an error.
17393    Use char because int might match the return type of a GCC
17394    builtin and then its argument prototype would still apply.  */
17395 #ifdef __cplusplus
17396 extern "C"
17397 #endif
17398 char dlopen ();
17399 int
17400 main ()
17401 {
17402 return dlopen ();
17403   ;
17404   return 0;
17405 }
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (ac_try="$ac_link"
17409 case "(($ac_try" in
17410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411   *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414   (eval "$ac_link") 2>conftest.er1
17415   ac_status=$?
17416   grep -v '^ *+' conftest.er1 >conftest.err
17417   rm -f conftest.er1
17418   cat conftest.err >&5
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); } &&
17421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422   { (case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_try") 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; } &&
17431          { ac_try='test -s conftest$ac_exeext'
17432   { (case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_try") 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; }; then
17441   ac_cv_lib_dl_dlopen=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446         ac_cv_lib_dl_dlopen=no
17447 fi
17448
17449 rm -f core conftest.err conftest.$ac_objext \
17450       conftest$ac_exeext conftest.$ac_ext
17451 LIBS=$ac_check_lib_save_LIBS
17452 fi
17453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17455 if test $ac_cv_lib_dl_dlopen = yes; then
17456   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17457 else
17458   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17459 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17460 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   ac_check_lib_save_LIBS=$LIBS
17464 LIBS="-lsvld  $LIBS"
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h.  */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h.  */
17471
17472 /* Override any GCC internal prototype to avoid an error.
17473    Use char because int might match the return type of a GCC
17474    builtin and then its argument prototype would still apply.  */
17475 #ifdef __cplusplus
17476 extern "C"
17477 #endif
17478 char dlopen ();
17479 int
17480 main ()
17481 {
17482 return dlopen ();
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_link") 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } &&
17501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502   { (case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_try") 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest$ac_exeext'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; }; then
17521   ac_cv_lib_svld_dlopen=yes
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526         ac_cv_lib_svld_dlopen=no
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext \
17530       conftest$ac_exeext conftest.$ac_ext
17531 LIBS=$ac_check_lib_save_LIBS
17532 fi
17533 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17534 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17535 if test $ac_cv_lib_svld_dlopen = yes; then
17536   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17537 else
17538   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17539 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17540 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543   ac_check_lib_save_LIBS=$LIBS
17544 LIBS="-ldld  $LIBS"
17545 cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h.  */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h.  */
17551
17552 /* Override any GCC internal prototype to avoid an error.
17553    Use char because int might match the return type of a GCC
17554    builtin and then its argument prototype would still apply.  */
17555 #ifdef __cplusplus
17556 extern "C"
17557 #endif
17558 char dld_link ();
17559 int
17560 main ()
17561 {
17562 return dld_link ();
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (ac_try="$ac_link"
17569 case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574   (eval "$ac_link") 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } &&
17581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582   { (case "(($ac_try" in
17583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584   *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587   (eval "$ac_try") 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; } &&
17591          { ac_try='test -s conftest$ac_exeext'
17592   { (case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_try") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_lib_dld_dld_link=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606         ac_cv_lib_dld_dld_link=no
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext \
17610       conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17612 fi
17613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17614 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17615 if test $ac_cv_lib_dld_dld_link = yes; then
17616   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17617 fi
17618
17619
17620 fi
17621
17622
17623 fi
17624
17625
17626 fi
17627
17628
17629 fi
17630
17631
17632 fi
17633
17634     ;;
17635   esac
17636
17637   if test "x$lt_cv_dlopen" != xno; then
17638     enable_dlopen=yes
17639   else
17640     enable_dlopen=no
17641   fi
17642
17643   case $lt_cv_dlopen in
17644   dlopen)
17645     save_CPPFLAGS="$CPPFLAGS"
17646     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17647
17648     save_LDFLAGS="$LDFLAGS"
17649     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17650
17651     save_LIBS="$LIBS"
17652     LIBS="$lt_cv_dlopen_libs $LIBS"
17653
17654     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17655 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17656 if test "${lt_cv_dlopen_self+set}" = set; then
17657   echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659           if test "$cross_compiling" = yes; then :
17660   lt_cv_dlopen_self=cross
17661 else
17662   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17663   lt_status=$lt_dlunknown
17664   cat > conftest.$ac_ext <<EOF
17665 #line 17665 "configure"
17666 #include "confdefs.h"
17667
17668 #if HAVE_DLFCN_H
17669 #include <dlfcn.h>
17670 #endif
17671
17672 #include <stdio.h>
17673
17674 #ifdef RTLD_GLOBAL
17675 #  define LT_DLGLOBAL           RTLD_GLOBAL
17676 #else
17677 #  ifdef DL_GLOBAL
17678 #    define LT_DLGLOBAL         DL_GLOBAL
17679 #  else
17680 #    define LT_DLGLOBAL         0
17681 #  endif
17682 #endif
17683
17684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17685    find out it does not work in some platform. */
17686 #ifndef LT_DLLAZY_OR_NOW
17687 #  ifdef RTLD_LAZY
17688 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17689 #  else
17690 #    ifdef DL_LAZY
17691 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17692 #    else
17693 #      ifdef RTLD_NOW
17694 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17695 #      else
17696 #        ifdef DL_NOW
17697 #          define LT_DLLAZY_OR_NOW      DL_NOW
17698 #        else
17699 #          define LT_DLLAZY_OR_NOW      0
17700 #        endif
17701 #      endif
17702 #    endif
17703 #  endif
17704 #endif
17705
17706 #ifdef __cplusplus
17707 extern "C" void exit (int);
17708 #endif
17709
17710 void fnord() { int i=42;}
17711 int main ()
17712 {
17713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17714   int status = $lt_dlunknown;
17715
17716   if (self)
17717     {
17718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17719       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17720       /* dlclose (self); */
17721     }
17722   else
17723     puts (dlerror ());
17724
17725     exit (status);
17726 }
17727 EOF
17728   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729   (eval $ac_link) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17733     (./conftest; exit; ) >&5 2>/dev/null
17734     lt_status=$?
17735     case x$lt_status in
17736       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17737       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17738       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17739     esac
17740   else :
17741     # compilation failed
17742     lt_cv_dlopen_self=no
17743   fi
17744 fi
17745 rm -fr conftest*
17746
17747
17748 fi
17749 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17750 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17751
17752     if test "x$lt_cv_dlopen_self" = xyes; then
17753       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17754       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17755 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17756 if test "${lt_cv_dlopen_self_static+set}" = set; then
17757   echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759           if test "$cross_compiling" = yes; then :
17760   lt_cv_dlopen_self_static=cross
17761 else
17762   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17763   lt_status=$lt_dlunknown
17764   cat > conftest.$ac_ext <<EOF
17765 #line 17765 "configure"
17766 #include "confdefs.h"
17767
17768 #if HAVE_DLFCN_H
17769 #include <dlfcn.h>
17770 #endif
17771
17772 #include <stdio.h>
17773
17774 #ifdef RTLD_GLOBAL
17775 #  define LT_DLGLOBAL           RTLD_GLOBAL
17776 #else
17777 #  ifdef DL_GLOBAL
17778 #    define LT_DLGLOBAL         DL_GLOBAL
17779 #  else
17780 #    define LT_DLGLOBAL         0
17781 #  endif
17782 #endif
17783
17784 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17785    find out it does not work in some platform. */
17786 #ifndef LT_DLLAZY_OR_NOW
17787 #  ifdef RTLD_LAZY
17788 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17789 #  else
17790 #    ifdef DL_LAZY
17791 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17792 #    else
17793 #      ifdef RTLD_NOW
17794 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17795 #      else
17796 #        ifdef DL_NOW
17797 #          define LT_DLLAZY_OR_NOW      DL_NOW
17798 #        else
17799 #          define LT_DLLAZY_OR_NOW      0
17800 #        endif
17801 #      endif
17802 #    endif
17803 #  endif
17804 #endif
17805
17806 #ifdef __cplusplus
17807 extern "C" void exit (int);
17808 #endif
17809
17810 void fnord() { int i=42;}
17811 int main ()
17812 {
17813   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17814   int status = $lt_dlunknown;
17815
17816   if (self)
17817     {
17818       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17819       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17820       /* dlclose (self); */
17821     }
17822   else
17823     puts (dlerror ());
17824
17825     exit (status);
17826 }
17827 EOF
17828   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829   (eval $ac_link) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17833     (./conftest; exit; ) >&5 2>/dev/null
17834     lt_status=$?
17835     case x$lt_status in
17836       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17837       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17838       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17839     esac
17840   else :
17841     # compilation failed
17842     lt_cv_dlopen_self_static=no
17843   fi
17844 fi
17845 rm -fr conftest*
17846
17847
17848 fi
17849 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17850 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17851     fi
17852
17853     CPPFLAGS="$save_CPPFLAGS"
17854     LDFLAGS="$save_LDFLAGS"
17855     LIBS="$save_LIBS"
17856     ;;
17857   esac
17858
17859   case $lt_cv_dlopen_self in
17860   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17861   *) enable_dlopen_self=unknown ;;
17862   esac
17863
17864   case $lt_cv_dlopen_self_static in
17865   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17866   *) enable_dlopen_self_static=unknown ;;
17867   esac
17868 fi
17869
17870
17871 # Report which library types will actually be built
17872 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17873 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17874 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17875 echo "${ECHO_T}$can_build_shared" >&6; }
17876
17877 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17878 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17879 test "$can_build_shared" = "no" && enable_shared=no
17880
17881 # On AIX, shared libraries and static libraries use the same namespace, and
17882 # are all built from PIC.
17883 case $host_os in
17884 aix3*)
17885   test "$enable_shared" = yes && enable_static=no
17886   if test -n "$RANLIB"; then
17887     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17888     postinstall_cmds='$RANLIB $lib'
17889   fi
17890   ;;
17891
17892 aix4* | aix5*)
17893   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17894     test "$enable_shared" = yes && enable_static=no
17895   fi
17896     ;;
17897 esac
17898 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17899 echo "${ECHO_T}$enable_shared" >&6; }
17900
17901 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17902 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17903 # Make sure either enable_shared or enable_static is yes.
17904 test "$enable_shared" = yes || enable_static=yes
17905 { echo "$as_me:$LINENO: result: $enable_static" >&5
17906 echo "${ECHO_T}$enable_static" >&6; }
17907
17908 # The else clause should only fire when bootstrapping the
17909 # libtool distribution, otherwise you forgot to ship ltmain.sh
17910 # with your package, and you will get complaints that there are
17911 # no rules to generate ltmain.sh.
17912 if test -f "$ltmain"; then
17913   # See if we are running on zsh, and set the options which allow our commands through
17914   # without removal of \ escapes.
17915   if test -n "${ZSH_VERSION+set}" ; then
17916     setopt NO_GLOB_SUBST
17917   fi
17918   # Now quote all the things that may contain metacharacters while being
17919   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17920   # variables and quote the copies for generation of the libtool script.
17921   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17922     SED SHELL STRIP \
17923     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17924     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17925     deplibs_check_method reload_flag reload_cmds need_locks \
17926     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17927     lt_cv_sys_global_symbol_to_c_name_address \
17928     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17929     old_postinstall_cmds old_postuninstall_cmds \
17930     compiler \
17931     CC \
17932     LD \
17933     lt_prog_compiler_wl \
17934     lt_prog_compiler_pic \
17935     lt_prog_compiler_static \
17936     lt_prog_compiler_no_builtin_flag \
17937     export_dynamic_flag_spec \
17938     thread_safe_flag_spec \
17939     whole_archive_flag_spec \
17940     enable_shared_with_static_runtimes \
17941     old_archive_cmds \
17942     old_archive_from_new_cmds \
17943     predep_objects \
17944     postdep_objects \
17945     predeps \
17946     postdeps \
17947     compiler_lib_search_path \
17948     archive_cmds \
17949     archive_expsym_cmds \
17950     postinstall_cmds \
17951     postuninstall_cmds \
17952     old_archive_from_expsyms_cmds \
17953     allow_undefined_flag \
17954     no_undefined_flag \
17955     export_symbols_cmds \
17956     hardcode_libdir_flag_spec \
17957     hardcode_libdir_flag_spec_ld \
17958     hardcode_libdir_separator \
17959     hardcode_automatic \
17960     module_cmds \
17961     module_expsym_cmds \
17962     lt_cv_prog_compiler_c_o \
17963     exclude_expsyms \
17964     include_expsyms; do
17965
17966     case $var in
17967     old_archive_cmds | \
17968     old_archive_from_new_cmds | \
17969     archive_cmds | \
17970     archive_expsym_cmds | \
17971     module_cmds | \
17972     module_expsym_cmds | \
17973     old_archive_from_expsyms_cmds | \
17974     export_symbols_cmds | \
17975     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17976     postinstall_cmds | postuninstall_cmds | \
17977     old_postinstall_cmds | old_postuninstall_cmds | \
17978     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17979       # Double-quote double-evaled strings.
17980       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17981       ;;
17982     *)
17983       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17984       ;;
17985     esac
17986   done
17987
17988   case $lt_echo in
17989   *'\$0 --fallback-echo"')
17990     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17991     ;;
17992   esac
17993
17994 cfgfile="${ofile}T"
17995   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17996   $rm -f "$cfgfile"
17997   { echo "$as_me:$LINENO: creating $ofile" >&5
17998 echo "$as_me: creating $ofile" >&6;}
17999
18000   cat <<__EOF__ >> "$cfgfile"
18001 #! $SHELL
18002
18003 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18004 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18005 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18006 #
18007 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18008 # Free Software Foundation, Inc.
18009 #
18010 # This file is part of GNU Libtool:
18011 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18012 #
18013 # This program is free software; you can redistribute it and/or modify
18014 # it under the terms of the GNU General Public License as published by
18015 # the Free Software Foundation; either version 2 of the License, or
18016 # (at your option) any later version.
18017 #
18018 # This program is distributed in the hope that it will be useful, but
18019 # WITHOUT ANY WARRANTY; without even the implied warranty of
18020 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18021 # General Public License for more details.
18022 #
18023 # You should have received a copy of the GNU General Public License
18024 # along with this program; if not, write to the Free Software
18025 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18026 #
18027 # As a special exception to the GNU General Public License, if you
18028 # distribute this file as part of a program that contains a
18029 # configuration script generated by Autoconf, you may include it under
18030 # the same distribution terms that you use for the rest of that program.
18031
18032 # A sed program that does not truncate output.
18033 SED=$lt_SED
18034
18035 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18036 Xsed="$SED -e 1s/^X//"
18037
18038 # The HP-UX ksh and POSIX shell print the target directory to stdout
18039 # if CDPATH is set.
18040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18041
18042 # The names of the tagged configurations supported by this script.
18043 available_tags=
18044
18045 # ### BEGIN LIBTOOL CONFIG
18046
18047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18048
18049 # Shell to use when invoking shell scripts.
18050 SHELL=$lt_SHELL
18051
18052 # Whether or not to build shared libraries.
18053 build_libtool_libs=$enable_shared
18054
18055 # Whether or not to build static libraries.
18056 build_old_libs=$enable_static
18057
18058 # Whether or not to add -lc for building shared libraries.
18059 build_libtool_need_lc=$archive_cmds_need_lc
18060
18061 # Whether or not to disallow shared libs when runtime libs are static
18062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18063
18064 # Whether or not to optimize for fast installation.
18065 fast_install=$enable_fast_install
18066
18067 # The host system.
18068 host_alias=$host_alias
18069 host=$host
18070 host_os=$host_os
18071
18072 # The build system.
18073 build_alias=$build_alias
18074 build=$build
18075 build_os=$build_os
18076
18077 # An echo program that does not interpret backslashes.
18078 echo=$lt_echo
18079
18080 # The archiver.
18081 AR=$lt_AR
18082 AR_FLAGS=$lt_AR_FLAGS
18083
18084 # A C compiler.
18085 LTCC=$lt_LTCC
18086
18087 # LTCC compiler flags.
18088 LTCFLAGS=$lt_LTCFLAGS
18089
18090 # A language-specific compiler.
18091 CC=$lt_compiler
18092
18093 # Is the compiler the GNU C compiler?
18094 with_gcc=$GCC
18095
18096 # An ERE matcher.
18097 EGREP=$lt_EGREP
18098
18099 # The linker used to build libraries.
18100 LD=$lt_LD
18101
18102 # Whether we need hard or soft links.
18103 LN_S=$lt_LN_S
18104
18105 # A BSD-compatible nm program.
18106 NM=$lt_NM
18107
18108 # A symbol stripping program
18109 STRIP=$lt_STRIP
18110
18111 # Used to examine libraries when file_magic_cmd begins "file"
18112 MAGIC_CMD=$MAGIC_CMD
18113
18114 # Used on cygwin: DLL creation program.
18115 DLLTOOL="$DLLTOOL"
18116
18117 # Used on cygwin: object dumper.
18118 OBJDUMP="$OBJDUMP"
18119
18120 # Used on cygwin: assembler.
18121 AS="$AS"
18122
18123 # The name of the directory that contains temporary libtool files.
18124 objdir=$objdir
18125
18126 # How to create reloadable object files.
18127 reload_flag=$lt_reload_flag
18128 reload_cmds=$lt_reload_cmds
18129
18130 # How to pass a linker flag through the compiler.
18131 wl=$lt_lt_prog_compiler_wl
18132
18133 # Object file suffix (normally "o").
18134 objext="$ac_objext"
18135
18136 # Old archive suffix (normally "a").
18137 libext="$libext"
18138
18139 # Shared library suffix (normally ".so").
18140 shrext_cmds='$shrext_cmds'
18141
18142 # Executable file suffix (normally "").
18143 exeext="$exeext"
18144
18145 # Additional compiler flags for building library objects.
18146 pic_flag=$lt_lt_prog_compiler_pic
18147 pic_mode=$pic_mode
18148
18149 # What is the maximum length of a command?
18150 max_cmd_len=$lt_cv_sys_max_cmd_len
18151
18152 # Does compiler simultaneously support -c and -o options?
18153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18154
18155 # Must we lock files when doing compilation?
18156 need_locks=$lt_need_locks
18157
18158 # Do we need the lib prefix for modules?
18159 need_lib_prefix=$need_lib_prefix
18160
18161 # Do we need a version for libraries?
18162 need_version=$need_version
18163
18164 # Whether dlopen is supported.
18165 dlopen_support=$enable_dlopen
18166
18167 # Whether dlopen of programs is supported.
18168 dlopen_self=$enable_dlopen_self
18169
18170 # Whether dlopen of statically linked programs is supported.
18171 dlopen_self_static=$enable_dlopen_self_static
18172
18173 # Compiler flag to prevent dynamic linking.
18174 link_static_flag=$lt_lt_prog_compiler_static
18175
18176 # Compiler flag to turn off builtin functions.
18177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18178
18179 # Compiler flag to allow reflexive dlopens.
18180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18181
18182 # Compiler flag to generate shared objects directly from archives.
18183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18184
18185 # Compiler flag to generate thread-safe objects.
18186 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18187
18188 # Library versioning type.
18189 version_type=$version_type
18190
18191 # Format of library name prefix.
18192 libname_spec=$lt_libname_spec
18193
18194 # List of archive names.  First name is the real one, the rest are links.
18195 # The last name is the one that the linker finds with -lNAME.
18196 library_names_spec=$lt_library_names_spec
18197
18198 # The coded name of the library, if different from the real name.
18199 soname_spec=$lt_soname_spec
18200
18201 # Commands used to build and install an old-style archive.
18202 RANLIB=$lt_RANLIB
18203 old_archive_cmds=$lt_old_archive_cmds
18204 old_postinstall_cmds=$lt_old_postinstall_cmds
18205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18206
18207 # Create an old-style archive from a shared archive.
18208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18209
18210 # Create a temporary old-style archive to link instead of a shared archive.
18211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18212
18213 # Commands used to build and install a shared archive.
18214 archive_cmds=$lt_archive_cmds
18215 archive_expsym_cmds=$lt_archive_expsym_cmds
18216 postinstall_cmds=$lt_postinstall_cmds
18217 postuninstall_cmds=$lt_postuninstall_cmds
18218
18219 # Commands used to build a loadable module (assumed same as above if empty)
18220 module_cmds=$lt_module_cmds
18221 module_expsym_cmds=$lt_module_expsym_cmds
18222
18223 # Commands to strip libraries.
18224 old_striplib=$lt_old_striplib
18225 striplib=$lt_striplib
18226
18227 # Dependencies to place before the objects being linked to create a
18228 # shared library.
18229 predep_objects=$lt_predep_objects
18230
18231 # Dependencies to place after the objects being linked to create a
18232 # shared library.
18233 postdep_objects=$lt_postdep_objects
18234
18235 # Dependencies to place before the objects being linked to create a
18236 # shared library.
18237 predeps=$lt_predeps
18238
18239 # Dependencies to place after the objects being linked to create a
18240 # shared library.
18241 postdeps=$lt_postdeps
18242
18243 # The library search path used internally by the compiler when linking
18244 # a shared library.
18245 compiler_lib_search_path=$lt_compiler_lib_search_path
18246
18247 # Method to check whether dependent libraries are shared objects.
18248 deplibs_check_method=$lt_deplibs_check_method
18249
18250 # Command to use when deplibs_check_method == file_magic.
18251 file_magic_cmd=$lt_file_magic_cmd
18252
18253 # Flag that allows shared libraries with undefined symbols to be built.
18254 allow_undefined_flag=$lt_allow_undefined_flag
18255
18256 # Flag that forces no undefined symbols.
18257 no_undefined_flag=$lt_no_undefined_flag
18258
18259 # Commands used to finish a libtool library installation in a directory.
18260 finish_cmds=$lt_finish_cmds
18261
18262 # Same as above, but a single script fragment to be evaled but not shown.
18263 finish_eval=$lt_finish_eval
18264
18265 # Take the output of nm and produce a listing of raw symbols and C names.
18266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18267
18268 # Transform the output of nm in a proper C declaration
18269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18270
18271 # Transform the output of nm in a C name address pair
18272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18273
18274 # This is the shared library runtime path variable.
18275 runpath_var=$runpath_var
18276
18277 # This is the shared library path variable.
18278 shlibpath_var=$shlibpath_var
18279
18280 # Is shlibpath searched before the hard-coded library search path?
18281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18282
18283 # How to hardcode a shared library path into an executable.
18284 hardcode_action=$hardcode_action
18285
18286 # Whether we should hardcode library paths into libraries.
18287 hardcode_into_libs=$hardcode_into_libs
18288
18289 # Flag to hardcode \$libdir into a binary during linking.
18290 # This must work even if \$libdir does not exist.
18291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18292
18293 # If ld is used when linking, flag to hardcode \$libdir into
18294 # a binary during linking. This must work even if \$libdir does
18295 # not exist.
18296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18297
18298 # Whether we need a single -rpath flag with a separated argument.
18299 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18300
18301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18302 # resulting binary.
18303 hardcode_direct=$hardcode_direct
18304
18305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18306 # resulting binary.
18307 hardcode_minus_L=$hardcode_minus_L
18308
18309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18310 # the resulting binary.
18311 hardcode_shlibpath_var=$hardcode_shlibpath_var
18312
18313 # Set to yes if building a shared library automatically hardcodes DIR into the library
18314 # and all subsequent libraries and executables linked against it.
18315 hardcode_automatic=$hardcode_automatic
18316
18317 # Variables whose values should be saved in libtool wrapper scripts and
18318 # restored at relink time.
18319 variables_saved_for_relink="$variables_saved_for_relink"
18320
18321 # Whether libtool must link a program against all its dependency libraries.
18322 link_all_deplibs=$link_all_deplibs
18323
18324 # Compile-time system search path for libraries
18325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18326
18327 # Run-time system search path for libraries
18328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18329
18330 # Fix the shell variable \$srcfile for the compiler.
18331 fix_srcfile_path="$fix_srcfile_path"
18332
18333 # Set to yes if exported symbols are required.
18334 always_export_symbols=$always_export_symbols
18335
18336 # The commands to list exported symbols.
18337 export_symbols_cmds=$lt_export_symbols_cmds
18338
18339 # The commands to extract the exported symbol list from a shared archive.
18340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18341
18342 # Symbols that should not be listed in the preloaded symbols.
18343 exclude_expsyms=$lt_exclude_expsyms
18344
18345 # Symbols that must always be exported.
18346 include_expsyms=$lt_include_expsyms
18347
18348 # ### END LIBTOOL CONFIG
18349
18350 __EOF__
18351
18352
18353   case $host_os in
18354   aix3*)
18355     cat <<\EOF >> "$cfgfile"
18356
18357 # AIX sometimes has problems with the GCC collect2 program.  For some
18358 # reason, if we set the COLLECT_NAMES environment variable, the problems
18359 # vanish in a puff of smoke.
18360 if test "X${COLLECT_NAMES+set}" != Xset; then
18361   COLLECT_NAMES=
18362   export COLLECT_NAMES
18363 fi
18364 EOF
18365     ;;
18366   esac
18367
18368   # We use sed instead of cat because bash on DJGPP gets confused if
18369   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18370   # text mode, it properly converts lines to CR/LF.  This bash problem
18371   # is reportedly fixed, but why not run on old versions too?
18372   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18373
18374   mv -f "$cfgfile" "$ofile" || \
18375     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18376   chmod +x "$ofile"
18377
18378 else
18379   # If there is no Makefile yet, we rely on a make rule to execute
18380   # `config.status --recheck' to rerun these tests and create the
18381   # libtool script then.
18382   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18383   if test -f "$ltmain_in"; then
18384     test -f Makefile && make "$ltmain"
18385   fi
18386 fi
18387
18388
18389 ac_ext=c
18390 ac_cpp='$CPP $CPPFLAGS'
18391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394
18395 CC="$lt_save_CC"
18396
18397
18398 # Check whether --with-tags was given.
18399 if test "${with_tags+set}" = set; then
18400   withval=$with_tags; tagnames="$withval"
18401 fi
18402
18403
18404 if test -f "$ltmain" && test -n "$tagnames"; then
18405   if test ! -f "${ofile}"; then
18406     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18407 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18408   fi
18409
18410   if test -z "$LTCC"; then
18411     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18412     if test -z "$LTCC"; then
18413       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18414 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18415     else
18416       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18417 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18418     fi
18419   fi
18420   if test -z "$LTCFLAGS"; then
18421     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18422   fi
18423
18424   # Extract list of available tagged configurations in $ofile.
18425   # Note that this assumes the entire list is on one line.
18426   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18427
18428   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18429   for tagname in $tagnames; do
18430     IFS="$lt_save_ifs"
18431     # Check whether tagname contains only valid characters
18432     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18433     "") ;;
18434     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18435 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18436    { (exit 1); exit 1; }; }
18437         ;;
18438     esac
18439
18440     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18441     then
18442       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18443 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18444    { (exit 1); exit 1; }; }
18445     fi
18446
18447     # Update the list of available tags.
18448     if test -n "$tagname"; then
18449       echo appending configuration tag \"$tagname\" to $ofile
18450
18451       case $tagname in
18452       CXX)
18453         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18454             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18455             (test "X$CXX" != "Xg++"))) ; then
18456           ac_ext=cpp
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18461
18462
18463
18464
18465 archive_cmds_need_lc_CXX=no
18466 allow_undefined_flag_CXX=
18467 always_export_symbols_CXX=no
18468 archive_expsym_cmds_CXX=
18469 export_dynamic_flag_spec_CXX=
18470 hardcode_direct_CXX=no
18471 hardcode_libdir_flag_spec_CXX=
18472 hardcode_libdir_flag_spec_ld_CXX=
18473 hardcode_libdir_separator_CXX=
18474 hardcode_minus_L_CXX=no
18475 hardcode_shlibpath_var_CXX=unsupported
18476 hardcode_automatic_CXX=no
18477 module_cmds_CXX=
18478 module_expsym_cmds_CXX=
18479 link_all_deplibs_CXX=unknown
18480 old_archive_cmds_CXX=$old_archive_cmds
18481 no_undefined_flag_CXX=
18482 whole_archive_flag_spec_CXX=
18483 enable_shared_with_static_runtimes_CXX=no
18484
18485 # Dependencies to place before and after the object being linked:
18486 predep_objects_CXX=
18487 postdep_objects_CXX=
18488 predeps_CXX=
18489 postdeps_CXX=
18490 compiler_lib_search_path_CXX=
18491
18492 # Source file extension for C++ test sources.
18493 ac_ext=cpp
18494
18495 # Object file extension for compiled C++ test sources.
18496 objext=o
18497 objext_CXX=$objext
18498
18499 # Code to be used in simple compile tests
18500 lt_simple_compile_test_code="int some_variable = 0;\n"
18501
18502 # Code to be used in simple link tests
18503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18504
18505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18506
18507 # If no C compiler was specified, use CC.
18508 LTCC=${LTCC-"$CC"}
18509
18510 # If no C compiler flags were specified, use CFLAGS.
18511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18512
18513 # Allow CC to be a program name with arguments.
18514 compiler=$CC
18515
18516
18517 # save warnings/boilerplate of simple test code
18518 ac_outfile=conftest.$ac_objext
18519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18521 _lt_compiler_boilerplate=`cat conftest.err`
18522 $rm conftest*
18523
18524 ac_outfile=conftest.$ac_objext
18525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18527 _lt_linker_boilerplate=`cat conftest.err`
18528 $rm conftest*
18529
18530
18531 # Allow CC to be a program name with arguments.
18532 lt_save_CC=$CC
18533 lt_save_LD=$LD
18534 lt_save_GCC=$GCC
18535 GCC=$GXX
18536 lt_save_with_gnu_ld=$with_gnu_ld
18537 lt_save_path_LD=$lt_cv_path_LD
18538 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18539   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18540 else
18541   $as_unset lt_cv_prog_gnu_ld
18542 fi
18543 if test -n "${lt_cv_path_LDCXX+set}"; then
18544   lt_cv_path_LD=$lt_cv_path_LDCXX
18545 else
18546   $as_unset lt_cv_path_LD
18547 fi
18548 test -z "${LDCXX+set}" || LD=$LDCXX
18549 CC=${CXX-"c++"}
18550 compiler=$CC
18551 compiler_CXX=$CC
18552 for cc_temp in $compiler""; do
18553   case $cc_temp in
18554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18556     \-*) ;;
18557     *) break;;
18558   esac
18559 done
18560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18561
18562
18563 # We don't want -fno-exception wen compiling C++ code, so set the
18564 # no_builtin_flag separately
18565 if test "$GXX" = yes; then
18566   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18567 else
18568   lt_prog_compiler_no_builtin_flag_CXX=
18569 fi
18570
18571 if test "$GXX" = yes; then
18572   # Set up default GNU C++ configuration
18573
18574
18575 # Check whether --with-gnu-ld was given.
18576 if test "${with_gnu_ld+set}" = set; then
18577   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18578 else
18579   with_gnu_ld=no
18580 fi
18581
18582 ac_prog=ld
18583 if test "$GCC" = yes; then
18584   # Check if gcc -print-prog-name=ld gives a path.
18585   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18586 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18587   case $host in
18588   *-*-mingw*)
18589     # gcc leaves a trailing carriage return which upsets mingw
18590     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18591   *)
18592     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18593   esac
18594   case $ac_prog in
18595     # Accept absolute paths.
18596     [\\/]* | ?:[\\/]*)
18597       re_direlt='/[^/][^/]*/\.\./'
18598       # Canonicalize the pathname of ld
18599       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18600       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18601         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18602       done
18603       test -z "$LD" && LD="$ac_prog"
18604       ;;
18605   "")
18606     # If it fails, then pretend we aren't using GCC.
18607     ac_prog=ld
18608     ;;
18609   *)
18610     # If it is relative, then search for the first ld in PATH.
18611     with_gnu_ld=unknown
18612     ;;
18613   esac
18614 elif test "$with_gnu_ld" = yes; then
18615   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18616 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18617 else
18618   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18619 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18620 fi
18621 if test "${lt_cv_path_LD+set}" = set; then
18622   echo $ECHO_N "(cached) $ECHO_C" >&6
18623 else
18624   if test -z "$LD"; then
18625   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18626   for ac_dir in $PATH; do
18627     IFS="$lt_save_ifs"
18628     test -z "$ac_dir" && ac_dir=.
18629     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18630       lt_cv_path_LD="$ac_dir/$ac_prog"
18631       # Check to see if the program is GNU ld.  I'd rather use --version,
18632       # but apparently some variants of GNU ld only accept -v.
18633       # Break only if it was the GNU/non-GNU ld that we prefer.
18634       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18635       *GNU* | *'with BFD'*)
18636         test "$with_gnu_ld" != no && break
18637         ;;
18638       *)
18639         test "$with_gnu_ld" != yes && break
18640         ;;
18641       esac
18642     fi
18643   done
18644   IFS="$lt_save_ifs"
18645 else
18646   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18647 fi
18648 fi
18649
18650 LD="$lt_cv_path_LD"
18651 if test -n "$LD"; then
18652   { echo "$as_me:$LINENO: result: $LD" >&5
18653 echo "${ECHO_T}$LD" >&6; }
18654 else
18655   { echo "$as_me:$LINENO: result: no" >&5
18656 echo "${ECHO_T}no" >&6; }
18657 fi
18658 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18660    { (exit 1); exit 1; }; }
18661 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18664   echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18667 case `$LD -v 2>&1 </dev/null` in
18668 *GNU* | *'with BFD'*)
18669   lt_cv_prog_gnu_ld=yes
18670   ;;
18671 *)
18672   lt_cv_prog_gnu_ld=no
18673   ;;
18674 esac
18675 fi
18676 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18677 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18678 with_gnu_ld=$lt_cv_prog_gnu_ld
18679
18680
18681
18682   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18683   # archiving commands below assume that GNU ld is being used.
18684   if test "$with_gnu_ld" = yes; then
18685     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18686     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'
18687
18688     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18689     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18690
18691     # If archive_cmds runs LD, not CC, wlarc should be empty
18692     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18693     #     investigate it a little bit more. (MM)
18694     wlarc='${wl}'
18695
18696     # ancient GNU ld didn't support --whole-archive et. al.
18697     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18698         grep 'no-whole-archive' > /dev/null; then
18699       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18700     else
18701       whole_archive_flag_spec_CXX=
18702     fi
18703   else
18704     with_gnu_ld=no
18705     wlarc=
18706
18707     # A generic and very simple default shared library creation
18708     # command for GNU C++ for the case where it uses the native
18709     # linker, instead of GNU ld.  If possible, this setting should
18710     # overridden to take advantage of the native linker features on
18711     # the platform it is being used on.
18712     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18713   fi
18714
18715   # Commands to make compiler produce verbose output that lists
18716   # what "hidden" libraries, object files and flags are used when
18717   # linking a shared library.
18718   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18719
18720 else
18721   GXX=no
18722   with_gnu_ld=no
18723   wlarc=
18724 fi
18725
18726 # PORTME: fill in a description of your system's C++ link characteristics
18727 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18729 ld_shlibs_CXX=yes
18730 case $host_os in
18731   aix3*)
18732     # FIXME: insert proper C++ library support
18733     ld_shlibs_CXX=no
18734     ;;
18735   aix4* | aix5*)
18736     if test "$host_cpu" = ia64; then
18737       # On IA64, the linker does run time linking by default, so we don't
18738       # have to do anything special.
18739       aix_use_runtimelinking=no
18740       exp_sym_flag='-Bexport'
18741       no_entry_flag=""
18742     else
18743       aix_use_runtimelinking=no
18744
18745       # Test if we are trying to use run time linking or normal
18746       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18747       # need to do runtime linking.
18748       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18749         for ld_flag in $LDFLAGS; do
18750           case $ld_flag in
18751           *-brtl*)
18752             aix_use_runtimelinking=yes
18753             break
18754             ;;
18755           esac
18756         done
18757         ;;
18758       esac
18759
18760       exp_sym_flag='-bexport'
18761       no_entry_flag='-bnoentry'
18762     fi
18763
18764     # When large executables or shared objects are built, AIX ld can
18765     # have problems creating the table of contents.  If linking a library
18766     # or program results in "error TOC overflow" add -mminimal-toc to
18767     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18768     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18769
18770     archive_cmds_CXX=''
18771     hardcode_direct_CXX=yes
18772     hardcode_libdir_separator_CXX=':'
18773     link_all_deplibs_CXX=yes
18774
18775     if test "$GXX" = yes; then
18776       case $host_os in aix4.[012]|aix4.[012].*)
18777       # We only want to do this on AIX 4.2 and lower, the check
18778       # below for broken collect2 doesn't work under 4.3+
18779         collect2name=`${CC} -print-prog-name=collect2`
18780         if test -f "$collect2name" && \
18781            strings "$collect2name" | grep resolve_lib_name >/dev/null
18782         then
18783           # We have reworked collect2
18784           hardcode_direct_CXX=yes
18785         else
18786           # We have old collect2
18787           hardcode_direct_CXX=unsupported
18788           # It fails to find uninstalled libraries when the uninstalled
18789           # path is not listed in the libpath.  Setting hardcode_minus_L
18790           # to unsupported forces relinking
18791           hardcode_minus_L_CXX=yes
18792           hardcode_libdir_flag_spec_CXX='-L$libdir'
18793           hardcode_libdir_separator_CXX=
18794         fi
18795         ;;
18796       esac
18797       shared_flag='-shared'
18798       if test "$aix_use_runtimelinking" = yes; then
18799         shared_flag="$shared_flag "'${wl}-G'
18800       fi
18801     else
18802       # not using gcc
18803       if test "$host_cpu" = ia64; then
18804         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18805         # chokes on -Wl,-G. The following line is correct:
18806         shared_flag='-G'
18807       else
18808         if test "$aix_use_runtimelinking" = yes; then
18809           shared_flag='${wl}-G'
18810         else
18811           shared_flag='${wl}-bM:SRE'
18812         fi
18813       fi
18814     fi
18815
18816     # It seems that -bexpall does not export symbols beginning with
18817     # underscore (_), so it is better to generate a list of symbols to export.
18818     always_export_symbols_CXX=yes
18819     if test "$aix_use_runtimelinking" = yes; then
18820       # Warning - without using the other runtime loading flags (-brtl),
18821       # -berok will link without error, but may produce a broken library.
18822       allow_undefined_flag_CXX='-berok'
18823       # Determine the default libpath from the value encoded in an empty executable.
18824       cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830
18831 int
18832 main ()
18833 {
18834
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } &&
18853          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18854   { (case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_try") 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; } &&
18863          { ac_try='test -s conftest$ac_exeext'
18864   { (case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_try") 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; }; then
18873
18874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18875 }'`
18876 # Check for a 64-bit object if we didn't find anything.
18877 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; }
18878 }'`; fi
18879 else
18880   echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883
18884 fi
18885
18886 rm -f core conftest.err conftest.$ac_objext \
18887       conftest$ac_exeext conftest.$ac_ext
18888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18889
18890       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18891
18892       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"
18893      else
18894       if test "$host_cpu" = ia64; then
18895         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18896         allow_undefined_flag_CXX="-z nodefs"
18897         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"
18898       else
18899         # Determine the default libpath from the value encoded in an empty executable.
18900         cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906
18907 int
18908 main ()
18909 {
18910
18911   ;
18912   return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_link") 2>conftest.er1
18923   ac_status=$?
18924   grep -v '^ *+' conftest.er1 >conftest.err
18925   rm -f conftest.er1
18926   cat conftest.err >&5
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18930   { (case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; } &&
18939          { ac_try='test -s conftest$ac_exeext'
18940   { (case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_try") 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; }; then
18949
18950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18951 }'`
18952 # Check for a 64-bit object if we didn't find anything.
18953 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18954 }'`; fi
18955 else
18956   echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959
18960 fi
18961
18962 rm -f core conftest.err conftest.$ac_objext \
18963       conftest$ac_exeext conftest.$ac_ext
18964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18965
18966         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18967         # Warning - without using the other run time loading flags,
18968         # -berok will link without error, but may produce a broken library.
18969         no_undefined_flag_CXX=' ${wl}-bernotok'
18970         allow_undefined_flag_CXX=' ${wl}-berok'
18971         # Exported symbols can be pulled into shared objects from archives
18972         whole_archive_flag_spec_CXX='$convenience'
18973         archive_cmds_need_lc_CXX=yes
18974         # This is similar to how AIX traditionally builds its shared libraries.
18975         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'
18976       fi
18977     fi
18978     ;;
18979
18980   beos*)
18981     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18982       allow_undefined_flag_CXX=unsupported
18983       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18984       # support --undefined.  This deserves some investigation.  FIXME
18985       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18986     else
18987       ld_shlibs_CXX=no
18988     fi
18989     ;;
18990
18991   chorus*)
18992     case $cc_basename in
18993       *)
18994         # FIXME: insert proper C++ library support
18995         ld_shlibs_CXX=no
18996         ;;
18997     esac
18998     ;;
18999
19000   cygwin* | mingw* | pw32*)
19001     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19002     # as there is no search path for DLLs.
19003     hardcode_libdir_flag_spec_CXX='-L$libdir'
19004     allow_undefined_flag_CXX=unsupported
19005     always_export_symbols_CXX=no
19006     enable_shared_with_static_runtimes_CXX=yes
19007
19008     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19009       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'
19010       # If the export-symbols file already is a .def file (1st line
19011       # is EXPORTS), use it as is; otherwise, prepend...
19012       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19013         cp $export_symbols $output_objdir/$soname.def;
19014       else
19015         echo EXPORTS > $output_objdir/$soname.def;
19016         cat $export_symbols >> $output_objdir/$soname.def;
19017       fi~
19018       $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'
19019     else
19020       ld_shlibs_CXX=no
19021     fi
19022   ;;
19023       darwin* | rhapsody*)
19024         case $host_os in
19025         rhapsody* | darwin1.[012])
19026          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19027          ;;
19028        *) # Darwin 1.3 on
19029          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19030            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19031          else
19032            case ${MACOSX_DEPLOYMENT_TARGET} in
19033              10.[012])
19034                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19035                ;;
19036              10.*)
19037                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19038                ;;
19039            esac
19040          fi
19041          ;;
19042         esac
19043       archive_cmds_need_lc_CXX=no
19044       hardcode_direct_CXX=no
19045       hardcode_automatic_CXX=yes
19046       hardcode_shlibpath_var_CXX=unsupported
19047       whole_archive_flag_spec_CXX=''
19048       link_all_deplibs_CXX=yes
19049
19050     if test "$GXX" = yes ; then
19051       lt_int_apple_cc_single_mod=no
19052       output_verbose_link_cmd='echo'
19053       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19054        lt_int_apple_cc_single_mod=yes
19055       fi
19056       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19057        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19058       else
19059           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'
19060         fi
19061         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19062         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19063           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19064             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}'
19065           else
19066             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}'
19067           fi
19068             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}'
19069       else
19070       case $cc_basename in
19071         xlc*)
19072          output_verbose_link_cmd='echo'
19073           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'
19074           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19075           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19076           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}'
19077           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}'
19078           ;;
19079        *)
19080          ld_shlibs_CXX=no
19081           ;;
19082       esac
19083       fi
19084         ;;
19085
19086   dgux*)
19087     case $cc_basename in
19088       ec++*)
19089         # FIXME: insert proper C++ library support
19090         ld_shlibs_CXX=no
19091         ;;
19092       ghcx*)
19093         # Green Hills C++ Compiler
19094         # FIXME: insert proper C++ library support
19095         ld_shlibs_CXX=no
19096         ;;
19097       *)
19098         # FIXME: insert proper C++ library support
19099         ld_shlibs_CXX=no
19100         ;;
19101     esac
19102     ;;
19103   freebsd[12]*)
19104     # C++ shared libraries reported to be fairly broken before switch to ELF
19105     ld_shlibs_CXX=no
19106     ;;
19107   freebsd-elf*)
19108     archive_cmds_need_lc_CXX=no
19109     ;;
19110   freebsd* | kfreebsd*-gnu | dragonfly*)
19111     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19112     # conventions
19113     ld_shlibs_CXX=yes
19114     ;;
19115   gnu*)
19116     ;;
19117   hpux9*)
19118     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19119     hardcode_libdir_separator_CXX=:
19120     export_dynamic_flag_spec_CXX='${wl}-E'
19121     hardcode_direct_CXX=yes
19122     hardcode_minus_L_CXX=yes # Not in the search PATH,
19123                                 # but as the default
19124                                 # location of the library.
19125
19126     case $cc_basename in
19127     CC*)
19128       # FIXME: insert proper C++ library support
19129       ld_shlibs_CXX=no
19130       ;;
19131     aCC*)
19132       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'
19133       # Commands to make compiler produce verbose output that lists
19134       # what "hidden" libraries, object files and flags are used when
19135       # linking a shared library.
19136       #
19137       # There doesn't appear to be a way to prevent this compiler from
19138       # explicitly linking system object files so we need to strip them
19139       # from the output so that they don't get included in the library
19140       # dependencies.
19141       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'
19142       ;;
19143     *)
19144       if test "$GXX" = yes; then
19145         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'
19146       else
19147         # FIXME: insert proper C++ library support
19148         ld_shlibs_CXX=no
19149       fi
19150       ;;
19151     esac
19152     ;;
19153   hpux10*|hpux11*)
19154     if test $with_gnu_ld = no; then
19155       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19156       hardcode_libdir_separator_CXX=:
19157
19158       case $host_cpu in
19159       hppa*64*|ia64*)
19160         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19161         ;;
19162       *)
19163         export_dynamic_flag_spec_CXX='${wl}-E'
19164         ;;
19165       esac
19166     fi
19167     case $host_cpu in
19168     hppa*64*|ia64*)
19169       hardcode_direct_CXX=no
19170       hardcode_shlibpath_var_CXX=no
19171       ;;
19172     *)
19173       hardcode_direct_CXX=yes
19174       hardcode_minus_L_CXX=yes # Not in the search PATH,
19175                                               # but as the default
19176                                               # location of the library.
19177       ;;
19178     esac
19179
19180     case $cc_basename in
19181       CC*)
19182         # FIXME: insert proper C++ library support
19183         ld_shlibs_CXX=no
19184         ;;
19185       aCC*)
19186         case $host_cpu in
19187         hppa*64*)
19188           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19189           ;;
19190         ia64*)
19191           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19192           ;;
19193         *)
19194           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19195           ;;
19196         esac
19197         # Commands to make compiler produce verbose output that lists
19198         # what "hidden" libraries, object files and flags are used when
19199         # linking a shared library.
19200         #
19201         # There doesn't appear to be a way to prevent this compiler from
19202         # explicitly linking system object files so we need to strip them
19203         # from the output so that they don't get included in the library
19204         # dependencies.
19205         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'
19206         ;;
19207       *)
19208         if test "$GXX" = yes; then
19209           if test $with_gnu_ld = no; then
19210             case $host_cpu in
19211             hppa*64*)
19212               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213               ;;
19214             ia64*)
19215               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19216               ;;
19217             *)
19218               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'
19219               ;;
19220             esac
19221           fi
19222         else
19223           # FIXME: insert proper C++ library support
19224           ld_shlibs_CXX=no
19225         fi
19226         ;;
19227     esac
19228     ;;
19229   interix3*)
19230     hardcode_direct_CXX=no
19231     hardcode_shlibpath_var_CXX=no
19232     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19233     export_dynamic_flag_spec_CXX='${wl}-E'
19234     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19235     # Instead, shared libraries are loaded at an image base (0x10000000 by
19236     # default) and relocated if they conflict, which is a slow very memory
19237     # consuming and fragmenting process.  To avoid this, we pick a random,
19238     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19239     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19240     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'
19241     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'
19242     ;;
19243   irix5* | irix6*)
19244     case $cc_basename in
19245       CC*)
19246         # SGI C++
19247         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'
19248
19249         # Archives containing C++ object files must be created using
19250         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19251         # necessary to make sure instantiated templates are included
19252         # in the archive.
19253         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19254         ;;
19255       *)
19256         if test "$GXX" = yes; then
19257           if test "$with_gnu_ld" = no; then
19258             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'
19259           else
19260             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'
19261           fi
19262         fi
19263         link_all_deplibs_CXX=yes
19264         ;;
19265     esac
19266     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19267     hardcode_libdir_separator_CXX=:
19268     ;;
19269   linux*)
19270     case $cc_basename in
19271       KCC*)
19272         # Kuck and Associates, Inc. (KAI) C++ Compiler
19273
19274         # KCC will only create a shared library if the output file
19275         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19276         # to its proper name (with version) after linking.
19277         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'
19278         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'
19279         # Commands to make compiler produce verbose output that lists
19280         # what "hidden" libraries, object files and flags are used when
19281         # linking a shared library.
19282         #
19283         # There doesn't appear to be a way to prevent this compiler from
19284         # explicitly linking system object files so we need to strip them
19285         # from the output so that they don't get included in the library
19286         # dependencies.
19287         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'
19288
19289         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19290         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19291
19292         # Archives containing C++ object files must be created using
19293         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19294         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19295         ;;
19296       icpc*)
19297         # Intel C++
19298         with_gnu_ld=yes
19299         # version 8.0 and above of icpc choke on multiply defined symbols
19300         # if we add $predep_objects and $postdep_objects, however 7.1 and
19301         # earlier do not add the objects themselves.
19302         case `$CC -V 2>&1` in
19303         *"Version 7."*)
19304           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305           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'
19306           ;;
19307         *)  # Version 8.0 or newer
19308           tmp_idyn=
19309           case $host_cpu in
19310             ia64*) tmp_idyn=' -i_dynamic';;
19311           esac
19312           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19313           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'
19314           ;;
19315         esac
19316         archive_cmds_need_lc_CXX=no
19317         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19318         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19319         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19320         ;;
19321       pgCC*)
19322         # Portland Group C++ compiler
19323         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19324         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'
19325
19326         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19327         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19328         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'
19329         ;;
19330       cxx*)
19331         # Compaq C++
19332         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333         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'
19334
19335         runpath_var=LD_RUN_PATH
19336         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19337         hardcode_libdir_separator_CXX=:
19338
19339         # Commands to make compiler produce verbose output that lists
19340         # what "hidden" libraries, object files and flags are used when
19341         # linking a shared library.
19342         #
19343         # There doesn't appear to be a way to prevent this compiler from
19344         # explicitly linking system object files so we need to strip them
19345         # from the output so that they don't get included in the library
19346         # dependencies.
19347         output_verbose_link_cmd='templist=`$CC -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'
19348         ;;
19349     esac
19350     ;;
19351   lynxos*)
19352     # FIXME: insert proper C++ library support
19353     ld_shlibs_CXX=no
19354     ;;
19355   m88k*)
19356     # FIXME: insert proper C++ library support
19357     ld_shlibs_CXX=no
19358     ;;
19359   mvs*)
19360     case $cc_basename in
19361       cxx*)
19362         # FIXME: insert proper C++ library support
19363         ld_shlibs_CXX=no
19364         ;;
19365       *)
19366         # FIXME: insert proper C++ library support
19367         ld_shlibs_CXX=no
19368         ;;
19369     esac
19370     ;;
19371   netbsd*)
19372     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19373       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19374       wlarc=
19375       hardcode_libdir_flag_spec_CXX='-R$libdir'
19376       hardcode_direct_CXX=yes
19377       hardcode_shlibpath_var_CXX=no
19378     fi
19379     # Workaround some broken pre-1.5 toolchains
19380     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19381     ;;
19382   openbsd2*)
19383     # C++ shared libraries are fairly broken
19384     ld_shlibs_CXX=no
19385     ;;
19386   openbsd*)
19387     hardcode_direct_CXX=yes
19388     hardcode_shlibpath_var_CXX=no
19389     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19390     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19391     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19392       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19393       export_dynamic_flag_spec_CXX='${wl}-E'
19394       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19395     fi
19396     output_verbose_link_cmd='echo'
19397     ;;
19398   osf3*)
19399     case $cc_basename in
19400       KCC*)
19401         # Kuck and Associates, Inc. (KAI) C++ Compiler
19402
19403         # KCC will only create a shared library if the output file
19404         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19405         # to its proper name (with version) after linking.
19406         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'
19407
19408         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409         hardcode_libdir_separator_CXX=:
19410
19411         # Archives containing C++ object files must be created using
19412         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19413         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19414
19415         ;;
19416       RCC*)
19417         # Rational C++ 2.4.1
19418         # FIXME: insert proper C++ library support
19419         ld_shlibs_CXX=no
19420         ;;
19421       cxx*)
19422         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19423         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'
19424
19425         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19426         hardcode_libdir_separator_CXX=:
19427
19428         # Commands to make compiler produce verbose output that lists
19429         # what "hidden" libraries, object files and flags are used when
19430         # linking a shared library.
19431         #
19432         # There doesn't appear to be a way to prevent this compiler from
19433         # explicitly linking system object files so we need to strip them
19434         # from the output so that they don't get included in the library
19435         # dependencies.
19436         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'
19437         ;;
19438       *)
19439         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19441           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'
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           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19450
19451         else
19452           # FIXME: insert proper C++ library support
19453           ld_shlibs_CXX=no
19454         fi
19455         ;;
19456     esac
19457     ;;
19458   osf4* | osf5*)
19459     case $cc_basename in
19460       KCC*)
19461         # Kuck and Associates, Inc. (KAI) C++ Compiler
19462
19463         # KCC will only create a shared library if the output file
19464         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19465         # to its proper name (with version) after linking.
19466         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19467
19468         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19469         hardcode_libdir_separator_CXX=:
19470
19471         # Archives containing C++ object files must be created using
19472         # the KAI C++ compiler.
19473         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19474         ;;
19475       RCC*)
19476         # Rational C++ 2.4.1
19477         # FIXME: insert proper C++ library support
19478         ld_shlibs_CXX=no
19479         ;;
19480       cxx*)
19481         allow_undefined_flag_CXX=' -expect_unresolved \*'
19482         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'
19483         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19484           echo "-hidden">> $lib.exp~
19485           $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~
19486           $rm $lib.exp'
19487
19488         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19489         hardcode_libdir_separator_CXX=:
19490
19491         # Commands to make compiler produce verbose output that lists
19492         # what "hidden" libraries, object files and flags are used when
19493         # linking a shared library.
19494         #
19495         # There doesn't appear to be a way to prevent this compiler from
19496         # explicitly linking system object files so we need to strip them
19497         # from the output so that they don't get included in the library
19498         # dependencies.
19499         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'
19500         ;;
19501       *)
19502         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19503           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19504          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'
19505
19506           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19513
19514         else
19515           # FIXME: insert proper C++ library support
19516           ld_shlibs_CXX=no
19517         fi
19518         ;;
19519     esac
19520     ;;
19521   psos*)
19522     # FIXME: insert proper C++ library support
19523     ld_shlibs_CXX=no
19524     ;;
19525   sunos4*)
19526     case $cc_basename in
19527       CC*)
19528         # Sun C++ 4.x
19529         # FIXME: insert proper C++ library support
19530         ld_shlibs_CXX=no
19531         ;;
19532       lcc*)
19533         # Lucid
19534         # FIXME: insert proper C++ library support
19535         ld_shlibs_CXX=no
19536         ;;
19537       *)
19538         # FIXME: insert proper C++ library support
19539         ld_shlibs_CXX=no
19540         ;;
19541     esac
19542     ;;
19543   solaris*)
19544     case $cc_basename in
19545       CC*)
19546         # Sun C++ 4.2, 5.x and Centerline C++
19547         archive_cmds_need_lc_CXX=yes
19548         no_undefined_flag_CXX=' -zdefs'
19549         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19550         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19551         $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'
19552
19553         hardcode_libdir_flag_spec_CXX='-R$libdir'
19554         hardcode_shlibpath_var_CXX=no
19555         case $host_os in
19556           solaris2.[0-5] | solaris2.[0-5].*) ;;
19557           *)
19558             # The C++ compiler is used as linker so we must use $wl
19559             # flag to pass the commands to the underlying system
19560             # linker. We must also pass each convience library through
19561             # to the system linker between allextract/defaultextract.
19562             # The C++ compiler will combine linker options so we
19563             # cannot just pass the convience library names through
19564             # without $wl.
19565             # Supported since Solaris 2.6 (maybe 2.5.1?)
19566             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'
19567             ;;
19568         esac
19569         link_all_deplibs_CXX=yes
19570
19571         output_verbose_link_cmd='echo'
19572
19573         # Archives containing C++ object files must be created using
19574         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19575         # necessary to make sure instantiated templates are included
19576         # in the archive.
19577         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19578         ;;
19579       gcx*)
19580         # Green Hills C++ Compiler
19581         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19582
19583         # The C++ compiler must be used to create the archive.
19584         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19585         ;;
19586       *)
19587         # GNU C++ compiler with Solaris linker
19588         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19589           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19590           if $CC --version | grep -v '^2\.7' > /dev/null; then
19591             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19592             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19593                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19594
19595             # Commands to make compiler produce verbose output that lists
19596             # what "hidden" libraries, object files and flags are used when
19597             # linking a shared library.
19598             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19599           else
19600             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19601             # platform.
19602             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19603             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19604                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19605
19606             # Commands to make compiler produce verbose output that lists
19607             # what "hidden" libraries, object files and flags are used when
19608             # linking a shared library.
19609             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19610           fi
19611
19612           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19613         fi
19614         ;;
19615     esac
19616     ;;
19617   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19618     no_undefined_flag_CXX='${wl}-z,text'
19619     archive_cmds_need_lc_CXX=no
19620     hardcode_shlibpath_var_CXX=no
19621     runpath_var='LD_RUN_PATH'
19622
19623     case $cc_basename in
19624       CC*)
19625         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19627         ;;
19628       *)
19629         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19631         ;;
19632     esac
19633     ;;
19634   sysv5* | sco3.2v5* | sco5v6*)
19635     # Note: We can NOT use -z defs as we might desire, because we do not
19636     # link with -lc, and that would cause any symbols used from libc to
19637     # always be unresolved, which means just about no library would
19638     # ever link correctly.  If we're not using GNU ld we use -z text
19639     # though, which does catch some bad symbols but isn't as heavy-handed
19640     # as -z defs.
19641     # For security reasons, it is highly recommended that you always
19642     # use absolute paths for naming shared libraries, and exclude the
19643     # DT_RUNPATH tag from executables and libraries.  But doing so
19644     # requires that you compile everything twice, which is a pain.
19645     # So that behaviour is only enabled if SCOABSPATH is set to a
19646     # non-empty value in the environment.  Most likely only useful for
19647     # creating official distributions of packages.
19648     # This is a hack until libtool officially supports absolute path
19649     # names for shared libraries.
19650     no_undefined_flag_CXX='${wl}-z,text'
19651     allow_undefined_flag_CXX='${wl}-z,nodefs'
19652     archive_cmds_need_lc_CXX=no
19653     hardcode_shlibpath_var_CXX=no
19654     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19655     hardcode_libdir_separator_CXX=':'
19656     link_all_deplibs_CXX=yes
19657     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19658     runpath_var='LD_RUN_PATH'
19659
19660     case $cc_basename in
19661       CC*)
19662         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19664         ;;
19665       *)
19666         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19667         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19668         ;;
19669     esac
19670     ;;
19671   tandem*)
19672     case $cc_basename in
19673       NCC*)
19674         # NonStop-UX NCC 3.20
19675         # FIXME: insert proper C++ library support
19676         ld_shlibs_CXX=no
19677         ;;
19678       *)
19679         # FIXME: insert proper C++ library support
19680         ld_shlibs_CXX=no
19681         ;;
19682     esac
19683     ;;
19684   vxworks*)
19685     # FIXME: insert proper C++ library support
19686     ld_shlibs_CXX=no
19687     ;;
19688   *)
19689     # FIXME: insert proper C++ library support
19690     ld_shlibs_CXX=no
19691     ;;
19692 esac
19693 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19694 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19695 test "$ld_shlibs_CXX" = no && can_build_shared=no
19696
19697 GCC_CXX="$GXX"
19698 LD_CXX="$LD"
19699
19700
19701 cat > conftest.$ac_ext <<EOF
19702 class Foo
19703 {
19704 public:
19705   Foo (void) { a = 0; }
19706 private:
19707   int a;
19708 };
19709 EOF
19710
19711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19712   (eval $ac_compile) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; then
19716   # Parse the compiler output and extract the necessary
19717   # objects, libraries and library flags.
19718
19719   # Sentinel used to keep track of whether or not we are before
19720   # the conftest object file.
19721   pre_test_object_deps_done=no
19722
19723   # The `*' in the case matches for architectures that use `case' in
19724   # $output_verbose_cmd can trigger glob expansion during the loop
19725   # eval without this substitution.
19726   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19727
19728   for p in `eval $output_verbose_link_cmd`; do
19729     case $p in
19730
19731     -L* | -R* | -l*)
19732        # Some compilers place space between "-{L,R}" and the path.
19733        # Remove the space.
19734        if test $p = "-L" \
19735           || test $p = "-R"; then
19736          prev=$p
19737          continue
19738        else
19739          prev=
19740        fi
19741
19742        if test "$pre_test_object_deps_done" = no; then
19743          case $p in
19744          -L* | -R*)
19745            # Internal compiler library paths should come after those
19746            # provided the user.  The postdeps already come after the
19747            # user supplied libs so there is no need to process them.
19748            if test -z "$compiler_lib_search_path_CXX"; then
19749              compiler_lib_search_path_CXX="${prev}${p}"
19750            else
19751              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19752            fi
19753            ;;
19754          # The "-l" case would never come before the object being
19755          # linked, so don't bother handling this case.
19756          esac
19757        else
19758          if test -z "$postdeps_CXX"; then
19759            postdeps_CXX="${prev}${p}"
19760          else
19761            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19762          fi
19763        fi
19764        ;;
19765
19766     *.$objext)
19767        # This assumes that the test object file only shows up
19768        # once in the compiler output.
19769        if test "$p" = "conftest.$objext"; then
19770          pre_test_object_deps_done=yes
19771          continue
19772        fi
19773
19774        if test "$pre_test_object_deps_done" = no; then
19775          if test -z "$predep_objects_CXX"; then
19776            predep_objects_CXX="$p"
19777          else
19778            predep_objects_CXX="$predep_objects_CXX $p"
19779          fi
19780        else
19781          if test -z "$postdep_objects_CXX"; then
19782            postdep_objects_CXX="$p"
19783          else
19784            postdep_objects_CXX="$postdep_objects_CXX $p"
19785          fi
19786        fi
19787        ;;
19788
19789     *) ;; # Ignore the rest.
19790
19791     esac
19792   done
19793
19794   # Clean up.
19795   rm -f a.out a.exe
19796 else
19797   echo "libtool.m4: error: problem compiling CXX test program"
19798 fi
19799
19800 $rm -f confest.$objext
19801
19802 # PORTME: override above test on systems where it is broken
19803 case $host_os in
19804 interix3*)
19805   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19806   # hack all around it, let's just trust "g++" to DTRT.
19807   predep_objects_CXX=
19808   postdep_objects_CXX=
19809   postdeps_CXX=
19810   ;;
19811
19812 solaris*)
19813   case $cc_basename in
19814   CC*)
19815     # Adding this requires a known-good setup of shared libraries for
19816     # Sun compiler versions before 5.6, else PIC objects from an old
19817     # archive will be linked into the output, leading to subtle bugs.
19818     postdeps_CXX='-lCstd -lCrun'
19819     ;;
19820   esac
19821   ;;
19822 esac
19823
19824
19825 case " $postdeps_CXX " in
19826 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19827 esac
19828
19829 lt_prog_compiler_wl_CXX=
19830 lt_prog_compiler_pic_CXX=
19831 lt_prog_compiler_static_CXX=
19832
19833 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19835
19836   # C++ specific cases for pic, static, wl, etc.
19837   if test "$GXX" = yes; then
19838     lt_prog_compiler_wl_CXX='-Wl,'
19839     lt_prog_compiler_static_CXX='-static'
19840
19841     case $host_os in
19842     aix*)
19843       # All AIX code is PIC.
19844       if test "$host_cpu" = ia64; then
19845         # AIX 5 now supports IA64 processor
19846         lt_prog_compiler_static_CXX='-Bstatic'
19847       fi
19848       ;;
19849     amigaos*)
19850       # FIXME: we need at least 68020 code to build shared libraries, but
19851       # adding the `-m68020' flag to GCC prevents building anything better,
19852       # like `-m68040'.
19853       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19854       ;;
19855     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19856       # PIC is the default for these OSes.
19857       ;;
19858     mingw* | os2* | pw32*)
19859       # This hack is so that the source file can tell whether it is being
19860       # built for inclusion in a dll (and should export symbols for example).
19861       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19862       ;;
19863     darwin* | rhapsody*)
19864       # PIC is the default on this platform
19865       # Common symbols not allowed in MH_DYLIB files
19866       lt_prog_compiler_pic_CXX='-fno-common'
19867       ;;
19868     *djgpp*)
19869       # DJGPP does not support shared libraries at all
19870       lt_prog_compiler_pic_CXX=
19871       ;;
19872     interix3*)
19873       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19874       # Instead, we relocate shared libraries at runtime.
19875       ;;
19876     sysv4*MP*)
19877       if test -d /usr/nec; then
19878         lt_prog_compiler_pic_CXX=-Kconform_pic
19879       fi
19880       ;;
19881     hpux*)
19882       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19883       # not for PA HP-UX.
19884       case $host_cpu in
19885       hppa*64*|ia64*)
19886         ;;
19887       *)
19888         lt_prog_compiler_pic_CXX='-fPIC'
19889         ;;
19890       esac
19891       ;;
19892     *)
19893       lt_prog_compiler_pic_CXX='-fPIC'
19894       ;;
19895     esac
19896   else
19897     case $host_os in
19898       aix4* | aix5*)
19899         # All AIX code is PIC.
19900         if test "$host_cpu" = ia64; then
19901           # AIX 5 now supports IA64 processor
19902           lt_prog_compiler_static_CXX='-Bstatic'
19903         else
19904           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19905         fi
19906         ;;
19907       chorus*)
19908         case $cc_basename in
19909         cxch68*)
19910           # Green Hills C++ Compiler
19911           # _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"
19912           ;;
19913         esac
19914         ;;
19915        darwin*)
19916          # PIC is the default on this platform
19917          # Common symbols not allowed in MH_DYLIB files
19918          case $cc_basename in
19919            xlc*)
19920            lt_prog_compiler_pic_CXX='-qnocommon'
19921            lt_prog_compiler_wl_CXX='-Wl,'
19922            ;;
19923          esac
19924        ;;
19925       dgux*)
19926         case $cc_basename in
19927           ec++*)
19928             lt_prog_compiler_pic_CXX='-KPIC'
19929             ;;
19930           ghcx*)
19931             # Green Hills C++ Compiler
19932             lt_prog_compiler_pic_CXX='-pic'
19933             ;;
19934           *)
19935             ;;
19936         esac
19937         ;;
19938       freebsd* | kfreebsd*-gnu | dragonfly*)
19939         # FreeBSD uses GNU C++
19940         ;;
19941       hpux9* | hpux10* | hpux11*)
19942         case $cc_basename in
19943           CC*)
19944             lt_prog_compiler_wl_CXX='-Wl,'
19945             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19946             if test "$host_cpu" != ia64; then
19947               lt_prog_compiler_pic_CXX='+Z'
19948             fi
19949             ;;
19950           aCC*)
19951             lt_prog_compiler_wl_CXX='-Wl,'
19952             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19953             case $host_cpu in
19954             hppa*64*|ia64*)
19955               # +Z the default
19956               ;;
19957             *)
19958               lt_prog_compiler_pic_CXX='+Z'
19959               ;;
19960             esac
19961             ;;
19962           *)
19963             ;;
19964         esac
19965         ;;
19966       interix*)
19967         # This is c89, which is MS Visual C++ (no shared libs)
19968         # Anyone wants to do a port?
19969         ;;
19970       irix5* | irix6* | nonstopux*)
19971         case $cc_basename in
19972           CC*)
19973             lt_prog_compiler_wl_CXX='-Wl,'
19974             lt_prog_compiler_static_CXX='-non_shared'
19975             # CC pic flag -KPIC is the default.
19976             ;;
19977           *)
19978             ;;
19979         esac
19980         ;;
19981       linux*)
19982         case $cc_basename in
19983           KCC*)
19984             # KAI C++ Compiler
19985             lt_prog_compiler_wl_CXX='--backend -Wl,'
19986             lt_prog_compiler_pic_CXX='-fPIC'
19987             ;;
19988           icpc* | ecpc*)
19989             # Intel C++
19990             lt_prog_compiler_wl_CXX='-Wl,'
19991             lt_prog_compiler_pic_CXX='-KPIC'
19992             lt_prog_compiler_static_CXX='-static'
19993             ;;
19994           pgCC*)
19995             # Portland Group C++ compiler.
19996             lt_prog_compiler_wl_CXX='-Wl,'
19997             lt_prog_compiler_pic_CXX='-fpic'
19998             lt_prog_compiler_static_CXX='-Bstatic'
19999             ;;
20000           cxx*)
20001             # Compaq C++
20002             # Make sure the PIC flag is empty.  It appears that all Alpha
20003             # Linux and Compaq Tru64 Unix objects are PIC.
20004             lt_prog_compiler_pic_CXX=
20005             lt_prog_compiler_static_CXX='-non_shared'
20006             ;;
20007           *)
20008             ;;
20009         esac
20010         ;;
20011       lynxos*)
20012         ;;
20013       m88k*)
20014         ;;
20015       mvs*)
20016         case $cc_basename in
20017           cxx*)
20018             lt_prog_compiler_pic_CXX='-W c,exportall'
20019             ;;
20020           *)
20021             ;;
20022         esac
20023         ;;
20024       netbsd*)
20025         ;;
20026       osf3* | osf4* | osf5*)
20027         case $cc_basename in
20028           KCC*)
20029             lt_prog_compiler_wl_CXX='--backend -Wl,'
20030             ;;
20031           RCC*)
20032             # Rational C++ 2.4.1
20033             lt_prog_compiler_pic_CXX='-pic'
20034             ;;
20035           cxx*)
20036             # Digital/Compaq C++
20037             lt_prog_compiler_wl_CXX='-Wl,'
20038             # Make sure the PIC flag is empty.  It appears that all Alpha
20039             # Linux and Compaq Tru64 Unix objects are PIC.
20040             lt_prog_compiler_pic_CXX=
20041             lt_prog_compiler_static_CXX='-non_shared'
20042             ;;
20043           *)
20044             ;;
20045         esac
20046         ;;
20047       psos*)
20048         ;;
20049       solaris*)
20050         case $cc_basename in
20051           CC*)
20052             # Sun C++ 4.2, 5.x and Centerline C++
20053             lt_prog_compiler_pic_CXX='-KPIC'
20054             lt_prog_compiler_static_CXX='-Bstatic'
20055             lt_prog_compiler_wl_CXX='-Qoption ld '
20056             ;;
20057           gcx*)
20058             # Green Hills C++ Compiler
20059             lt_prog_compiler_pic_CXX='-PIC'
20060             ;;
20061           *)
20062             ;;
20063         esac
20064         ;;
20065       sunos4*)
20066         case $cc_basename in
20067           CC*)
20068             # Sun C++ 4.x
20069             lt_prog_compiler_pic_CXX='-pic'
20070             lt_prog_compiler_static_CXX='-Bstatic'
20071             ;;
20072           lcc*)
20073             # Lucid
20074             lt_prog_compiler_pic_CXX='-pic'
20075             ;;
20076           *)
20077             ;;
20078         esac
20079         ;;
20080       tandem*)
20081         case $cc_basename in
20082           NCC*)
20083             # NonStop-UX NCC 3.20
20084             lt_prog_compiler_pic_CXX='-KPIC'
20085             ;;
20086           *)
20087             ;;
20088         esac
20089         ;;
20090       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20091         case $cc_basename in
20092           CC*)
20093             lt_prog_compiler_wl_CXX='-Wl,'
20094             lt_prog_compiler_pic_CXX='-KPIC'
20095             lt_prog_compiler_static_CXX='-Bstatic'
20096             ;;
20097         esac
20098         ;;
20099       vxworks*)
20100         ;;
20101       *)
20102         lt_prog_compiler_can_build_shared_CXX=no
20103         ;;
20104     esac
20105   fi
20106
20107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20108 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20109
20110 #
20111 # Check to make sure the PIC flag actually works.
20112 #
20113 if test -n "$lt_prog_compiler_pic_CXX"; then
20114
20115 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20117 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120   lt_prog_compiler_pic_works_CXX=no
20121   ac_outfile=conftest.$ac_objext
20122    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20123    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20124    # Insert the option either (1) after the last *FLAGS variable, or
20125    # (2) before a word containing "conftest.", or (3) at the end.
20126    # Note that $ac_compile itself does not contain backslashes and begins
20127    # with a dollar sign (not a hyphen), so the echo should work correctly.
20128    # The option is referenced via a variable to avoid confusing sed.
20129    lt_compile=`echo "$ac_compile" | $SED \
20130    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20131    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20132    -e 's:$: $lt_compiler_flag:'`
20133    (eval echo "\"\$as_me:20133: $lt_compile\"" >&5)
20134    (eval "$lt_compile" 2>conftest.err)
20135    ac_status=$?
20136    cat conftest.err >&5
20137    echo "$as_me:20137: \$? = $ac_status" >&5
20138    if (exit $ac_status) && test -s "$ac_outfile"; then
20139      # The compiler can only warn and ignore the option if not recognized
20140      # So say no if there are warnings other than the usual output.
20141      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20142      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20143      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20144        lt_prog_compiler_pic_works_CXX=yes
20145      fi
20146    fi
20147    $rm conftest*
20148
20149 fi
20150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20151 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20152
20153 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20154     case $lt_prog_compiler_pic_CXX in
20155      "" | " "*) ;;
20156      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20157      esac
20158 else
20159     lt_prog_compiler_pic_CXX=
20160      lt_prog_compiler_can_build_shared_CXX=no
20161 fi
20162
20163 fi
20164 case $host_os in
20165   # For platforms which do not support PIC, -DPIC is meaningless:
20166   *djgpp*)
20167     lt_prog_compiler_pic_CXX=
20168     ;;
20169   *)
20170     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20171     ;;
20172 esac
20173
20174 #
20175 # Check to make sure the static flag actually works.
20176 #
20177 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20178 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20179 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20180 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183   lt_prog_compiler_static_works_CXX=no
20184    save_LDFLAGS="$LDFLAGS"
20185    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20186    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20187    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20188      # The linker can only warn and ignore the option if not recognized
20189      # So say no if there are warnings
20190      if test -s conftest.err; then
20191        # Append any errors to the config.log.
20192        cat conftest.err 1>&5
20193        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20194        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20195        if diff conftest.exp conftest.er2 >/dev/null; then
20196          lt_prog_compiler_static_works_CXX=yes
20197        fi
20198      else
20199        lt_prog_compiler_static_works_CXX=yes
20200      fi
20201    fi
20202    $rm conftest*
20203    LDFLAGS="$save_LDFLAGS"
20204
20205 fi
20206 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20207 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20208
20209 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20210     :
20211 else
20212     lt_prog_compiler_static_CXX=
20213 fi
20214
20215
20216 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20217 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20218 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20219   echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221   lt_cv_prog_compiler_c_o_CXX=no
20222    $rm -r conftest 2>/dev/null
20223    mkdir conftest
20224    cd conftest
20225    mkdir out
20226    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20227
20228    lt_compiler_flag="-o out/conftest2.$ac_objext"
20229    # Insert the option either (1) after the last *FLAGS variable, or
20230    # (2) before a word containing "conftest.", or (3) at the end.
20231    # Note that $ac_compile itself does not contain backslashes and begins
20232    # with a dollar sign (not a hyphen), so the echo should work correctly.
20233    lt_compile=`echo "$ac_compile" | $SED \
20234    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20235    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20236    -e 's:$: $lt_compiler_flag:'`
20237    (eval echo "\"\$as_me:20237: $lt_compile\"" >&5)
20238    (eval "$lt_compile" 2>out/conftest.err)
20239    ac_status=$?
20240    cat out/conftest.err >&5
20241    echo "$as_me:20241: \$? = $ac_status" >&5
20242    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20243    then
20244      # The compiler can only warn and ignore the option if not recognized
20245      # So say no if there are warnings
20246      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20247      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20248      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20249        lt_cv_prog_compiler_c_o_CXX=yes
20250      fi
20251    fi
20252    chmod u+w . 2>&5
20253    $rm conftest*
20254    # SGI C++ compiler will create directory out/ii_files/ for
20255    # template instantiation
20256    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20257    $rm out/* && rmdir out
20258    cd ..
20259    rmdir conftest
20260    $rm conftest*
20261
20262 fi
20263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20265
20266
20267 hard_links="nottested"
20268 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20269   # do not overwrite the value of need_locks provided by the user
20270   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20272   hard_links=yes
20273   $rm conftest*
20274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20275   touch conftest.a
20276   ln conftest.a conftest.b 2>&5 || hard_links=no
20277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20278   { echo "$as_me:$LINENO: result: $hard_links" >&5
20279 echo "${ECHO_T}$hard_links" >&6; }
20280   if test "$hard_links" = no; then
20281     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20283     need_locks=warn
20284   fi
20285 else
20286   need_locks=no
20287 fi
20288
20289 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20291
20292   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20293   case $host_os in
20294   aix4* | aix5*)
20295     # If we're using GNU nm, then we don't want the "-C" option.
20296     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20297     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20298       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'
20299     else
20300       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'
20301     fi
20302     ;;
20303   pw32*)
20304     export_symbols_cmds_CXX="$ltdll_cmds"
20305   ;;
20306   cygwin* | mingw*)
20307     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'
20308   ;;
20309   *)
20310     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311   ;;
20312   esac
20313
20314 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20315 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20316 test "$ld_shlibs_CXX" = no && can_build_shared=no
20317
20318 #
20319 # Do we need to explicitly link libc?
20320 #
20321 case "x$archive_cmds_need_lc_CXX" in
20322 x|xyes)
20323   # Assume -lc should be added
20324   archive_cmds_need_lc_CXX=yes
20325
20326   if test "$enable_shared" = yes && test "$GCC" = yes; then
20327     case $archive_cmds_CXX in
20328     *'~'*)
20329       # FIXME: we may have to deal with multi-command sequences.
20330       ;;
20331     '$CC '*)
20332       # Test whether the compiler implicitly links with -lc since on some
20333       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20334       # to ld, don't add -lc before -lgcc.
20335       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20336 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20337       $rm conftest*
20338       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20339
20340       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341   (eval $ac_compile) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } 2>conftest.err; then
20345         soname=conftest
20346         lib=conftest
20347         libobjs=conftest.$ac_objext
20348         deplibs=
20349         wl=$lt_prog_compiler_wl_CXX
20350         pic_flag=$lt_prog_compiler_pic_CXX
20351         compiler_flags=-v
20352         linker_flags=-v
20353         verstring=
20354         output_objdir=.
20355         libname=conftest
20356         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20357         allow_undefined_flag_CXX=
20358         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20359   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }
20363         then
20364           archive_cmds_need_lc_CXX=no
20365         else
20366           archive_cmds_need_lc_CXX=yes
20367         fi
20368         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20369       else
20370         cat conftest.err 1>&5
20371       fi
20372       $rm conftest*
20373       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20374 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20375       ;;
20376     esac
20377   fi
20378   ;;
20379 esac
20380
20381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20383 library_names_spec=
20384 libname_spec='lib$name'
20385 soname_spec=
20386 shrext_cmds=".so"
20387 postinstall_cmds=
20388 postuninstall_cmds=
20389 finish_cmds=
20390 finish_eval=
20391 shlibpath_var=
20392 shlibpath_overrides_runpath=unknown
20393 version_type=none
20394 dynamic_linker="$host_os ld.so"
20395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20396 if test "$GCC" = yes; then
20397   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20398   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20399     # if the path contains ";" then we assume it to be the separator
20400     # otherwise default to the standard path separator (i.e. ":") - it is
20401     # assumed that no part of a normal pathname contains ";" but that should
20402     # okay in the real world where ";" in dirpaths is itself problematic.
20403     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20404   else
20405     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20406   fi
20407 else
20408   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20409 fi
20410 need_lib_prefix=unknown
20411 hardcode_into_libs=no
20412
20413 # when you set need_version to no, make sure it does not cause -set_version
20414 # flags to be left without arguments
20415 need_version=unknown
20416
20417 case $host_os in
20418 aix3*)
20419   version_type=linux
20420   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20421   shlibpath_var=LIBPATH
20422
20423   # AIX 3 has no versioning support, so we append a major version to the name.
20424   soname_spec='${libname}${release}${shared_ext}$major'
20425   ;;
20426
20427 aix4* | aix5*)
20428   version_type=linux
20429   need_lib_prefix=no
20430   need_version=no
20431   hardcode_into_libs=yes
20432   if test "$host_cpu" = ia64; then
20433     # AIX 5 supports IA64
20434     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20435     shlibpath_var=LD_LIBRARY_PATH
20436   else
20437     # With GCC up to 2.95.x, collect2 would create an import file
20438     # for dependence libraries.  The import file would start with
20439     # the line `#! .'.  This would cause the generated library to
20440     # depend on `.', always an invalid library.  This was fixed in
20441     # development snapshots of GCC prior to 3.0.
20442     case $host_os in
20443       aix4 | aix4.[01] | aix4.[01].*)
20444       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20445            echo ' yes '
20446            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20447         :
20448       else
20449         can_build_shared=no
20450       fi
20451       ;;
20452     esac
20453     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20454     # soname into executable. Probably we can add versioning support to
20455     # collect2, so additional links can be useful in future.
20456     if test "$aix_use_runtimelinking" = yes; then
20457       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20458       # instead of lib<name>.a to let people know that these are not
20459       # typical AIX shared libraries.
20460       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461     else
20462       # We preserve .a as extension for shared libraries through AIX4.2
20463       # and later when we are not doing run time linking.
20464       library_names_spec='${libname}${release}.a $libname.a'
20465       soname_spec='${libname}${release}${shared_ext}$major'
20466     fi
20467     shlibpath_var=LIBPATH
20468   fi
20469   ;;
20470
20471 amigaos*)
20472   library_names_spec='$libname.ixlibrary $libname.a'
20473   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20474   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'
20475   ;;
20476
20477 beos*)
20478   library_names_spec='${libname}${shared_ext}'
20479   dynamic_linker="$host_os ld.so"
20480   shlibpath_var=LIBRARY_PATH
20481   ;;
20482
20483 bsdi[45]*)
20484   version_type=linux
20485   need_version=no
20486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487   soname_spec='${libname}${release}${shared_ext}$major'
20488   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20489   shlibpath_var=LD_LIBRARY_PATH
20490   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20491   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20492   # the default ld.so.conf also contains /usr/contrib/lib and
20493   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20494   # libtool to hard-code these into programs
20495   ;;
20496
20497 cygwin* | mingw* | pw32*)
20498   version_type=windows
20499   shrext_cmds=".dll"
20500   need_version=no
20501   need_lib_prefix=no
20502
20503   case $GCC,$host_os in
20504   yes,cygwin* | yes,mingw* | yes,pw32*)
20505     library_names_spec='$libname.dll.a'
20506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20507     postinstall_cmds='base_file=`basename \${file}`~
20508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20509       dldir=$destdir/`dirname \$dlpath`~
20510       test -d \$dldir || mkdir -p \$dldir~
20511       $install_prog $dir/$dlname \$dldir/$dlname~
20512       chmod a+x \$dldir/$dlname'
20513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20514       dlpath=$dir/\$dldll~
20515        $rm \$dlpath'
20516     shlibpath_overrides_runpath=yes
20517
20518     case $host_os in
20519     cygwin*)
20520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20521       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20522       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20523       ;;
20524     mingw*)
20525       # MinGW DLLs use traditional 'lib' prefix
20526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20527       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20528       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20529         # It is most probably a Windows format PATH printed by
20530         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20531         # path with ; separators, and with drive letters. We can handle the
20532         # drive letters (cygwin fileutils understands them), so leave them,
20533         # especially as we might pass files found there to a mingw objdump,
20534         # which wouldn't understand a cygwinified path. Ahh.
20535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20536       else
20537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20538       fi
20539       ;;
20540     pw32*)
20541       # pw32 DLLs use 'pw' prefix rather than 'lib'
20542       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20543       ;;
20544     esac
20545     ;;
20546
20547   *)
20548     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20549     ;;
20550   esac
20551   dynamic_linker='Win32 ld.exe'
20552   # FIXME: first we should search . and the directory the executable is in
20553   shlibpath_var=PATH
20554   ;;
20555
20556 darwin* | rhapsody*)
20557   dynamic_linker="$host_os dyld"
20558   version_type=darwin
20559   need_lib_prefix=no
20560   need_version=no
20561   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20562   soname_spec='${libname}${release}${major}$shared_ext'
20563   shlibpath_overrides_runpath=yes
20564   shlibpath_var=DYLD_LIBRARY_PATH
20565   shrext_cmds='.dylib'
20566   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20567   if test "$GCC" = yes; then
20568     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"`
20569   else
20570     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20571   fi
20572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20573   ;;
20574
20575 dgux*)
20576   version_type=linux
20577   need_lib_prefix=no
20578   need_version=no
20579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20580   soname_spec='${libname}${release}${shared_ext}$major'
20581   shlibpath_var=LD_LIBRARY_PATH
20582   ;;
20583
20584 freebsd1*)
20585   dynamic_linker=no
20586   ;;
20587
20588 kfreebsd*-gnu)
20589   version_type=linux
20590   need_lib_prefix=no
20591   need_version=no
20592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20593   soname_spec='${libname}${release}${shared_ext}$major'
20594   shlibpath_var=LD_LIBRARY_PATH
20595   shlibpath_overrides_runpath=no
20596   hardcode_into_libs=yes
20597   dynamic_linker='GNU ld.so'
20598   ;;
20599
20600 freebsd* | dragonfly*)
20601   # DragonFly does not have aout.  When/if they implement a new
20602   # versioning mechanism, adjust this.
20603   if test -x /usr/bin/objformat; then
20604     objformat=`/usr/bin/objformat`
20605   else
20606     case $host_os in
20607     freebsd[123]*) objformat=aout ;;
20608     *) objformat=elf ;;
20609     esac
20610   fi
20611   version_type=freebsd-$objformat
20612   case $version_type in
20613     freebsd-elf*)
20614       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20615       need_version=no
20616       need_lib_prefix=no
20617       ;;
20618     freebsd-*)
20619       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20620       need_version=yes
20621       ;;
20622   esac
20623   shlibpath_var=LD_LIBRARY_PATH
20624   case $host_os in
20625   freebsd2*)
20626     shlibpath_overrides_runpath=yes
20627     ;;
20628   freebsd3.[01]* | freebsdelf3.[01]*)
20629     shlibpath_overrides_runpath=yes
20630     hardcode_into_libs=yes
20631     ;;
20632   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20633   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20634     shlibpath_overrides_runpath=no
20635     hardcode_into_libs=yes
20636     ;;
20637   freebsd*) # from 4.6 on
20638     shlibpath_overrides_runpath=yes
20639     hardcode_into_libs=yes
20640     ;;
20641   esac
20642   ;;
20643
20644 gnu*)
20645   version_type=linux
20646   need_lib_prefix=no
20647   need_version=no
20648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20649   soname_spec='${libname}${release}${shared_ext}$major'
20650   shlibpath_var=LD_LIBRARY_PATH
20651   hardcode_into_libs=yes
20652   ;;
20653
20654 hpux9* | hpux10* | hpux11*)
20655   # Give a soname corresponding to the major version so that dld.sl refuses to
20656   # link against other versions.
20657   version_type=sunos
20658   need_lib_prefix=no
20659   need_version=no
20660   case $host_cpu in
20661   ia64*)
20662     shrext_cmds='.so'
20663     hardcode_into_libs=yes
20664     dynamic_linker="$host_os dld.so"
20665     shlibpath_var=LD_LIBRARY_PATH
20666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668     soname_spec='${libname}${release}${shared_ext}$major'
20669     if test "X$HPUX_IA64_MODE" = X32; then
20670       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20671     else
20672       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20673     fi
20674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20675     ;;
20676    hppa*64*)
20677      shrext_cmds='.sl'
20678      hardcode_into_libs=yes
20679      dynamic_linker="$host_os dld.sl"
20680      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20681      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683      soname_spec='${libname}${release}${shared_ext}$major'
20684      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20685      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20686      ;;
20687    *)
20688     shrext_cmds='.sl'
20689     dynamic_linker="$host_os dld.sl"
20690     shlibpath_var=SHLIB_PATH
20691     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693     soname_spec='${libname}${release}${shared_ext}$major'
20694     ;;
20695   esac
20696   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20697   postinstall_cmds='chmod 555 $lib'
20698   ;;
20699
20700 interix3*)
20701   version_type=linux
20702   need_lib_prefix=no
20703   need_version=no
20704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20705   soname_spec='${libname}${release}${shared_ext}$major'
20706   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20707   shlibpath_var=LD_LIBRARY_PATH
20708   shlibpath_overrides_runpath=no
20709   hardcode_into_libs=yes
20710   ;;
20711
20712 irix5* | irix6* | nonstopux*)
20713   case $host_os in
20714     nonstopux*) version_type=nonstopux ;;
20715     *)
20716         if test "$lt_cv_prog_gnu_ld" = yes; then
20717                 version_type=linux
20718         else
20719                 version_type=irix
20720         fi ;;
20721   esac
20722   need_lib_prefix=no
20723   need_version=no
20724   soname_spec='${libname}${release}${shared_ext}$major'
20725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20726   case $host_os in
20727   irix5* | nonstopux*)
20728     libsuff= shlibsuff=
20729     ;;
20730   *)
20731     case $LD in # libtool.m4 will add one of these switches to LD
20732     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20733       libsuff= shlibsuff= libmagic=32-bit;;
20734     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20735       libsuff=32 shlibsuff=N32 libmagic=N32;;
20736     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20737       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20738     *) libsuff= shlibsuff= libmagic=never-match;;
20739     esac
20740     ;;
20741   esac
20742   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20743   shlibpath_overrides_runpath=no
20744   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20745   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20746   hardcode_into_libs=yes
20747   ;;
20748
20749 # No shared lib support for Linux oldld, aout, or coff.
20750 linux*oldld* | linux*aout* | linux*coff*)
20751   dynamic_linker=no
20752   ;;
20753
20754 # This must be Linux ELF.
20755 linux*)
20756   version_type=linux
20757   need_lib_prefix=no
20758   need_version=no
20759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20760   soname_spec='${libname}${release}${shared_ext}$major'
20761   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20762   shlibpath_var=LD_LIBRARY_PATH
20763   shlibpath_overrides_runpath=no
20764   # This implies no fast_install, which is unacceptable.
20765   # Some rework will be needed to allow for fast_install
20766   # before this can be enabled.
20767   hardcode_into_libs=yes
20768
20769   # Append ld.so.conf contents to the search path
20770   if test -f /etc/ld.so.conf; then
20771     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' ' '`
20772     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20773   fi
20774
20775   # We used to test for /lib/ld.so.1 and disable shared libraries on
20776   # powerpc, because MkLinux only supported shared libraries with the
20777   # GNU dynamic linker.  Since this was broken with cross compilers,
20778   # most powerpc-linux boxes support dynamic linking these days and
20779   # people can always --disable-shared, the test was removed, and we
20780   # assume the GNU/Linux dynamic linker is in use.
20781   dynamic_linker='GNU/Linux ld.so'
20782   ;;
20783
20784 knetbsd*-gnu)
20785   version_type=linux
20786   need_lib_prefix=no
20787   need_version=no
20788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20789   soname_spec='${libname}${release}${shared_ext}$major'
20790   shlibpath_var=LD_LIBRARY_PATH
20791   shlibpath_overrides_runpath=no
20792   hardcode_into_libs=yes
20793   dynamic_linker='GNU ld.so'
20794   ;;
20795
20796 netbsd*)
20797   version_type=sunos
20798   need_lib_prefix=no
20799   need_version=no
20800   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20802     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20803     dynamic_linker='NetBSD (a.out) ld.so'
20804   else
20805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20806     soname_spec='${libname}${release}${shared_ext}$major'
20807     dynamic_linker='NetBSD ld.elf_so'
20808   fi
20809   shlibpath_var=LD_LIBRARY_PATH
20810   shlibpath_overrides_runpath=yes
20811   hardcode_into_libs=yes
20812   ;;
20813
20814 newsos6)
20815   version_type=linux
20816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817   shlibpath_var=LD_LIBRARY_PATH
20818   shlibpath_overrides_runpath=yes
20819   ;;
20820
20821 nto-qnx*)
20822   version_type=linux
20823   need_lib_prefix=no
20824   need_version=no
20825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826   soname_spec='${libname}${release}${shared_ext}$major'
20827   shlibpath_var=LD_LIBRARY_PATH
20828   shlibpath_overrides_runpath=yes
20829   ;;
20830
20831 openbsd*)
20832   version_type=sunos
20833   sys_lib_dlsearch_path_spec="/usr/lib"
20834   need_lib_prefix=no
20835   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20836   case $host_os in
20837     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20838     *)                         need_version=no  ;;
20839   esac
20840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20841   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20842   shlibpath_var=LD_LIBRARY_PATH
20843   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20844     case $host_os in
20845       openbsd2.[89] | openbsd2.[89].*)
20846         shlibpath_overrides_runpath=no
20847         ;;
20848       *)
20849         shlibpath_overrides_runpath=yes
20850         ;;
20851       esac
20852   else
20853     shlibpath_overrides_runpath=yes
20854   fi
20855   ;;
20856
20857 os2*)
20858   libname_spec='$name'
20859   shrext_cmds=".dll"
20860   need_lib_prefix=no
20861   library_names_spec='$libname${shared_ext} $libname.a'
20862   dynamic_linker='OS/2 ld.exe'
20863   shlibpath_var=LIBPATH
20864   ;;
20865
20866 osf3* | osf4* | osf5*)
20867   version_type=osf
20868   need_lib_prefix=no
20869   need_version=no
20870   soname_spec='${libname}${release}${shared_ext}$major'
20871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872   shlibpath_var=LD_LIBRARY_PATH
20873   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20874   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20875   ;;
20876
20877 solaris*)
20878   version_type=linux
20879   need_lib_prefix=no
20880   need_version=no
20881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20882   soname_spec='${libname}${release}${shared_ext}$major'
20883   shlibpath_var=LD_LIBRARY_PATH
20884   shlibpath_overrides_runpath=yes
20885   hardcode_into_libs=yes
20886   # ldd complains unless libraries are executable
20887   postinstall_cmds='chmod +x $lib'
20888   ;;
20889
20890 sunos4*)
20891   version_type=sunos
20892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20894   shlibpath_var=LD_LIBRARY_PATH
20895   shlibpath_overrides_runpath=yes
20896   if test "$with_gnu_ld" = yes; then
20897     need_lib_prefix=no
20898   fi
20899   need_version=yes
20900   ;;
20901
20902 sysv4 | sysv4.3*)
20903   version_type=linux
20904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20905   soname_spec='${libname}${release}${shared_ext}$major'
20906   shlibpath_var=LD_LIBRARY_PATH
20907   case $host_vendor in
20908     sni)
20909       shlibpath_overrides_runpath=no
20910       need_lib_prefix=no
20911       export_dynamic_flag_spec='${wl}-Blargedynsym'
20912       runpath_var=LD_RUN_PATH
20913       ;;
20914     siemens)
20915       need_lib_prefix=no
20916       ;;
20917     motorola)
20918       need_lib_prefix=no
20919       need_version=no
20920       shlibpath_overrides_runpath=no
20921       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20922       ;;
20923   esac
20924   ;;
20925
20926 sysv4*MP*)
20927   if test -d /usr/nec ;then
20928     version_type=linux
20929     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20930     soname_spec='$libname${shared_ext}.$major'
20931     shlibpath_var=LD_LIBRARY_PATH
20932   fi
20933   ;;
20934
20935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20936   version_type=freebsd-elf
20937   need_lib_prefix=no
20938   need_version=no
20939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20940   soname_spec='${libname}${release}${shared_ext}$major'
20941   shlibpath_var=LD_LIBRARY_PATH
20942   hardcode_into_libs=yes
20943   if test "$with_gnu_ld" = yes; then
20944     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20945     shlibpath_overrides_runpath=no
20946   else
20947     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20948     shlibpath_overrides_runpath=yes
20949     case $host_os in
20950       sco3.2v5*)
20951         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20952         ;;
20953     esac
20954   fi
20955   sys_lib_dlsearch_path_spec='/usr/lib'
20956   ;;
20957
20958 uts4*)
20959   version_type=linux
20960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961   soname_spec='${libname}${release}${shared_ext}$major'
20962   shlibpath_var=LD_LIBRARY_PATH
20963   ;;
20964
20965 *)
20966   dynamic_linker=no
20967   ;;
20968 esac
20969 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20970 echo "${ECHO_T}$dynamic_linker" >&6; }
20971 test "$dynamic_linker" = no && can_build_shared=no
20972
20973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20974 if test "$GCC" = yes; then
20975   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20976 fi
20977
20978 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20979 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20980 hardcode_action_CXX=
20981 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20982    test -n "$runpath_var_CXX" || \
20983    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20984
20985   # We can hardcode non-existant directories.
20986   if test "$hardcode_direct_CXX" != no &&
20987      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20988      # have to relink, otherwise we might link with an installed library
20989      # when we should be linking with a yet-to-be-installed one
20990      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20991      test "$hardcode_minus_L_CXX" != no; then
20992     # Linking always hardcodes the temporary library directory.
20993     hardcode_action_CXX=relink
20994   else
20995     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20996     hardcode_action_CXX=immediate
20997   fi
20998 else
20999   # We cannot hardcode anything, or else we can only hardcode existing
21000   # directories.
21001   hardcode_action_CXX=unsupported
21002 fi
21003 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21004 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21005
21006 if test "$hardcode_action_CXX" = relink; then
21007   # Fast installation is not supported
21008   enable_fast_install=no
21009 elif test "$shlibpath_overrides_runpath" = yes ||
21010      test "$enable_shared" = no; then
21011   # Fast installation is not necessary
21012   enable_fast_install=needless
21013 fi
21014
21015
21016 # The else clause should only fire when bootstrapping the
21017 # libtool distribution, otherwise you forgot to ship ltmain.sh
21018 # with your package, and you will get complaints that there are
21019 # no rules to generate ltmain.sh.
21020 if test -f "$ltmain"; then
21021   # See if we are running on zsh, and set the options which allow our commands through
21022   # without removal of \ escapes.
21023   if test -n "${ZSH_VERSION+set}" ; then
21024     setopt NO_GLOB_SUBST
21025   fi
21026   # Now quote all the things that may contain metacharacters while being
21027   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21028   # variables and quote the copies for generation of the libtool script.
21029   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21030     SED SHELL STRIP \
21031     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21032     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21033     deplibs_check_method reload_flag reload_cmds need_locks \
21034     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21035     lt_cv_sys_global_symbol_to_c_name_address \
21036     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21037     old_postinstall_cmds old_postuninstall_cmds \
21038     compiler_CXX \
21039     CC_CXX \
21040     LD_CXX \
21041     lt_prog_compiler_wl_CXX \
21042     lt_prog_compiler_pic_CXX \
21043     lt_prog_compiler_static_CXX \
21044     lt_prog_compiler_no_builtin_flag_CXX \
21045     export_dynamic_flag_spec_CXX \
21046     thread_safe_flag_spec_CXX \
21047     whole_archive_flag_spec_CXX \
21048     enable_shared_with_static_runtimes_CXX \
21049     old_archive_cmds_CXX \
21050     old_archive_from_new_cmds_CXX \
21051     predep_objects_CXX \
21052     postdep_objects_CXX \
21053     predeps_CXX \
21054     postdeps_CXX \
21055     compiler_lib_search_path_CXX \
21056     archive_cmds_CXX \
21057     archive_expsym_cmds_CXX \
21058     postinstall_cmds_CXX \
21059     postuninstall_cmds_CXX \
21060     old_archive_from_expsyms_cmds_CXX \
21061     allow_undefined_flag_CXX \
21062     no_undefined_flag_CXX \
21063     export_symbols_cmds_CXX \
21064     hardcode_libdir_flag_spec_CXX \
21065     hardcode_libdir_flag_spec_ld_CXX \
21066     hardcode_libdir_separator_CXX \
21067     hardcode_automatic_CXX \
21068     module_cmds_CXX \
21069     module_expsym_cmds_CXX \
21070     lt_cv_prog_compiler_c_o_CXX \
21071     exclude_expsyms_CXX \
21072     include_expsyms_CXX; do
21073
21074     case $var in
21075     old_archive_cmds_CXX | \
21076     old_archive_from_new_cmds_CXX | \
21077     archive_cmds_CXX | \
21078     archive_expsym_cmds_CXX | \
21079     module_cmds_CXX | \
21080     module_expsym_cmds_CXX | \
21081     old_archive_from_expsyms_cmds_CXX | \
21082     export_symbols_cmds_CXX | \
21083     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21084     postinstall_cmds | postuninstall_cmds | \
21085     old_postinstall_cmds | old_postuninstall_cmds | \
21086     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21087       # Double-quote double-evaled strings.
21088       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21089       ;;
21090     *)
21091       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21092       ;;
21093     esac
21094   done
21095
21096   case $lt_echo in
21097   *'\$0 --fallback-echo"')
21098     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21099     ;;
21100   esac
21101
21102 cfgfile="$ofile"
21103
21104   cat <<__EOF__ >> "$cfgfile"
21105 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21106
21107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21108
21109 # Shell to use when invoking shell scripts.
21110 SHELL=$lt_SHELL
21111
21112 # Whether or not to build shared libraries.
21113 build_libtool_libs=$enable_shared
21114
21115 # Whether or not to build static libraries.
21116 build_old_libs=$enable_static
21117
21118 # Whether or not to add -lc for building shared libraries.
21119 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21120
21121 # Whether or not to disallow shared libs when runtime libs are static
21122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21123
21124 # Whether or not to optimize for fast installation.
21125 fast_install=$enable_fast_install
21126
21127 # The host system.
21128 host_alias=$host_alias
21129 host=$host
21130 host_os=$host_os
21131
21132 # The build system.
21133 build_alias=$build_alias
21134 build=$build
21135 build_os=$build_os
21136
21137 # An echo program that does not interpret backslashes.
21138 echo=$lt_echo
21139
21140 # The archiver.
21141 AR=$lt_AR
21142 AR_FLAGS=$lt_AR_FLAGS
21143
21144 # A C compiler.
21145 LTCC=$lt_LTCC
21146
21147 # LTCC compiler flags.
21148 LTCFLAGS=$lt_LTCFLAGS
21149
21150 # A language-specific compiler.
21151 CC=$lt_compiler_CXX
21152
21153 # Is the compiler the GNU C compiler?
21154 with_gcc=$GCC_CXX
21155
21156 # An ERE matcher.
21157 EGREP=$lt_EGREP
21158
21159 # The linker used to build libraries.
21160 LD=$lt_LD_CXX
21161
21162 # Whether we need hard or soft links.
21163 LN_S=$lt_LN_S
21164
21165 # A BSD-compatible nm program.
21166 NM=$lt_NM
21167
21168 # A symbol stripping program
21169 STRIP=$lt_STRIP
21170
21171 # Used to examine libraries when file_magic_cmd begins "file"
21172 MAGIC_CMD=$MAGIC_CMD
21173
21174 # Used on cygwin: DLL creation program.
21175 DLLTOOL="$DLLTOOL"
21176
21177 # Used on cygwin: object dumper.
21178 OBJDUMP="$OBJDUMP"
21179
21180 # Used on cygwin: assembler.
21181 AS="$AS"
21182
21183 # The name of the directory that contains temporary libtool files.
21184 objdir=$objdir
21185
21186 # How to create reloadable object files.
21187 reload_flag=$lt_reload_flag
21188 reload_cmds=$lt_reload_cmds
21189
21190 # How to pass a linker flag through the compiler.
21191 wl=$lt_lt_prog_compiler_wl_CXX
21192
21193 # Object file suffix (normally "o").
21194 objext="$ac_objext"
21195
21196 # Old archive suffix (normally "a").
21197 libext="$libext"
21198
21199 # Shared library suffix (normally ".so").
21200 shrext_cmds='$shrext_cmds'
21201
21202 # Executable file suffix (normally "").
21203 exeext="$exeext"
21204
21205 # Additional compiler flags for building library objects.
21206 pic_flag=$lt_lt_prog_compiler_pic_CXX
21207 pic_mode=$pic_mode
21208
21209 # What is the maximum length of a command?
21210 max_cmd_len=$lt_cv_sys_max_cmd_len
21211
21212 # Does compiler simultaneously support -c and -o options?
21213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21214
21215 # Must we lock files when doing compilation?
21216 need_locks=$lt_need_locks
21217
21218 # Do we need the lib prefix for modules?
21219 need_lib_prefix=$need_lib_prefix
21220
21221 # Do we need a version for libraries?
21222 need_version=$need_version
21223
21224 # Whether dlopen is supported.
21225 dlopen_support=$enable_dlopen
21226
21227 # Whether dlopen of programs is supported.
21228 dlopen_self=$enable_dlopen_self
21229
21230 # Whether dlopen of statically linked programs is supported.
21231 dlopen_self_static=$enable_dlopen_self_static
21232
21233 # Compiler flag to prevent dynamic linking.
21234 link_static_flag=$lt_lt_prog_compiler_static_CXX
21235
21236 # Compiler flag to turn off builtin functions.
21237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21238
21239 # Compiler flag to allow reflexive dlopens.
21240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21241
21242 # Compiler flag to generate shared objects directly from archives.
21243 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21244
21245 # Compiler flag to generate thread-safe objects.
21246 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21247
21248 # Library versioning type.
21249 version_type=$version_type
21250
21251 # Format of library name prefix.
21252 libname_spec=$lt_libname_spec
21253
21254 # List of archive names.  First name is the real one, the rest are links.
21255 # The last name is the one that the linker finds with -lNAME.
21256 library_names_spec=$lt_library_names_spec
21257
21258 # The coded name of the library, if different from the real name.
21259 soname_spec=$lt_soname_spec
21260
21261 # Commands used to build and install an old-style archive.
21262 RANLIB=$lt_RANLIB
21263 old_archive_cmds=$lt_old_archive_cmds_CXX
21264 old_postinstall_cmds=$lt_old_postinstall_cmds
21265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21266
21267 # Create an old-style archive from a shared archive.
21268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21269
21270 # Create a temporary old-style archive to link instead of a shared archive.
21271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21272
21273 # Commands used to build and install a shared archive.
21274 archive_cmds=$lt_archive_cmds_CXX
21275 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21276 postinstall_cmds=$lt_postinstall_cmds
21277 postuninstall_cmds=$lt_postuninstall_cmds
21278
21279 # Commands used to build a loadable module (assumed same as above if empty)
21280 module_cmds=$lt_module_cmds_CXX
21281 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21282
21283 # Commands to strip libraries.
21284 old_striplib=$lt_old_striplib
21285 striplib=$lt_striplib
21286
21287 # Dependencies to place before the objects being linked to create a
21288 # shared library.
21289 predep_objects=$lt_predep_objects_CXX
21290
21291 # Dependencies to place after the objects being linked to create a
21292 # shared library.
21293 postdep_objects=$lt_postdep_objects_CXX
21294
21295 # Dependencies to place before the objects being linked to create a
21296 # shared library.
21297 predeps=$lt_predeps_CXX
21298
21299 # Dependencies to place after the objects being linked to create a
21300 # shared library.
21301 postdeps=$lt_postdeps_CXX
21302
21303 # The library search path used internally by the compiler when linking
21304 # a shared library.
21305 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21306
21307 # Method to check whether dependent libraries are shared objects.
21308 deplibs_check_method=$lt_deplibs_check_method
21309
21310 # Command to use when deplibs_check_method == file_magic.
21311 file_magic_cmd=$lt_file_magic_cmd
21312
21313 # Flag that allows shared libraries with undefined symbols to be built.
21314 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21315
21316 # Flag that forces no undefined symbols.
21317 no_undefined_flag=$lt_no_undefined_flag_CXX
21318
21319 # Commands used to finish a libtool library installation in a directory.
21320 finish_cmds=$lt_finish_cmds
21321
21322 # Same as above, but a single script fragment to be evaled but not shown.
21323 finish_eval=$lt_finish_eval
21324
21325 # Take the output of nm and produce a listing of raw symbols and C names.
21326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21327
21328 # Transform the output of nm in a proper C declaration
21329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21330
21331 # Transform the output of nm in a C name address pair
21332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21333
21334 # This is the shared library runtime path variable.
21335 runpath_var=$runpath_var
21336
21337 # This is the shared library path variable.
21338 shlibpath_var=$shlibpath_var
21339
21340 # Is shlibpath searched before the hard-coded library search path?
21341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21342
21343 # How to hardcode a shared library path into an executable.
21344 hardcode_action=$hardcode_action_CXX
21345
21346 # Whether we should hardcode library paths into libraries.
21347 hardcode_into_libs=$hardcode_into_libs
21348
21349 # Flag to hardcode \$libdir into a binary during linking.
21350 # This must work even if \$libdir does not exist.
21351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21352
21353 # If ld is used when linking, flag to hardcode \$libdir into
21354 # a binary during linking. This must work even if \$libdir does
21355 # not exist.
21356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21357
21358 # Whether we need a single -rpath flag with a separated argument.
21359 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21360
21361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21362 # resulting binary.
21363 hardcode_direct=$hardcode_direct_CXX
21364
21365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21366 # resulting binary.
21367 hardcode_minus_L=$hardcode_minus_L_CXX
21368
21369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21370 # the resulting binary.
21371 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21372
21373 # Set to yes if building a shared library automatically hardcodes DIR into the library
21374 # and all subsequent libraries and executables linked against it.
21375 hardcode_automatic=$hardcode_automatic_CXX
21376
21377 # Variables whose values should be saved in libtool wrapper scripts and
21378 # restored at relink time.
21379 variables_saved_for_relink="$variables_saved_for_relink"
21380
21381 # Whether libtool must link a program against all its dependency libraries.
21382 link_all_deplibs=$link_all_deplibs_CXX
21383
21384 # Compile-time system search path for libraries
21385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21386
21387 # Run-time system search path for libraries
21388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21389
21390 # Fix the shell variable \$srcfile for the compiler.
21391 fix_srcfile_path="$fix_srcfile_path_CXX"
21392
21393 # Set to yes if exported symbols are required.
21394 always_export_symbols=$always_export_symbols_CXX
21395
21396 # The commands to list exported symbols.
21397 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21398
21399 # The commands to extract the exported symbol list from a shared archive.
21400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21401
21402 # Symbols that should not be listed in the preloaded symbols.
21403 exclude_expsyms=$lt_exclude_expsyms_CXX
21404
21405 # Symbols that must always be exported.
21406 include_expsyms=$lt_include_expsyms_CXX
21407
21408 # ### END LIBTOOL TAG CONFIG: $tagname
21409
21410 __EOF__
21411
21412
21413 else
21414   # If there is no Makefile yet, we rely on a make rule to execute
21415   # `config.status --recheck' to rerun these tests and create the
21416   # libtool script then.
21417   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21418   if test -f "$ltmain_in"; then
21419     test -f Makefile && make "$ltmain"
21420   fi
21421 fi
21422
21423
21424 ac_ext=c
21425 ac_cpp='$CPP $CPPFLAGS'
21426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21429
21430 CC=$lt_save_CC
21431 LDCXX=$LD
21432 LD=$lt_save_LD
21433 GCC=$lt_save_GCC
21434 with_gnu_ldcxx=$with_gnu_ld
21435 with_gnu_ld=$lt_save_with_gnu_ld
21436 lt_cv_path_LDCXX=$lt_cv_path_LD
21437 lt_cv_path_LD=$lt_save_path_LD
21438 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21439 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21440
21441         else
21442           tagname=""
21443         fi
21444         ;;
21445
21446       F77)
21447         if test -n "$F77" && test "X$F77" != "Xno"; then
21448
21449 ac_ext=f
21450 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21451 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21453
21454
21455 archive_cmds_need_lc_F77=no
21456 allow_undefined_flag_F77=
21457 always_export_symbols_F77=no
21458 archive_expsym_cmds_F77=
21459 export_dynamic_flag_spec_F77=
21460 hardcode_direct_F77=no
21461 hardcode_libdir_flag_spec_F77=
21462 hardcode_libdir_flag_spec_ld_F77=
21463 hardcode_libdir_separator_F77=
21464 hardcode_minus_L_F77=no
21465 hardcode_automatic_F77=no
21466 module_cmds_F77=
21467 module_expsym_cmds_F77=
21468 link_all_deplibs_F77=unknown
21469 old_archive_cmds_F77=$old_archive_cmds
21470 no_undefined_flag_F77=
21471 whole_archive_flag_spec_F77=
21472 enable_shared_with_static_runtimes_F77=no
21473
21474 # Source file extension for f77 test sources.
21475 ac_ext=f
21476
21477 # Object file extension for compiled f77 test sources.
21478 objext=o
21479 objext_F77=$objext
21480
21481 # Code to be used in simple compile tests
21482 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21483
21484 # Code to be used in simple link tests
21485 lt_simple_link_test_code="      program t\n      end\n"
21486
21487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21488
21489 # If no C compiler was specified, use CC.
21490 LTCC=${LTCC-"$CC"}
21491
21492 # If no C compiler flags were specified, use CFLAGS.
21493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21494
21495 # Allow CC to be a program name with arguments.
21496 compiler=$CC
21497
21498
21499 # save warnings/boilerplate of simple test code
21500 ac_outfile=conftest.$ac_objext
21501 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21503 _lt_compiler_boilerplate=`cat conftest.err`
21504 $rm conftest*
21505
21506 ac_outfile=conftest.$ac_objext
21507 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21509 _lt_linker_boilerplate=`cat conftest.err`
21510 $rm conftest*
21511
21512
21513 # Allow CC to be a program name with arguments.
21514 lt_save_CC="$CC"
21515 CC=${F77-"f77"}
21516 compiler=$CC
21517 compiler_F77=$CC
21518 for cc_temp in $compiler""; do
21519   case $cc_temp in
21520     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21521     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21522     \-*) ;;
21523     *) break;;
21524   esac
21525 done
21526 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21527
21528
21529 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21530 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21531 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21532 echo "${ECHO_T}$can_build_shared" >&6; }
21533
21534 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21535 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21536 test "$can_build_shared" = "no" && enable_shared=no
21537
21538 # On AIX, shared libraries and static libraries use the same namespace, and
21539 # are all built from PIC.
21540 case $host_os in
21541 aix3*)
21542   test "$enable_shared" = yes && enable_static=no
21543   if test -n "$RANLIB"; then
21544     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21545     postinstall_cmds='$RANLIB $lib'
21546   fi
21547   ;;
21548 aix4* | aix5*)
21549   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21550     test "$enable_shared" = yes && enable_static=no
21551   fi
21552   ;;
21553 esac
21554 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21555 echo "${ECHO_T}$enable_shared" >&6; }
21556
21557 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21558 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21559 # Make sure either enable_shared or enable_static is yes.
21560 test "$enable_shared" = yes || enable_static=yes
21561 { echo "$as_me:$LINENO: result: $enable_static" >&5
21562 echo "${ECHO_T}$enable_static" >&6; }
21563
21564 GCC_F77="$G77"
21565 LD_F77="$LD"
21566
21567 lt_prog_compiler_wl_F77=
21568 lt_prog_compiler_pic_F77=
21569 lt_prog_compiler_static_F77=
21570
21571 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21573
21574   if test "$GCC" = yes; then
21575     lt_prog_compiler_wl_F77='-Wl,'
21576     lt_prog_compiler_static_F77='-static'
21577
21578     case $host_os in
21579       aix*)
21580       # All AIX code is PIC.
21581       if test "$host_cpu" = ia64; then
21582         # AIX 5 now supports IA64 processor
21583         lt_prog_compiler_static_F77='-Bstatic'
21584       fi
21585       ;;
21586
21587     amigaos*)
21588       # FIXME: we need at least 68020 code to build shared libraries, but
21589       # adding the `-m68020' flag to GCC prevents building anything better,
21590       # like `-m68040'.
21591       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21592       ;;
21593
21594     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21595       # PIC is the default for these OSes.
21596       ;;
21597
21598     mingw* | pw32* | os2*)
21599       # This hack is so that the source file can tell whether it is being
21600       # built for inclusion in a dll (and should export symbols for example).
21601       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21602       ;;
21603
21604     darwin* | rhapsody*)
21605       # PIC is the default on this platform
21606       # Common symbols not allowed in MH_DYLIB files
21607       lt_prog_compiler_pic_F77='-fno-common'
21608       ;;
21609
21610     interix3*)
21611       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21612       # Instead, we relocate shared libraries at runtime.
21613       ;;
21614
21615     msdosdjgpp*)
21616       # Just because we use GCC doesn't mean we suddenly get shared libraries
21617       # on systems that don't support them.
21618       lt_prog_compiler_can_build_shared_F77=no
21619       enable_shared=no
21620       ;;
21621
21622     sysv4*MP*)
21623       if test -d /usr/nec; then
21624         lt_prog_compiler_pic_F77=-Kconform_pic
21625       fi
21626       ;;
21627
21628     hpux*)
21629       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21630       # not for PA HP-UX.
21631       case $host_cpu in
21632       hppa*64*|ia64*)
21633         # +Z the default
21634         ;;
21635       *)
21636         lt_prog_compiler_pic_F77='-fPIC'
21637         ;;
21638       esac
21639       ;;
21640
21641     *)
21642       lt_prog_compiler_pic_F77='-fPIC'
21643       ;;
21644     esac
21645   else
21646     # PORTME Check for flag to pass linker flags through the system compiler.
21647     case $host_os in
21648     aix*)
21649       lt_prog_compiler_wl_F77='-Wl,'
21650       if test "$host_cpu" = ia64; then
21651         # AIX 5 now supports IA64 processor
21652         lt_prog_compiler_static_F77='-Bstatic'
21653       else
21654         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21655       fi
21656       ;;
21657       darwin*)
21658         # PIC is the default on this platform
21659         # Common symbols not allowed in MH_DYLIB files
21660        case $cc_basename in
21661          xlc*)
21662          lt_prog_compiler_pic_F77='-qnocommon'
21663          lt_prog_compiler_wl_F77='-Wl,'
21664          ;;
21665        esac
21666        ;;
21667
21668     mingw* | pw32* | os2*)
21669       # This hack is so that the source file can tell whether it is being
21670       # built for inclusion in a dll (and should export symbols for example).
21671       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21672       ;;
21673
21674     hpux9* | hpux10* | hpux11*)
21675       lt_prog_compiler_wl_F77='-Wl,'
21676       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21677       # not for PA HP-UX.
21678       case $host_cpu in
21679       hppa*64*|ia64*)
21680         # +Z the default
21681         ;;
21682       *)
21683         lt_prog_compiler_pic_F77='+Z'
21684         ;;
21685       esac
21686       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21687       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21688       ;;
21689
21690     irix5* | irix6* | nonstopux*)
21691       lt_prog_compiler_wl_F77='-Wl,'
21692       # PIC (with -KPIC) is the default.
21693       lt_prog_compiler_static_F77='-non_shared'
21694       ;;
21695
21696     newsos6)
21697       lt_prog_compiler_pic_F77='-KPIC'
21698       lt_prog_compiler_static_F77='-Bstatic'
21699       ;;
21700
21701     linux*)
21702       case $cc_basename in
21703       icc* | ecc*)
21704         lt_prog_compiler_wl_F77='-Wl,'
21705         lt_prog_compiler_pic_F77='-KPIC'
21706         lt_prog_compiler_static_F77='-static'
21707         ;;
21708       pgcc* | pgf77* | pgf90* | pgf95*)
21709         # Portland Group compilers (*not* the Pentium gcc compiler,
21710         # which looks to be a dead project)
21711         lt_prog_compiler_wl_F77='-Wl,'
21712         lt_prog_compiler_pic_F77='-fpic'
21713         lt_prog_compiler_static_F77='-Bstatic'
21714         ;;
21715       ccc*)
21716         lt_prog_compiler_wl_F77='-Wl,'
21717         # All Alpha code is PIC.
21718         lt_prog_compiler_static_F77='-non_shared'
21719         ;;
21720       esac
21721       ;;
21722
21723     osf3* | osf4* | osf5*)
21724       lt_prog_compiler_wl_F77='-Wl,'
21725       # All OSF/1 code is PIC.
21726       lt_prog_compiler_static_F77='-non_shared'
21727       ;;
21728
21729     solaris*)
21730       lt_prog_compiler_pic_F77='-KPIC'
21731       lt_prog_compiler_static_F77='-Bstatic'
21732       case $cc_basename in
21733       f77* | f90* | f95*)
21734         lt_prog_compiler_wl_F77='-Qoption ld ';;
21735       *)
21736         lt_prog_compiler_wl_F77='-Wl,';;
21737       esac
21738       ;;
21739
21740     sunos4*)
21741       lt_prog_compiler_wl_F77='-Qoption ld '
21742       lt_prog_compiler_pic_F77='-PIC'
21743       lt_prog_compiler_static_F77='-Bstatic'
21744       ;;
21745
21746     sysv4 | sysv4.2uw2* | sysv4.3*)
21747       lt_prog_compiler_wl_F77='-Wl,'
21748       lt_prog_compiler_pic_F77='-KPIC'
21749       lt_prog_compiler_static_F77='-Bstatic'
21750       ;;
21751
21752     sysv4*MP*)
21753       if test -d /usr/nec ;then
21754         lt_prog_compiler_pic_F77='-Kconform_pic'
21755         lt_prog_compiler_static_F77='-Bstatic'
21756       fi
21757       ;;
21758
21759     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21760       lt_prog_compiler_wl_F77='-Wl,'
21761       lt_prog_compiler_pic_F77='-KPIC'
21762       lt_prog_compiler_static_F77='-Bstatic'
21763       ;;
21764
21765     unicos*)
21766       lt_prog_compiler_wl_F77='-Wl,'
21767       lt_prog_compiler_can_build_shared_F77=no
21768       ;;
21769
21770     uts4*)
21771       lt_prog_compiler_pic_F77='-pic'
21772       lt_prog_compiler_static_F77='-Bstatic'
21773       ;;
21774
21775     *)
21776       lt_prog_compiler_can_build_shared_F77=no
21777       ;;
21778     esac
21779   fi
21780
21781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21782 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21783
21784 #
21785 # Check to make sure the PIC flag actually works.
21786 #
21787 if test -n "$lt_prog_compiler_pic_F77"; then
21788
21789 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21790 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21791 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   lt_prog_compiler_pic_works_F77=no
21795   ac_outfile=conftest.$ac_objext
21796    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21797    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21798    # Insert the option either (1) after the last *FLAGS variable, or
21799    # (2) before a word containing "conftest.", or (3) at the end.
21800    # Note that $ac_compile itself does not contain backslashes and begins
21801    # with a dollar sign (not a hyphen), so the echo should work correctly.
21802    # The option is referenced via a variable to avoid confusing sed.
21803    lt_compile=`echo "$ac_compile" | $SED \
21804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21806    -e 's:$: $lt_compiler_flag:'`
21807    (eval echo "\"\$as_me:21807: $lt_compile\"" >&5)
21808    (eval "$lt_compile" 2>conftest.err)
21809    ac_status=$?
21810    cat conftest.err >&5
21811    echo "$as_me:21811: \$? = $ac_status" >&5
21812    if (exit $ac_status) && test -s "$ac_outfile"; then
21813      # The compiler can only warn and ignore the option if not recognized
21814      # So say no if there are warnings other than the usual output.
21815      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21816      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21817      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21818        lt_prog_compiler_pic_works_F77=yes
21819      fi
21820    fi
21821    $rm conftest*
21822
21823 fi
21824 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21825 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21826
21827 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21828     case $lt_prog_compiler_pic_F77 in
21829      "" | " "*) ;;
21830      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21831      esac
21832 else
21833     lt_prog_compiler_pic_F77=
21834      lt_prog_compiler_can_build_shared_F77=no
21835 fi
21836
21837 fi
21838 case $host_os in
21839   # For platforms which do not support PIC, -DPIC is meaningless:
21840   *djgpp*)
21841     lt_prog_compiler_pic_F77=
21842     ;;
21843   *)
21844     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21845     ;;
21846 esac
21847
21848 #
21849 # Check to make sure the static flag actually works.
21850 #
21851 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21852 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21853 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21854 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21855   echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857   lt_prog_compiler_static_works_F77=no
21858    save_LDFLAGS="$LDFLAGS"
21859    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21860    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21861    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21862      # The linker can only warn and ignore the option if not recognized
21863      # So say no if there are warnings
21864      if test -s conftest.err; then
21865        # Append any errors to the config.log.
21866        cat conftest.err 1>&5
21867        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21868        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21869        if diff conftest.exp conftest.er2 >/dev/null; then
21870          lt_prog_compiler_static_works_F77=yes
21871        fi
21872      else
21873        lt_prog_compiler_static_works_F77=yes
21874      fi
21875    fi
21876    $rm conftest*
21877    LDFLAGS="$save_LDFLAGS"
21878
21879 fi
21880 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21881 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21882
21883 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21884     :
21885 else
21886     lt_prog_compiler_static_F77=
21887 fi
21888
21889
21890 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21891 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21892 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21893   echo $ECHO_N "(cached) $ECHO_C" >&6
21894 else
21895   lt_cv_prog_compiler_c_o_F77=no
21896    $rm -r conftest 2>/dev/null
21897    mkdir conftest
21898    cd conftest
21899    mkdir out
21900    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21901
21902    lt_compiler_flag="-o out/conftest2.$ac_objext"
21903    # Insert the option either (1) after the last *FLAGS variable, or
21904    # (2) before a word containing "conftest.", or (3) at the end.
21905    # Note that $ac_compile itself does not contain backslashes and begins
21906    # with a dollar sign (not a hyphen), so the echo should work correctly.
21907    lt_compile=`echo "$ac_compile" | $SED \
21908    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21909    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21910    -e 's:$: $lt_compiler_flag:'`
21911    (eval echo "\"\$as_me:21911: $lt_compile\"" >&5)
21912    (eval "$lt_compile" 2>out/conftest.err)
21913    ac_status=$?
21914    cat out/conftest.err >&5
21915    echo "$as_me:21915: \$? = $ac_status" >&5
21916    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21917    then
21918      # The compiler can only warn and ignore the option if not recognized
21919      # So say no if there are warnings
21920      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21921      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21922      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21923        lt_cv_prog_compiler_c_o_F77=yes
21924      fi
21925    fi
21926    chmod u+w . 2>&5
21927    $rm conftest*
21928    # SGI C++ compiler will create directory out/ii_files/ for
21929    # template instantiation
21930    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21931    $rm out/* && rmdir out
21932    cd ..
21933    rmdir conftest
21934    $rm conftest*
21935
21936 fi
21937 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21938 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21939
21940
21941 hard_links="nottested"
21942 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21943   # do not overwrite the value of need_locks provided by the user
21944   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21945 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21946   hard_links=yes
21947   $rm conftest*
21948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21949   touch conftest.a
21950   ln conftest.a conftest.b 2>&5 || hard_links=no
21951   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21952   { echo "$as_me:$LINENO: result: $hard_links" >&5
21953 echo "${ECHO_T}$hard_links" >&6; }
21954   if test "$hard_links" = no; then
21955     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21956 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21957     need_locks=warn
21958   fi
21959 else
21960   need_locks=no
21961 fi
21962
21963 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21964 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21965
21966   runpath_var=
21967   allow_undefined_flag_F77=
21968   enable_shared_with_static_runtimes_F77=no
21969   archive_cmds_F77=
21970   archive_expsym_cmds_F77=
21971   old_archive_From_new_cmds_F77=
21972   old_archive_from_expsyms_cmds_F77=
21973   export_dynamic_flag_spec_F77=
21974   whole_archive_flag_spec_F77=
21975   thread_safe_flag_spec_F77=
21976   hardcode_libdir_flag_spec_F77=
21977   hardcode_libdir_flag_spec_ld_F77=
21978   hardcode_libdir_separator_F77=
21979   hardcode_direct_F77=no
21980   hardcode_minus_L_F77=no
21981   hardcode_shlibpath_var_F77=unsupported
21982   link_all_deplibs_F77=unknown
21983   hardcode_automatic_F77=no
21984   module_cmds_F77=
21985   module_expsym_cmds_F77=
21986   always_export_symbols_F77=no
21987   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21988   # include_expsyms should be a list of space-separated symbols to be *always*
21989   # included in the symbol list
21990   include_expsyms_F77=
21991   # exclude_expsyms can be an extended regexp of symbols to exclude
21992   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21993   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21994   # as well as any symbol that contains `d'.
21995   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21996   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21997   # platforms (ab)use it in PIC code, but their linkers get confused if
21998   # the symbol is explicitly referenced.  Since portable code cannot
21999   # rely on this symbol name, it's probably fine to never include it in
22000   # preloaded symbol tables.
22001   extract_expsyms_cmds=
22002   # Just being paranoid about ensuring that cc_basename is set.
22003   for cc_temp in $compiler""; do
22004   case $cc_temp in
22005     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22006     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22007     \-*) ;;
22008     *) break;;
22009   esac
22010 done
22011 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22012
22013   case $host_os in
22014   cygwin* | mingw* | pw32*)
22015     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22016     # When not using gcc, we currently assume that we are using
22017     # Microsoft Visual C++.
22018     if test "$GCC" != yes; then
22019       with_gnu_ld=no
22020     fi
22021     ;;
22022   interix*)
22023     # we just hope/assume this is gcc and not c89 (= MSVC++)
22024     with_gnu_ld=yes
22025     ;;
22026   openbsd*)
22027     with_gnu_ld=no
22028     ;;
22029   esac
22030
22031   ld_shlibs_F77=yes
22032   if test "$with_gnu_ld" = yes; then
22033     # If archive_cmds runs LD, not CC, wlarc should be empty
22034     wlarc='${wl}'
22035
22036     # Set some defaults for GNU ld with shared library support. These
22037     # are reset later if shared libraries are not supported. Putting them
22038     # here allows them to be overridden if necessary.
22039     runpath_var=LD_RUN_PATH
22040     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22041     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22042     # ancient GNU ld didn't support --whole-archive et. al.
22043     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22044         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22045       else
22046         whole_archive_flag_spec_F77=
22047     fi
22048     supports_anon_versioning=no
22049     case `$LD -v 2>/dev/null` in
22050       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22051       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22052       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22053       *\ 2.11.*) ;; # other 2.11 versions
22054       *) supports_anon_versioning=yes ;;
22055     esac
22056
22057     # See if GNU ld supports shared libraries.
22058     case $host_os in
22059     aix3* | aix4* | aix5*)
22060       # On AIX/PPC, the GNU linker is very broken
22061       if test "$host_cpu" != ia64; then
22062         ld_shlibs_F77=no
22063         cat <<EOF 1>&2
22064
22065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22066 *** to be unable to reliably create shared libraries on AIX.
22067 *** Therefore, libtool is disabling shared libraries support.  If you
22068 *** really care for shared libraries, you may want to modify your PATH
22069 *** so that a non-GNU linker is found, and then restart.
22070
22071 EOF
22072       fi
22073       ;;
22074
22075     amigaos*)
22076       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)'
22077       hardcode_libdir_flag_spec_F77='-L$libdir'
22078       hardcode_minus_L_F77=yes
22079
22080       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22081       # that the semantics of dynamic libraries on AmigaOS, at least up
22082       # to version 4, is to share data among multiple programs linked
22083       # with the same dynamic library.  Since this doesn't match the
22084       # behavior of shared libraries on other platforms, we can't use
22085       # them.
22086       ld_shlibs_F77=no
22087       ;;
22088
22089     beos*)
22090       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22091         allow_undefined_flag_F77=unsupported
22092         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22093         # support --undefined.  This deserves some investigation.  FIXME
22094         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22095       else
22096         ld_shlibs_F77=no
22097       fi
22098       ;;
22099
22100     cygwin* | mingw* | pw32*)
22101       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22102       # as there is no search path for DLLs.
22103       hardcode_libdir_flag_spec_F77='-L$libdir'
22104       allow_undefined_flag_F77=unsupported
22105       always_export_symbols_F77=no
22106       enable_shared_with_static_runtimes_F77=yes
22107       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22108
22109       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22110         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22111         # If the export-symbols file already is a .def file (1st line
22112         # is EXPORTS), use it as is; otherwise, prepend...
22113         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22114           cp $export_symbols $output_objdir/$soname.def;
22115         else
22116           echo EXPORTS > $output_objdir/$soname.def;
22117           cat $export_symbols >> $output_objdir/$soname.def;
22118         fi~
22119         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22120       else
22121         ld_shlibs_F77=no
22122       fi
22123       ;;
22124
22125     interix3*)
22126       hardcode_direct_F77=no
22127       hardcode_shlibpath_var_F77=no
22128       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22129       export_dynamic_flag_spec_F77='${wl}-E'
22130       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22131       # Instead, shared libraries are loaded at an image base (0x10000000 by
22132       # default) and relocated if they conflict, which is a slow very memory
22133       # consuming and fragmenting process.  To avoid this, we pick a random,
22134       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22135       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22136       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'
22137       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'
22138       ;;
22139
22140     linux*)
22141       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22142         tmp_addflag=
22143         case $cc_basename,$host_cpu in
22144         pgcc*)                          # Portland Group C compiler
22145           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'
22146           tmp_addflag=' $pic_flag'
22147           ;;
22148         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22149           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'
22150           tmp_addflag=' $pic_flag -Mnomain' ;;
22151         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22152           tmp_addflag=' -i_dynamic' ;;
22153         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22154           tmp_addflag=' -i_dynamic -nofor_main' ;;
22155         ifc* | ifort*)                  # Intel Fortran compiler
22156           tmp_addflag=' -nofor_main' ;;
22157         esac
22158         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22159
22160         if test $supports_anon_versioning = yes; then
22161           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22162   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22163   $echo "local: *; };" >> $output_objdir/$libname.ver~
22164           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22165         fi
22166       else
22167         ld_shlibs_F77=no
22168       fi
22169       ;;
22170
22171     netbsd*)
22172       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22173         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22174         wlarc=
22175       else
22176         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22178       fi
22179       ;;
22180
22181     solaris*)
22182       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22183         ld_shlibs_F77=no
22184         cat <<EOF 1>&2
22185
22186 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22187 *** create shared libraries on Solaris systems.  Therefore, libtool
22188 *** is disabling shared libraries support.  We urge you to upgrade GNU
22189 *** binutils to release 2.9.1 or newer.  Another option is to modify
22190 *** your PATH or compiler configuration so that the native linker is
22191 *** used, and then restart.
22192
22193 EOF
22194       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22195         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22196         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22197       else
22198         ld_shlibs_F77=no
22199       fi
22200       ;;
22201
22202     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22203       case `$LD -v 2>&1` in
22204         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22205         ld_shlibs_F77=no
22206         cat <<_LT_EOF 1>&2
22207
22208 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22209 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22210 *** is disabling shared libraries support.  We urge you to upgrade GNU
22211 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22212 *** your PATH or compiler configuration so that the native linker is
22213 *** used, and then restart.
22214
22215 _LT_EOF
22216         ;;
22217         *)
22218           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22219             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22220             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22221             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22222           else
22223             ld_shlibs_F77=no
22224           fi
22225         ;;
22226       esac
22227       ;;
22228
22229     sunos4*)
22230       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22231       wlarc=
22232       hardcode_direct_F77=yes
22233       hardcode_shlibpath_var_F77=no
22234       ;;
22235
22236     *)
22237       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22238         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22239         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22240       else
22241         ld_shlibs_F77=no
22242       fi
22243       ;;
22244     esac
22245
22246     if test "$ld_shlibs_F77" = no; then
22247       runpath_var=
22248       hardcode_libdir_flag_spec_F77=
22249       export_dynamic_flag_spec_F77=
22250       whole_archive_flag_spec_F77=
22251     fi
22252   else
22253     # PORTME fill in a description of your system's linker (not GNU ld)
22254     case $host_os in
22255     aix3*)
22256       allow_undefined_flag_F77=unsupported
22257       always_export_symbols_F77=yes
22258       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'
22259       # Note: this linker hardcodes the directories in LIBPATH if there
22260       # are no directories specified by -L.
22261       hardcode_minus_L_F77=yes
22262       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22263         # Neither direct hardcoding nor static linking is supported with a
22264         # broken collect2.
22265         hardcode_direct_F77=unsupported
22266       fi
22267       ;;
22268
22269     aix4* | aix5*)
22270       if test "$host_cpu" = ia64; then
22271         # On IA64, the linker does run time linking by default, so we don't
22272         # have to do anything special.
22273         aix_use_runtimelinking=no
22274         exp_sym_flag='-Bexport'
22275         no_entry_flag=""
22276       else
22277         # If we're using GNU nm, then we don't want the "-C" option.
22278         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22279         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22280           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'
22281         else
22282           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'
22283         fi
22284         aix_use_runtimelinking=no
22285
22286         # Test if we are trying to use run time linking or normal
22287         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22288         # need to do runtime linking.
22289         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22290           for ld_flag in $LDFLAGS; do
22291           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22292             aix_use_runtimelinking=yes
22293             break
22294           fi
22295           done
22296           ;;
22297         esac
22298
22299         exp_sym_flag='-bexport'
22300         no_entry_flag='-bnoentry'
22301       fi
22302
22303       # When large executables or shared objects are built, AIX ld can
22304       # have problems creating the table of contents.  If linking a library
22305       # or program results in "error TOC overflow" add -mminimal-toc to
22306       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22307       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22308
22309       archive_cmds_F77=''
22310       hardcode_direct_F77=yes
22311       hardcode_libdir_separator_F77=':'
22312       link_all_deplibs_F77=yes
22313
22314       if test "$GCC" = yes; then
22315         case $host_os in aix4.[012]|aix4.[012].*)
22316         # We only want to do this on AIX 4.2 and lower, the check
22317         # below for broken collect2 doesn't work under 4.3+
22318           collect2name=`${CC} -print-prog-name=collect2`
22319           if test -f "$collect2name" && \
22320            strings "$collect2name" | grep resolve_lib_name >/dev/null
22321           then
22322           # We have reworked collect2
22323           hardcode_direct_F77=yes
22324           else
22325           # We have old collect2
22326           hardcode_direct_F77=unsupported
22327           # It fails to find uninstalled libraries when the uninstalled
22328           # path is not listed in the libpath.  Setting hardcode_minus_L
22329           # to unsupported forces relinking
22330           hardcode_minus_L_F77=yes
22331           hardcode_libdir_flag_spec_F77='-L$libdir'
22332           hardcode_libdir_separator_F77=
22333           fi
22334           ;;
22335         esac
22336         shared_flag='-shared'
22337         if test "$aix_use_runtimelinking" = yes; then
22338           shared_flag="$shared_flag "'${wl}-G'
22339         fi
22340       else
22341         # not using gcc
22342         if test "$host_cpu" = ia64; then
22343         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22344         # chokes on -Wl,-G. The following line is correct:
22345           shared_flag='-G'
22346         else
22347           if test "$aix_use_runtimelinking" = yes; then
22348             shared_flag='${wl}-G'
22349           else
22350             shared_flag='${wl}-bM:SRE'
22351           fi
22352         fi
22353       fi
22354
22355       # It seems that -bexpall does not export symbols beginning with
22356       # underscore (_), so it is better to generate a list of symbols to export.
22357       always_export_symbols_F77=yes
22358       if test "$aix_use_runtimelinking" = yes; then
22359         # Warning - without using the other runtime loading flags (-brtl),
22360         # -berok will link without error, but may produce a broken library.
22361         allow_undefined_flag_F77='-berok'
22362        # Determine the default libpath from the value encoded in an empty executable.
22363        cat >conftest.$ac_ext <<_ACEOF
22364       program main
22365
22366       end
22367 _ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375   (eval "$ac_link") 2>conftest.er1
22376   ac_status=$?
22377   grep -v '^ *+' conftest.er1 >conftest.err
22378   rm -f conftest.er1
22379   cat conftest.err >&5
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } &&
22382          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22383   { (case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_try") 2>&5
22389   ac_status=$?
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); }; } &&
22392          { ac_try='test -s conftest$ac_exeext'
22393   { (case "(($ac_try" in
22394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395   *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398   (eval "$ac_try") 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; }; then
22402
22403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22404 }'`
22405 # Check for a 64-bit object if we didn't find anything.
22406 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; }
22407 }'`; fi
22408 else
22409   echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412
22413 fi
22414
22415 rm -f core conftest.err conftest.$ac_objext \
22416       conftest$ac_exeext conftest.$ac_ext
22417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22418
22419        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22420         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"
22421        else
22422         if test "$host_cpu" = ia64; then
22423           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22424           allow_undefined_flag_F77="-z nodefs"
22425           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"
22426         else
22427          # Determine the default libpath from the value encoded in an empty executable.
22428          cat >conftest.$ac_ext <<_ACEOF
22429       program main
22430
22431       end
22432 _ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440   (eval "$ac_link") 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } &&
22447          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22448   { (case "(($ac_try" in
22449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450   *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453   (eval "$ac_try") 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); }; } &&
22457          { ac_try='test -s conftest$ac_exeext'
22458   { (case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_try") 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467
22468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22469 }'`
22470 # Check for a 64-bit object if we didn't find anything.
22471 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; }
22472 }'`; fi
22473 else
22474   echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477
22478 fi
22479
22480 rm -f core conftest.err conftest.$ac_objext \
22481       conftest$ac_exeext conftest.$ac_ext
22482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22483
22484          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22485           # Warning - without using the other run time loading flags,
22486           # -berok will link without error, but may produce a broken library.
22487           no_undefined_flag_F77=' ${wl}-bernotok'
22488           allow_undefined_flag_F77=' ${wl}-berok'
22489           # Exported symbols can be pulled into shared objects from archives
22490           whole_archive_flag_spec_F77='$convenience'
22491           archive_cmds_need_lc_F77=yes
22492           # This is similar to how AIX traditionally builds its shared libraries.
22493           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'
22494         fi
22495       fi
22496       ;;
22497
22498     amigaos*)
22499       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)'
22500       hardcode_libdir_flag_spec_F77='-L$libdir'
22501       hardcode_minus_L_F77=yes
22502       # see comment about different semantics on the GNU ld section
22503       ld_shlibs_F77=no
22504       ;;
22505
22506     bsdi[45]*)
22507       export_dynamic_flag_spec_F77=-rdynamic
22508       ;;
22509
22510     cygwin* | mingw* | pw32*)
22511       # When not using gcc, we currently assume that we are using
22512       # Microsoft Visual C++.
22513       # hardcode_libdir_flag_spec is actually meaningless, as there is
22514       # no search path for DLLs.
22515       hardcode_libdir_flag_spec_F77=' '
22516       allow_undefined_flag_F77=unsupported
22517       # Tell ltmain to make .lib files, not .a files.
22518       libext=lib
22519       # Tell ltmain to make .dll files, not .so files.
22520       shrext_cmds=".dll"
22521       # FIXME: Setting linknames here is a bad hack.
22522       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22523       # The linker will automatically build a .lib file if we build a DLL.
22524       old_archive_From_new_cmds_F77='true'
22525       # FIXME: Should let the user specify the lib program.
22526       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22527       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22528       enable_shared_with_static_runtimes_F77=yes
22529       ;;
22530
22531     darwin* | rhapsody*)
22532       case $host_os in
22533         rhapsody* | darwin1.[012])
22534          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22535          ;;
22536        *) # Darwin 1.3 on
22537          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22538            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22539          else
22540            case ${MACOSX_DEPLOYMENT_TARGET} in
22541              10.[012])
22542                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22543                ;;
22544              10.*)
22545                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22546                ;;
22547            esac
22548          fi
22549          ;;
22550       esac
22551       archive_cmds_need_lc_F77=no
22552       hardcode_direct_F77=no
22553       hardcode_automatic_F77=yes
22554       hardcode_shlibpath_var_F77=unsupported
22555       whole_archive_flag_spec_F77=''
22556       link_all_deplibs_F77=yes
22557     if test "$GCC" = yes ; then
22558         output_verbose_link_cmd='echo'
22559         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22560       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22561       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22562       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}'
22563       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}'
22564     else
22565       case $cc_basename in
22566         xlc*)
22567          output_verbose_link_cmd='echo'
22568          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22569          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22570           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22571          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}'
22572           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}'
22573           ;;
22574        *)
22575          ld_shlibs_F77=no
22576           ;;
22577       esac
22578     fi
22579       ;;
22580
22581     dgux*)
22582       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22583       hardcode_libdir_flag_spec_F77='-L$libdir'
22584       hardcode_shlibpath_var_F77=no
22585       ;;
22586
22587     freebsd1*)
22588       ld_shlibs_F77=no
22589       ;;
22590
22591     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22592     # support.  Future versions do this automatically, but an explicit c++rt0.o
22593     # does not break anything, and helps significantly (at the cost of a little
22594     # extra space).
22595     freebsd2.2*)
22596       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22597       hardcode_libdir_flag_spec_F77='-R$libdir'
22598       hardcode_direct_F77=yes
22599       hardcode_shlibpath_var_F77=no
22600       ;;
22601
22602     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22603     freebsd2*)
22604       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22605       hardcode_direct_F77=yes
22606       hardcode_minus_L_F77=yes
22607       hardcode_shlibpath_var_F77=no
22608       ;;
22609
22610     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22611     freebsd* | kfreebsd*-gnu | dragonfly*)
22612       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22613       hardcode_libdir_flag_spec_F77='-R$libdir'
22614       hardcode_direct_F77=yes
22615       hardcode_shlibpath_var_F77=no
22616       ;;
22617
22618     hpux9*)
22619       if test "$GCC" = yes; then
22620         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'
22621       else
22622         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'
22623       fi
22624       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22625       hardcode_libdir_separator_F77=:
22626       hardcode_direct_F77=yes
22627
22628       # hardcode_minus_L: Not really in the search PATH,
22629       # but as the default location of the library.
22630       hardcode_minus_L_F77=yes
22631       export_dynamic_flag_spec_F77='${wl}-E'
22632       ;;
22633
22634     hpux10*)
22635       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22636         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22637       else
22638         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22639       fi
22640       if test "$with_gnu_ld" = no; then
22641         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22642         hardcode_libdir_separator_F77=:
22643
22644         hardcode_direct_F77=yes
22645         export_dynamic_flag_spec_F77='${wl}-E'
22646
22647         # hardcode_minus_L: Not really in the search PATH,
22648         # but as the default location of the library.
22649         hardcode_minus_L_F77=yes
22650       fi
22651       ;;
22652
22653     hpux11*)
22654       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22655         case $host_cpu in
22656         hppa*64*)
22657           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22658           ;;
22659         ia64*)
22660           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22661           ;;
22662         *)
22663           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22664           ;;
22665         esac
22666       else
22667         case $host_cpu in
22668         hppa*64*)
22669           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22670           ;;
22671         ia64*)
22672           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22673           ;;
22674         *)
22675           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22676           ;;
22677         esac
22678       fi
22679       if test "$with_gnu_ld" = no; then
22680         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22681         hardcode_libdir_separator_F77=:
22682
22683         case $host_cpu in
22684         hppa*64*|ia64*)
22685           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22686           hardcode_direct_F77=no
22687           hardcode_shlibpath_var_F77=no
22688           ;;
22689         *)
22690           hardcode_direct_F77=yes
22691           export_dynamic_flag_spec_F77='${wl}-E'
22692
22693           # hardcode_minus_L: Not really in the search PATH,
22694           # but as the default location of the library.
22695           hardcode_minus_L_F77=yes
22696           ;;
22697         esac
22698       fi
22699       ;;
22700
22701     irix5* | irix6* | nonstopux*)
22702       if test "$GCC" = yes; then
22703         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'
22704       else
22705         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'
22706         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22707       fi
22708       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22709       hardcode_libdir_separator_F77=:
22710       link_all_deplibs_F77=yes
22711       ;;
22712
22713     netbsd*)
22714       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22715         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22716       else
22717         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22718       fi
22719       hardcode_libdir_flag_spec_F77='-R$libdir'
22720       hardcode_direct_F77=yes
22721       hardcode_shlibpath_var_F77=no
22722       ;;
22723
22724     newsos6)
22725       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22726       hardcode_direct_F77=yes
22727       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22728       hardcode_libdir_separator_F77=:
22729       hardcode_shlibpath_var_F77=no
22730       ;;
22731
22732     openbsd*)
22733       hardcode_direct_F77=yes
22734       hardcode_shlibpath_var_F77=no
22735       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22736         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22737         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22738         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22739         export_dynamic_flag_spec_F77='${wl}-E'
22740       else
22741        case $host_os in
22742          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22743            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22744            hardcode_libdir_flag_spec_F77='-R$libdir'
22745            ;;
22746          *)
22747            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22748            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22749            ;;
22750        esac
22751       fi
22752       ;;
22753
22754     os2*)
22755       hardcode_libdir_flag_spec_F77='-L$libdir'
22756       hardcode_minus_L_F77=yes
22757       allow_undefined_flag_F77=unsupported
22758       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'
22759       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22760       ;;
22761
22762     osf3*)
22763       if test "$GCC" = yes; then
22764         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22765         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'
22766       else
22767         allow_undefined_flag_F77=' -expect_unresolved \*'
22768         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'
22769       fi
22770       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22771       hardcode_libdir_separator_F77=:
22772       ;;
22773
22774     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22775       if test "$GCC" = yes; then
22776         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22777         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'
22778         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22779       else
22780         allow_undefined_flag_F77=' -expect_unresolved \*'
22781         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'
22782         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~
22783         $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'
22784
22785         # Both c and cxx compiler support -rpath directly
22786         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22787       fi
22788       hardcode_libdir_separator_F77=:
22789       ;;
22790
22791     solaris*)
22792       no_undefined_flag_F77=' -z text'
22793       if test "$GCC" = yes; then
22794         wlarc='${wl}'
22795         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22797           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22798       else
22799         wlarc=''
22800         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22802         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22803       fi
22804       hardcode_libdir_flag_spec_F77='-R$libdir'
22805       hardcode_shlibpath_var_F77=no
22806       case $host_os in
22807       solaris2.[0-5] | solaris2.[0-5].*) ;;
22808       *)
22809         # The compiler driver will combine linker options so we
22810         # cannot just pass the convience library names through
22811         # without $wl, iff we do not link with $LD.
22812         # Luckily, gcc supports the same syntax we need for Sun Studio.
22813         # Supported since Solaris 2.6 (maybe 2.5.1?)
22814         case $wlarc in
22815         '')
22816           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22817         *)
22818           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' ;;
22819         esac ;;
22820       esac
22821       link_all_deplibs_F77=yes
22822       ;;
22823
22824     sunos4*)
22825       if test "x$host_vendor" = xsequent; then
22826         # Use $CC to link under sequent, because it throws in some extra .o
22827         # files that make .init and .fini sections work.
22828         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22829       else
22830         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22831       fi
22832       hardcode_libdir_flag_spec_F77='-L$libdir'
22833       hardcode_direct_F77=yes
22834       hardcode_minus_L_F77=yes
22835       hardcode_shlibpath_var_F77=no
22836       ;;
22837
22838     sysv4)
22839       case $host_vendor in
22840         sni)
22841           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22842           hardcode_direct_F77=yes # is this really true???
22843         ;;
22844         siemens)
22845           ## LD is ld it makes a PLAMLIB
22846           ## CC just makes a GrossModule.
22847           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22848           reload_cmds_F77='$CC -r -o $output$reload_objs'
22849           hardcode_direct_F77=no
22850         ;;
22851         motorola)
22852           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22853           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22854         ;;
22855       esac
22856       runpath_var='LD_RUN_PATH'
22857       hardcode_shlibpath_var_F77=no
22858       ;;
22859
22860     sysv4.3*)
22861       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22862       hardcode_shlibpath_var_F77=no
22863       export_dynamic_flag_spec_F77='-Bexport'
22864       ;;
22865
22866     sysv4*MP*)
22867       if test -d /usr/nec; then
22868         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22869         hardcode_shlibpath_var_F77=no
22870         runpath_var=LD_RUN_PATH
22871         hardcode_runpath_var=yes
22872         ld_shlibs_F77=yes
22873       fi
22874       ;;
22875
22876     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22877       no_undefined_flag_F77='${wl}-z,text'
22878       archive_cmds_need_lc_F77=no
22879       hardcode_shlibpath_var_F77=no
22880       runpath_var='LD_RUN_PATH'
22881
22882       if test "$GCC" = yes; then
22883         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22884         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22885       else
22886         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22887         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22888       fi
22889       ;;
22890
22891     sysv5* | sco3.2v5* | sco5v6*)
22892       # Note: We can NOT use -z defs as we might desire, because we do not
22893       # link with -lc, and that would cause any symbols used from libc to
22894       # always be unresolved, which means just about no library would
22895       # ever link correctly.  If we're not using GNU ld we use -z text
22896       # though, which does catch some bad symbols but isn't as heavy-handed
22897       # as -z defs.
22898       no_undefined_flag_F77='${wl}-z,text'
22899       allow_undefined_flag_F77='${wl}-z,nodefs'
22900       archive_cmds_need_lc_F77=no
22901       hardcode_shlibpath_var_F77=no
22902       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22903       hardcode_libdir_separator_F77=':'
22904       link_all_deplibs_F77=yes
22905       export_dynamic_flag_spec_F77='${wl}-Bexport'
22906       runpath_var='LD_RUN_PATH'
22907
22908       if test "$GCC" = yes; then
22909         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22910         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22911       else
22912         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22913         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22914       fi
22915       ;;
22916
22917     uts4*)
22918       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22919       hardcode_libdir_flag_spec_F77='-L$libdir'
22920       hardcode_shlibpath_var_F77=no
22921       ;;
22922
22923     *)
22924       ld_shlibs_F77=no
22925       ;;
22926     esac
22927   fi
22928
22929 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22930 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22931 test "$ld_shlibs_F77" = no && can_build_shared=no
22932
22933 #
22934 # Do we need to explicitly link libc?
22935 #
22936 case "x$archive_cmds_need_lc_F77" in
22937 x|xyes)
22938   # Assume -lc should be added
22939   archive_cmds_need_lc_F77=yes
22940
22941   if test "$enable_shared" = yes && test "$GCC" = yes; then
22942     case $archive_cmds_F77 in
22943     *'~'*)
22944       # FIXME: we may have to deal with multi-command sequences.
22945       ;;
22946     '$CC '*)
22947       # Test whether the compiler implicitly links with -lc since on some
22948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22949       # to ld, don't add -lc before -lgcc.
22950       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22952       $rm conftest*
22953       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22954
22955       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22956   (eval $ac_compile) 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } 2>conftest.err; then
22960         soname=conftest
22961         lib=conftest
22962         libobjs=conftest.$ac_objext
22963         deplibs=
22964         wl=$lt_prog_compiler_wl_F77
22965         pic_flag=$lt_prog_compiler_pic_F77
22966         compiler_flags=-v
22967         linker_flags=-v
22968         verstring=
22969         output_objdir=.
22970         libname=conftest
22971         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22972         allow_undefined_flag_F77=
22973         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22974   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22975   ac_status=$?
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); }
22978         then
22979           archive_cmds_need_lc_F77=no
22980         else
22981           archive_cmds_need_lc_F77=yes
22982         fi
22983         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22984       else
22985         cat conftest.err 1>&5
22986       fi
22987       $rm conftest*
22988       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22989 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22990       ;;
22991     esac
22992   fi
22993   ;;
22994 esac
22995
22996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22998 library_names_spec=
22999 libname_spec='lib$name'
23000 soname_spec=
23001 shrext_cmds=".so"
23002 postinstall_cmds=
23003 postuninstall_cmds=
23004 finish_cmds=
23005 finish_eval=
23006 shlibpath_var=
23007 shlibpath_overrides_runpath=unknown
23008 version_type=none
23009 dynamic_linker="$host_os ld.so"
23010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23011 if test "$GCC" = yes; then
23012   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23013   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23014     # if the path contains ";" then we assume it to be the separator
23015     # otherwise default to the standard path separator (i.e. ":") - it is
23016     # assumed that no part of a normal pathname contains ";" but that should
23017     # okay in the real world where ";" in dirpaths is itself problematic.
23018     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23019   else
23020     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23021   fi
23022 else
23023   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23024 fi
23025 need_lib_prefix=unknown
23026 hardcode_into_libs=no
23027
23028 # when you set need_version to no, make sure it does not cause -set_version
23029 # flags to be left without arguments
23030 need_version=unknown
23031
23032 case $host_os in
23033 aix3*)
23034   version_type=linux
23035   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23036   shlibpath_var=LIBPATH
23037
23038   # AIX 3 has no versioning support, so we append a major version to the name.
23039   soname_spec='${libname}${release}${shared_ext}$major'
23040   ;;
23041
23042 aix4* | aix5*)
23043   version_type=linux
23044   need_lib_prefix=no
23045   need_version=no
23046   hardcode_into_libs=yes
23047   if test "$host_cpu" = ia64; then
23048     # AIX 5 supports IA64
23049     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23050     shlibpath_var=LD_LIBRARY_PATH
23051   else
23052     # With GCC up to 2.95.x, collect2 would create an import file
23053     # for dependence libraries.  The import file would start with
23054     # the line `#! .'.  This would cause the generated library to
23055     # depend on `.', always an invalid library.  This was fixed in
23056     # development snapshots of GCC prior to 3.0.
23057     case $host_os in
23058       aix4 | aix4.[01] | aix4.[01].*)
23059       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23060            echo ' yes '
23061            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23062         :
23063       else
23064         can_build_shared=no
23065       fi
23066       ;;
23067     esac
23068     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23069     # soname into executable. Probably we can add versioning support to
23070     # collect2, so additional links can be useful in future.
23071     if test "$aix_use_runtimelinking" = yes; then
23072       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23073       # instead of lib<name>.a to let people know that these are not
23074       # typical AIX shared libraries.
23075       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23076     else
23077       # We preserve .a as extension for shared libraries through AIX4.2
23078       # and later when we are not doing run time linking.
23079       library_names_spec='${libname}${release}.a $libname.a'
23080       soname_spec='${libname}${release}${shared_ext}$major'
23081     fi
23082     shlibpath_var=LIBPATH
23083   fi
23084   ;;
23085
23086 amigaos*)
23087   library_names_spec='$libname.ixlibrary $libname.a'
23088   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23089   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'
23090   ;;
23091
23092 beos*)
23093   library_names_spec='${libname}${shared_ext}'
23094   dynamic_linker="$host_os ld.so"
23095   shlibpath_var=LIBRARY_PATH
23096   ;;
23097
23098 bsdi[45]*)
23099   version_type=linux
23100   need_version=no
23101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23102   soname_spec='${libname}${release}${shared_ext}$major'
23103   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23104   shlibpath_var=LD_LIBRARY_PATH
23105   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23106   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23107   # the default ld.so.conf also contains /usr/contrib/lib and
23108   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23109   # libtool to hard-code these into programs
23110   ;;
23111
23112 cygwin* | mingw* | pw32*)
23113   version_type=windows
23114   shrext_cmds=".dll"
23115   need_version=no
23116   need_lib_prefix=no
23117
23118   case $GCC,$host_os in
23119   yes,cygwin* | yes,mingw* | yes,pw32*)
23120     library_names_spec='$libname.dll.a'
23121     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23122     postinstall_cmds='base_file=`basename \${file}`~
23123       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23124       dldir=$destdir/`dirname \$dlpath`~
23125       test -d \$dldir || mkdir -p \$dldir~
23126       $install_prog $dir/$dlname \$dldir/$dlname~
23127       chmod a+x \$dldir/$dlname'
23128     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23129       dlpath=$dir/\$dldll~
23130        $rm \$dlpath'
23131     shlibpath_overrides_runpath=yes
23132
23133     case $host_os in
23134     cygwin*)
23135       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23136       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23137       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23138       ;;
23139     mingw*)
23140       # MinGW DLLs use traditional 'lib' prefix
23141       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23142       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23143       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23144         # It is most probably a Windows format PATH printed by
23145         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23146         # path with ; separators, and with drive letters. We can handle the
23147         # drive letters (cygwin fileutils understands them), so leave them,
23148         # especially as we might pass files found there to a mingw objdump,
23149         # which wouldn't understand a cygwinified path. Ahh.
23150         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23151       else
23152         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23153       fi
23154       ;;
23155     pw32*)
23156       # pw32 DLLs use 'pw' prefix rather than 'lib'
23157       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23158       ;;
23159     esac
23160     ;;
23161
23162   *)
23163     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23164     ;;
23165   esac
23166   dynamic_linker='Win32 ld.exe'
23167   # FIXME: first we should search . and the directory the executable is in
23168   shlibpath_var=PATH
23169   ;;
23170
23171 darwin* | rhapsody*)
23172   dynamic_linker="$host_os dyld"
23173   version_type=darwin
23174   need_lib_prefix=no
23175   need_version=no
23176   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23177   soname_spec='${libname}${release}${major}$shared_ext'
23178   shlibpath_overrides_runpath=yes
23179   shlibpath_var=DYLD_LIBRARY_PATH
23180   shrext_cmds='.dylib'
23181   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23182   if test "$GCC" = yes; then
23183     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"`
23184   else
23185     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23186   fi
23187   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23188   ;;
23189
23190 dgux*)
23191   version_type=linux
23192   need_lib_prefix=no
23193   need_version=no
23194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23195   soname_spec='${libname}${release}${shared_ext}$major'
23196   shlibpath_var=LD_LIBRARY_PATH
23197   ;;
23198
23199 freebsd1*)
23200   dynamic_linker=no
23201   ;;
23202
23203 kfreebsd*-gnu)
23204   version_type=linux
23205   need_lib_prefix=no
23206   need_version=no
23207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23208   soname_spec='${libname}${release}${shared_ext}$major'
23209   shlibpath_var=LD_LIBRARY_PATH
23210   shlibpath_overrides_runpath=no
23211   hardcode_into_libs=yes
23212   dynamic_linker='GNU ld.so'
23213   ;;
23214
23215 freebsd* | dragonfly*)
23216   # DragonFly does not have aout.  When/if they implement a new
23217   # versioning mechanism, adjust this.
23218   if test -x /usr/bin/objformat; then
23219     objformat=`/usr/bin/objformat`
23220   else
23221     case $host_os in
23222     freebsd[123]*) objformat=aout ;;
23223     *) objformat=elf ;;
23224     esac
23225   fi
23226   version_type=freebsd-$objformat
23227   case $version_type in
23228     freebsd-elf*)
23229       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23230       need_version=no
23231       need_lib_prefix=no
23232       ;;
23233     freebsd-*)
23234       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23235       need_version=yes
23236       ;;
23237   esac
23238   shlibpath_var=LD_LIBRARY_PATH
23239   case $host_os in
23240   freebsd2*)
23241     shlibpath_overrides_runpath=yes
23242     ;;
23243   freebsd3.[01]* | freebsdelf3.[01]*)
23244     shlibpath_overrides_runpath=yes
23245     hardcode_into_libs=yes
23246     ;;
23247   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23248   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23249     shlibpath_overrides_runpath=no
23250     hardcode_into_libs=yes
23251     ;;
23252   freebsd*) # from 4.6 on
23253     shlibpath_overrides_runpath=yes
23254     hardcode_into_libs=yes
23255     ;;
23256   esac
23257   ;;
23258
23259 gnu*)
23260   version_type=linux
23261   need_lib_prefix=no
23262   need_version=no
23263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23264   soname_spec='${libname}${release}${shared_ext}$major'
23265   shlibpath_var=LD_LIBRARY_PATH
23266   hardcode_into_libs=yes
23267   ;;
23268
23269 hpux9* | hpux10* | hpux11*)
23270   # Give a soname corresponding to the major version so that dld.sl refuses to
23271   # link against other versions.
23272   version_type=sunos
23273   need_lib_prefix=no
23274   need_version=no
23275   case $host_cpu in
23276   ia64*)
23277     shrext_cmds='.so'
23278     hardcode_into_libs=yes
23279     dynamic_linker="$host_os dld.so"
23280     shlibpath_var=LD_LIBRARY_PATH
23281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283     soname_spec='${libname}${release}${shared_ext}$major'
23284     if test "X$HPUX_IA64_MODE" = X32; then
23285       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23286     else
23287       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23288     fi
23289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23290     ;;
23291    hppa*64*)
23292      shrext_cmds='.sl'
23293      hardcode_into_libs=yes
23294      dynamic_linker="$host_os dld.sl"
23295      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23296      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23297      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298      soname_spec='${libname}${release}${shared_ext}$major'
23299      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23300      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23301      ;;
23302    *)
23303     shrext_cmds='.sl'
23304     dynamic_linker="$host_os dld.sl"
23305     shlibpath_var=SHLIB_PATH
23306     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23308     soname_spec='${libname}${release}${shared_ext}$major'
23309     ;;
23310   esac
23311   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23312   postinstall_cmds='chmod 555 $lib'
23313   ;;
23314
23315 interix3*)
23316   version_type=linux
23317   need_lib_prefix=no
23318   need_version=no
23319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23320   soname_spec='${libname}${release}${shared_ext}$major'
23321   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23322   shlibpath_var=LD_LIBRARY_PATH
23323   shlibpath_overrides_runpath=no
23324   hardcode_into_libs=yes
23325   ;;
23326
23327 irix5* | irix6* | nonstopux*)
23328   case $host_os in
23329     nonstopux*) version_type=nonstopux ;;
23330     *)
23331         if test "$lt_cv_prog_gnu_ld" = yes; then
23332                 version_type=linux
23333         else
23334                 version_type=irix
23335         fi ;;
23336   esac
23337   need_lib_prefix=no
23338   need_version=no
23339   soname_spec='${libname}${release}${shared_ext}$major'
23340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23341   case $host_os in
23342   irix5* | nonstopux*)
23343     libsuff= shlibsuff=
23344     ;;
23345   *)
23346     case $LD in # libtool.m4 will add one of these switches to LD
23347     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23348       libsuff= shlibsuff= libmagic=32-bit;;
23349     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23350       libsuff=32 shlibsuff=N32 libmagic=N32;;
23351     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23352       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23353     *) libsuff= shlibsuff= libmagic=never-match;;
23354     esac
23355     ;;
23356   esac
23357   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23358   shlibpath_overrides_runpath=no
23359   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23360   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23361   hardcode_into_libs=yes
23362   ;;
23363
23364 # No shared lib support for Linux oldld, aout, or coff.
23365 linux*oldld* | linux*aout* | linux*coff*)
23366   dynamic_linker=no
23367   ;;
23368
23369 # This must be Linux ELF.
23370 linux*)
23371   version_type=linux
23372   need_lib_prefix=no
23373   need_version=no
23374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23375   soname_spec='${libname}${release}${shared_ext}$major'
23376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23377   shlibpath_var=LD_LIBRARY_PATH
23378   shlibpath_overrides_runpath=no
23379   # This implies no fast_install, which is unacceptable.
23380   # Some rework will be needed to allow for fast_install
23381   # before this can be enabled.
23382   hardcode_into_libs=yes
23383
23384   # Append ld.so.conf contents to the search path
23385   if test -f /etc/ld.so.conf; then
23386     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' ' '`
23387     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23388   fi
23389
23390   # We used to test for /lib/ld.so.1 and disable shared libraries on
23391   # powerpc, because MkLinux only supported shared libraries with the
23392   # GNU dynamic linker.  Since this was broken with cross compilers,
23393   # most powerpc-linux boxes support dynamic linking these days and
23394   # people can always --disable-shared, the test was removed, and we
23395   # assume the GNU/Linux dynamic linker is in use.
23396   dynamic_linker='GNU/Linux ld.so'
23397   ;;
23398
23399 knetbsd*-gnu)
23400   version_type=linux
23401   need_lib_prefix=no
23402   need_version=no
23403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23404   soname_spec='${libname}${release}${shared_ext}$major'
23405   shlibpath_var=LD_LIBRARY_PATH
23406   shlibpath_overrides_runpath=no
23407   hardcode_into_libs=yes
23408   dynamic_linker='GNU ld.so'
23409   ;;
23410
23411 netbsd*)
23412   version_type=sunos
23413   need_lib_prefix=no
23414   need_version=no
23415   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23417     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23418     dynamic_linker='NetBSD (a.out) ld.so'
23419   else
23420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23421     soname_spec='${libname}${release}${shared_ext}$major'
23422     dynamic_linker='NetBSD ld.elf_so'
23423   fi
23424   shlibpath_var=LD_LIBRARY_PATH
23425   shlibpath_overrides_runpath=yes
23426   hardcode_into_libs=yes
23427   ;;
23428
23429 newsos6)
23430   version_type=linux
23431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23432   shlibpath_var=LD_LIBRARY_PATH
23433   shlibpath_overrides_runpath=yes
23434   ;;
23435
23436 nto-qnx*)
23437   version_type=linux
23438   need_lib_prefix=no
23439   need_version=no
23440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23441   soname_spec='${libname}${release}${shared_ext}$major'
23442   shlibpath_var=LD_LIBRARY_PATH
23443   shlibpath_overrides_runpath=yes
23444   ;;
23445
23446 openbsd*)
23447   version_type=sunos
23448   sys_lib_dlsearch_path_spec="/usr/lib"
23449   need_lib_prefix=no
23450   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23451   case $host_os in
23452     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23453     *)                         need_version=no  ;;
23454   esac
23455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23457   shlibpath_var=LD_LIBRARY_PATH
23458   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23459     case $host_os in
23460       openbsd2.[89] | openbsd2.[89].*)
23461         shlibpath_overrides_runpath=no
23462         ;;
23463       *)
23464         shlibpath_overrides_runpath=yes
23465         ;;
23466       esac
23467   else
23468     shlibpath_overrides_runpath=yes
23469   fi
23470   ;;
23471
23472 os2*)
23473   libname_spec='$name'
23474   shrext_cmds=".dll"
23475   need_lib_prefix=no
23476   library_names_spec='$libname${shared_ext} $libname.a'
23477   dynamic_linker='OS/2 ld.exe'
23478   shlibpath_var=LIBPATH
23479   ;;
23480
23481 osf3* | osf4* | osf5*)
23482   version_type=osf
23483   need_lib_prefix=no
23484   need_version=no
23485   soname_spec='${libname}${release}${shared_ext}$major'
23486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23487   shlibpath_var=LD_LIBRARY_PATH
23488   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23489   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23490   ;;
23491
23492 solaris*)
23493   version_type=linux
23494   need_lib_prefix=no
23495   need_version=no
23496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23497   soname_spec='${libname}${release}${shared_ext}$major'
23498   shlibpath_var=LD_LIBRARY_PATH
23499   shlibpath_overrides_runpath=yes
23500   hardcode_into_libs=yes
23501   # ldd complains unless libraries are executable
23502   postinstall_cmds='chmod +x $lib'
23503   ;;
23504
23505 sunos4*)
23506   version_type=sunos
23507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23508   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23509   shlibpath_var=LD_LIBRARY_PATH
23510   shlibpath_overrides_runpath=yes
23511   if test "$with_gnu_ld" = yes; then
23512     need_lib_prefix=no
23513   fi
23514   need_version=yes
23515   ;;
23516
23517 sysv4 | sysv4.3*)
23518   version_type=linux
23519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23520   soname_spec='${libname}${release}${shared_ext}$major'
23521   shlibpath_var=LD_LIBRARY_PATH
23522   case $host_vendor in
23523     sni)
23524       shlibpath_overrides_runpath=no
23525       need_lib_prefix=no
23526       export_dynamic_flag_spec='${wl}-Blargedynsym'
23527       runpath_var=LD_RUN_PATH
23528       ;;
23529     siemens)
23530       need_lib_prefix=no
23531       ;;
23532     motorola)
23533       need_lib_prefix=no
23534       need_version=no
23535       shlibpath_overrides_runpath=no
23536       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23537       ;;
23538   esac
23539   ;;
23540
23541 sysv4*MP*)
23542   if test -d /usr/nec ;then
23543     version_type=linux
23544     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23545     soname_spec='$libname${shared_ext}.$major'
23546     shlibpath_var=LD_LIBRARY_PATH
23547   fi
23548   ;;
23549
23550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23551   version_type=freebsd-elf
23552   need_lib_prefix=no
23553   need_version=no
23554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23555   soname_spec='${libname}${release}${shared_ext}$major'
23556   shlibpath_var=LD_LIBRARY_PATH
23557   hardcode_into_libs=yes
23558   if test "$with_gnu_ld" = yes; then
23559     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23560     shlibpath_overrides_runpath=no
23561   else
23562     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23563     shlibpath_overrides_runpath=yes
23564     case $host_os in
23565       sco3.2v5*)
23566         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23567         ;;
23568     esac
23569   fi
23570   sys_lib_dlsearch_path_spec='/usr/lib'
23571   ;;
23572
23573 uts4*)
23574   version_type=linux
23575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576   soname_spec='${libname}${release}${shared_ext}$major'
23577   shlibpath_var=LD_LIBRARY_PATH
23578   ;;
23579
23580 *)
23581   dynamic_linker=no
23582   ;;
23583 esac
23584 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23585 echo "${ECHO_T}$dynamic_linker" >&6; }
23586 test "$dynamic_linker" = no && can_build_shared=no
23587
23588 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23589 if test "$GCC" = yes; then
23590   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23591 fi
23592
23593 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23594 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23595 hardcode_action_F77=
23596 if test -n "$hardcode_libdir_flag_spec_F77" || \
23597    test -n "$runpath_var_F77" || \
23598    test "X$hardcode_automatic_F77" = "Xyes" ; then
23599
23600   # We can hardcode non-existant directories.
23601   if test "$hardcode_direct_F77" != no &&
23602      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23603      # have to relink, otherwise we might link with an installed library
23604      # when we should be linking with a yet-to-be-installed one
23605      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23606      test "$hardcode_minus_L_F77" != no; then
23607     # Linking always hardcodes the temporary library directory.
23608     hardcode_action_F77=relink
23609   else
23610     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23611     hardcode_action_F77=immediate
23612   fi
23613 else
23614   # We cannot hardcode anything, or else we can only hardcode existing
23615   # directories.
23616   hardcode_action_F77=unsupported
23617 fi
23618 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23619 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23620
23621 if test "$hardcode_action_F77" = relink; then
23622   # Fast installation is not supported
23623   enable_fast_install=no
23624 elif test "$shlibpath_overrides_runpath" = yes ||
23625      test "$enable_shared" = no; then
23626   # Fast installation is not necessary
23627   enable_fast_install=needless
23628 fi
23629
23630
23631 # The else clause should only fire when bootstrapping the
23632 # libtool distribution, otherwise you forgot to ship ltmain.sh
23633 # with your package, and you will get complaints that there are
23634 # no rules to generate ltmain.sh.
23635 if test -f "$ltmain"; then
23636   # See if we are running on zsh, and set the options which allow our commands through
23637   # without removal of \ escapes.
23638   if test -n "${ZSH_VERSION+set}" ; then
23639     setopt NO_GLOB_SUBST
23640   fi
23641   # Now quote all the things that may contain metacharacters while being
23642   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23643   # variables and quote the copies for generation of the libtool script.
23644   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23645     SED SHELL STRIP \
23646     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23647     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23648     deplibs_check_method reload_flag reload_cmds need_locks \
23649     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23650     lt_cv_sys_global_symbol_to_c_name_address \
23651     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23652     old_postinstall_cmds old_postuninstall_cmds \
23653     compiler_F77 \
23654     CC_F77 \
23655     LD_F77 \
23656     lt_prog_compiler_wl_F77 \
23657     lt_prog_compiler_pic_F77 \
23658     lt_prog_compiler_static_F77 \
23659     lt_prog_compiler_no_builtin_flag_F77 \
23660     export_dynamic_flag_spec_F77 \
23661     thread_safe_flag_spec_F77 \
23662     whole_archive_flag_spec_F77 \
23663     enable_shared_with_static_runtimes_F77 \
23664     old_archive_cmds_F77 \
23665     old_archive_from_new_cmds_F77 \
23666     predep_objects_F77 \
23667     postdep_objects_F77 \
23668     predeps_F77 \
23669     postdeps_F77 \
23670     compiler_lib_search_path_F77 \
23671     archive_cmds_F77 \
23672     archive_expsym_cmds_F77 \
23673     postinstall_cmds_F77 \
23674     postuninstall_cmds_F77 \
23675     old_archive_from_expsyms_cmds_F77 \
23676     allow_undefined_flag_F77 \
23677     no_undefined_flag_F77 \
23678     export_symbols_cmds_F77 \
23679     hardcode_libdir_flag_spec_F77 \
23680     hardcode_libdir_flag_spec_ld_F77 \
23681     hardcode_libdir_separator_F77 \
23682     hardcode_automatic_F77 \
23683     module_cmds_F77 \
23684     module_expsym_cmds_F77 \
23685     lt_cv_prog_compiler_c_o_F77 \
23686     exclude_expsyms_F77 \
23687     include_expsyms_F77; do
23688
23689     case $var in
23690     old_archive_cmds_F77 | \
23691     old_archive_from_new_cmds_F77 | \
23692     archive_cmds_F77 | \
23693     archive_expsym_cmds_F77 | \
23694     module_cmds_F77 | \
23695     module_expsym_cmds_F77 | \
23696     old_archive_from_expsyms_cmds_F77 | \
23697     export_symbols_cmds_F77 | \
23698     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23699     postinstall_cmds | postuninstall_cmds | \
23700     old_postinstall_cmds | old_postuninstall_cmds | \
23701     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23702       # Double-quote double-evaled strings.
23703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23704       ;;
23705     *)
23706       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23707       ;;
23708     esac
23709   done
23710
23711   case $lt_echo in
23712   *'\$0 --fallback-echo"')
23713     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23714     ;;
23715   esac
23716
23717 cfgfile="$ofile"
23718
23719   cat <<__EOF__ >> "$cfgfile"
23720 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23721
23722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23723
23724 # Shell to use when invoking shell scripts.
23725 SHELL=$lt_SHELL
23726
23727 # Whether or not to build shared libraries.
23728 build_libtool_libs=$enable_shared
23729
23730 # Whether or not to build static libraries.
23731 build_old_libs=$enable_static
23732
23733 # Whether or not to add -lc for building shared libraries.
23734 build_libtool_need_lc=$archive_cmds_need_lc_F77
23735
23736 # Whether or not to disallow shared libs when runtime libs are static
23737 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23738
23739 # Whether or not to optimize for fast installation.
23740 fast_install=$enable_fast_install
23741
23742 # The host system.
23743 host_alias=$host_alias
23744 host=$host
23745 host_os=$host_os
23746
23747 # The build system.
23748 build_alias=$build_alias
23749 build=$build
23750 build_os=$build_os
23751
23752 # An echo program that does not interpret backslashes.
23753 echo=$lt_echo
23754
23755 # The archiver.
23756 AR=$lt_AR
23757 AR_FLAGS=$lt_AR_FLAGS
23758
23759 # A C compiler.
23760 LTCC=$lt_LTCC
23761
23762 # LTCC compiler flags.
23763 LTCFLAGS=$lt_LTCFLAGS
23764
23765 # A language-specific compiler.
23766 CC=$lt_compiler_F77
23767
23768 # Is the compiler the GNU C compiler?
23769 with_gcc=$GCC_F77
23770
23771 # An ERE matcher.
23772 EGREP=$lt_EGREP
23773
23774 # The linker used to build libraries.
23775 LD=$lt_LD_F77
23776
23777 # Whether we need hard or soft links.
23778 LN_S=$lt_LN_S
23779
23780 # A BSD-compatible nm program.
23781 NM=$lt_NM
23782
23783 # A symbol stripping program
23784 STRIP=$lt_STRIP
23785
23786 # Used to examine libraries when file_magic_cmd begins "file"
23787 MAGIC_CMD=$MAGIC_CMD
23788
23789 # Used on cygwin: DLL creation program.
23790 DLLTOOL="$DLLTOOL"
23791
23792 # Used on cygwin: object dumper.
23793 OBJDUMP="$OBJDUMP"
23794
23795 # Used on cygwin: assembler.
23796 AS="$AS"
23797
23798 # The name of the directory that contains temporary libtool files.
23799 objdir=$objdir
23800
23801 # How to create reloadable object files.
23802 reload_flag=$lt_reload_flag
23803 reload_cmds=$lt_reload_cmds
23804
23805 # How to pass a linker flag through the compiler.
23806 wl=$lt_lt_prog_compiler_wl_F77
23807
23808 # Object file suffix (normally "o").
23809 objext="$ac_objext"
23810
23811 # Old archive suffix (normally "a").
23812 libext="$libext"
23813
23814 # Shared library suffix (normally ".so").
23815 shrext_cmds='$shrext_cmds'
23816
23817 # Executable file suffix (normally "").
23818 exeext="$exeext"
23819
23820 # Additional compiler flags for building library objects.
23821 pic_flag=$lt_lt_prog_compiler_pic_F77
23822 pic_mode=$pic_mode
23823
23824 # What is the maximum length of a command?
23825 max_cmd_len=$lt_cv_sys_max_cmd_len
23826
23827 # Does compiler simultaneously support -c and -o options?
23828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23829
23830 # Must we lock files when doing compilation?
23831 need_locks=$lt_need_locks
23832
23833 # Do we need the lib prefix for modules?
23834 need_lib_prefix=$need_lib_prefix
23835
23836 # Do we need a version for libraries?
23837 need_version=$need_version
23838
23839 # Whether dlopen is supported.
23840 dlopen_support=$enable_dlopen
23841
23842 # Whether dlopen of programs is supported.
23843 dlopen_self=$enable_dlopen_self
23844
23845 # Whether dlopen of statically linked programs is supported.
23846 dlopen_self_static=$enable_dlopen_self_static
23847
23848 # Compiler flag to prevent dynamic linking.
23849 link_static_flag=$lt_lt_prog_compiler_static_F77
23850
23851 # Compiler flag to turn off builtin functions.
23852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23853
23854 # Compiler flag to allow reflexive dlopens.
23855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23856
23857 # Compiler flag to generate shared objects directly from archives.
23858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23859
23860 # Compiler flag to generate thread-safe objects.
23861 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23862
23863 # Library versioning type.
23864 version_type=$version_type
23865
23866 # Format of library name prefix.
23867 libname_spec=$lt_libname_spec
23868
23869 # List of archive names.  First name is the real one, the rest are links.
23870 # The last name is the one that the linker finds with -lNAME.
23871 library_names_spec=$lt_library_names_spec
23872
23873 # The coded name of the library, if different from the real name.
23874 soname_spec=$lt_soname_spec
23875
23876 # Commands used to build and install an old-style archive.
23877 RANLIB=$lt_RANLIB
23878 old_archive_cmds=$lt_old_archive_cmds_F77
23879 old_postinstall_cmds=$lt_old_postinstall_cmds
23880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23881
23882 # Create an old-style archive from a shared archive.
23883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23884
23885 # Create a temporary old-style archive to link instead of a shared archive.
23886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23887
23888 # Commands used to build and install a shared archive.
23889 archive_cmds=$lt_archive_cmds_F77
23890 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23891 postinstall_cmds=$lt_postinstall_cmds
23892 postuninstall_cmds=$lt_postuninstall_cmds
23893
23894 # Commands used to build a loadable module (assumed same as above if empty)
23895 module_cmds=$lt_module_cmds_F77
23896 module_expsym_cmds=$lt_module_expsym_cmds_F77
23897
23898 # Commands to strip libraries.
23899 old_striplib=$lt_old_striplib
23900 striplib=$lt_striplib
23901
23902 # Dependencies to place before the objects being linked to create a
23903 # shared library.
23904 predep_objects=$lt_predep_objects_F77
23905
23906 # Dependencies to place after the objects being linked to create a
23907 # shared library.
23908 postdep_objects=$lt_postdep_objects_F77
23909
23910 # Dependencies to place before the objects being linked to create a
23911 # shared library.
23912 predeps=$lt_predeps_F77
23913
23914 # Dependencies to place after the objects being linked to create a
23915 # shared library.
23916 postdeps=$lt_postdeps_F77
23917
23918 # The library search path used internally by the compiler when linking
23919 # a shared library.
23920 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23921
23922 # Method to check whether dependent libraries are shared objects.
23923 deplibs_check_method=$lt_deplibs_check_method
23924
23925 # Command to use when deplibs_check_method == file_magic.
23926 file_magic_cmd=$lt_file_magic_cmd
23927
23928 # Flag that allows shared libraries with undefined symbols to be built.
23929 allow_undefined_flag=$lt_allow_undefined_flag_F77
23930
23931 # Flag that forces no undefined symbols.
23932 no_undefined_flag=$lt_no_undefined_flag_F77
23933
23934 # Commands used to finish a libtool library installation in a directory.
23935 finish_cmds=$lt_finish_cmds
23936
23937 # Same as above, but a single script fragment to be evaled but not shown.
23938 finish_eval=$lt_finish_eval
23939
23940 # Take the output of nm and produce a listing of raw symbols and C names.
23941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23942
23943 # Transform the output of nm in a proper C declaration
23944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23945
23946 # Transform the output of nm in a C name address pair
23947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23948
23949 # This is the shared library runtime path variable.
23950 runpath_var=$runpath_var
23951
23952 # This is the shared library path variable.
23953 shlibpath_var=$shlibpath_var
23954
23955 # Is shlibpath searched before the hard-coded library search path?
23956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23957
23958 # How to hardcode a shared library path into an executable.
23959 hardcode_action=$hardcode_action_F77
23960
23961 # Whether we should hardcode library paths into libraries.
23962 hardcode_into_libs=$hardcode_into_libs
23963
23964 # Flag to hardcode \$libdir into a binary during linking.
23965 # This must work even if \$libdir does not exist.
23966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23967
23968 # If ld is used when linking, flag to hardcode \$libdir into
23969 # a binary during linking. This must work even if \$libdir does
23970 # not exist.
23971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23972
23973 # Whether we need a single -rpath flag with a separated argument.
23974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23975
23976 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23977 # resulting binary.
23978 hardcode_direct=$hardcode_direct_F77
23979
23980 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23981 # resulting binary.
23982 hardcode_minus_L=$hardcode_minus_L_F77
23983
23984 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23985 # the resulting binary.
23986 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23987
23988 # Set to yes if building a shared library automatically hardcodes DIR into the library
23989 # and all subsequent libraries and executables linked against it.
23990 hardcode_automatic=$hardcode_automatic_F77
23991
23992 # Variables whose values should be saved in libtool wrapper scripts and
23993 # restored at relink time.
23994 variables_saved_for_relink="$variables_saved_for_relink"
23995
23996 # Whether libtool must link a program against all its dependency libraries.
23997 link_all_deplibs=$link_all_deplibs_F77
23998
23999 # Compile-time system search path for libraries
24000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24001
24002 # Run-time system search path for libraries
24003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24004
24005 # Fix the shell variable \$srcfile for the compiler.
24006 fix_srcfile_path="$fix_srcfile_path_F77"
24007
24008 # Set to yes if exported symbols are required.
24009 always_export_symbols=$always_export_symbols_F77
24010
24011 # The commands to list exported symbols.
24012 export_symbols_cmds=$lt_export_symbols_cmds_F77
24013
24014 # The commands to extract the exported symbol list from a shared archive.
24015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24016
24017 # Symbols that should not be listed in the preloaded symbols.
24018 exclude_expsyms=$lt_exclude_expsyms_F77
24019
24020 # Symbols that must always be exported.
24021 include_expsyms=$lt_include_expsyms_F77
24022
24023 # ### END LIBTOOL TAG CONFIG: $tagname
24024
24025 __EOF__
24026
24027
24028 else
24029   # If there is no Makefile yet, we rely on a make rule to execute
24030   # `config.status --recheck' to rerun these tests and create the
24031   # libtool script then.
24032   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24033   if test -f "$ltmain_in"; then
24034     test -f Makefile && make "$ltmain"
24035   fi
24036 fi
24037
24038
24039 ac_ext=c
24040 ac_cpp='$CPP $CPPFLAGS'
24041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24044
24045 CC="$lt_save_CC"
24046
24047         else
24048           tagname=""
24049         fi
24050         ;;
24051
24052       GCJ)
24053         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24054           ac_ext=c
24055 ac_cpp='$CPP $CPPFLAGS'
24056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24059
24060
24061 # Source file extension for Java test sources.
24062 ac_ext=java
24063
24064 # Object file extension for compiled Java test sources.
24065 objext=o
24066 objext_GCJ=$objext
24067
24068 # Code to be used in simple compile tests
24069 lt_simple_compile_test_code="class foo {}\n"
24070
24071 # Code to be used in simple link tests
24072 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24073
24074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24075
24076 # If no C compiler was specified, use CC.
24077 LTCC=${LTCC-"$CC"}
24078
24079 # If no C compiler flags were specified, use CFLAGS.
24080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24081
24082 # Allow CC to be a program name with arguments.
24083 compiler=$CC
24084
24085
24086 # save warnings/boilerplate of simple test code
24087 ac_outfile=conftest.$ac_objext
24088 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24090 _lt_compiler_boilerplate=`cat conftest.err`
24091 $rm conftest*
24092
24093 ac_outfile=conftest.$ac_objext
24094 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24096 _lt_linker_boilerplate=`cat conftest.err`
24097 $rm conftest*
24098
24099
24100 # Allow CC to be a program name with arguments.
24101 lt_save_CC="$CC"
24102 CC=${GCJ-"gcj"}
24103 compiler=$CC
24104 compiler_GCJ=$CC
24105 for cc_temp in $compiler""; do
24106   case $cc_temp in
24107     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24108     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24109     \-*) ;;
24110     *) break;;
24111   esac
24112 done
24113 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24114
24115
24116 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24117 archive_cmds_need_lc_GCJ=no
24118
24119 old_archive_cmds_GCJ=$old_archive_cmds
24120
24121
24122 lt_prog_compiler_no_builtin_flag_GCJ=
24123
24124 if test "$GCC" = yes; then
24125   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24126
24127
24128 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24131   echo $ECHO_N "(cached) $ECHO_C" >&6
24132 else
24133   lt_cv_prog_compiler_rtti_exceptions=no
24134   ac_outfile=conftest.$ac_objext
24135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24136    lt_compiler_flag="-fno-rtti -fno-exceptions"
24137    # Insert the option either (1) after the last *FLAGS variable, or
24138    # (2) before a word containing "conftest.", or (3) at the end.
24139    # Note that $ac_compile itself does not contain backslashes and begins
24140    # with a dollar sign (not a hyphen), so the echo should work correctly.
24141    # The option is referenced via a variable to avoid confusing sed.
24142    lt_compile=`echo "$ac_compile" | $SED \
24143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24145    -e 's:$: $lt_compiler_flag:'`
24146    (eval echo "\"\$as_me:24146: $lt_compile\"" >&5)
24147    (eval "$lt_compile" 2>conftest.err)
24148    ac_status=$?
24149    cat conftest.err >&5
24150    echo "$as_me:24150: \$? = $ac_status" >&5
24151    if (exit $ac_status) && test -s "$ac_outfile"; then
24152      # The compiler can only warn and ignore the option if not recognized
24153      # So say no if there are warnings other than the usual output.
24154      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24155      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24156      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24157        lt_cv_prog_compiler_rtti_exceptions=yes
24158      fi
24159    fi
24160    $rm conftest*
24161
24162 fi
24163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24164 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24165
24166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24167     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24168 else
24169     :
24170 fi
24171
24172 fi
24173
24174 lt_prog_compiler_wl_GCJ=
24175 lt_prog_compiler_pic_GCJ=
24176 lt_prog_compiler_static_GCJ=
24177
24178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24180
24181   if test "$GCC" = yes; then
24182     lt_prog_compiler_wl_GCJ='-Wl,'
24183     lt_prog_compiler_static_GCJ='-static'
24184
24185     case $host_os in
24186       aix*)
24187       # All AIX code is PIC.
24188       if test "$host_cpu" = ia64; then
24189         # AIX 5 now supports IA64 processor
24190         lt_prog_compiler_static_GCJ='-Bstatic'
24191       fi
24192       ;;
24193
24194     amigaos*)
24195       # FIXME: we need at least 68020 code to build shared libraries, but
24196       # adding the `-m68020' flag to GCC prevents building anything better,
24197       # like `-m68040'.
24198       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24199       ;;
24200
24201     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24202       # PIC is the default for these OSes.
24203       ;;
24204
24205     mingw* | pw32* | os2*)
24206       # This hack is so that the source file can tell whether it is being
24207       # built for inclusion in a dll (and should export symbols for example).
24208       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24209       ;;
24210
24211     darwin* | rhapsody*)
24212       # PIC is the default on this platform
24213       # Common symbols not allowed in MH_DYLIB files
24214       lt_prog_compiler_pic_GCJ='-fno-common'
24215       ;;
24216
24217     interix3*)
24218       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24219       # Instead, we relocate shared libraries at runtime.
24220       ;;
24221
24222     msdosdjgpp*)
24223       # Just because we use GCC doesn't mean we suddenly get shared libraries
24224       # on systems that don't support them.
24225       lt_prog_compiler_can_build_shared_GCJ=no
24226       enable_shared=no
24227       ;;
24228
24229     sysv4*MP*)
24230       if test -d /usr/nec; then
24231         lt_prog_compiler_pic_GCJ=-Kconform_pic
24232       fi
24233       ;;
24234
24235     hpux*)
24236       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24237       # not for PA HP-UX.
24238       case $host_cpu in
24239       hppa*64*|ia64*)
24240         # +Z the default
24241         ;;
24242       *)
24243         lt_prog_compiler_pic_GCJ='-fPIC'
24244         ;;
24245       esac
24246       ;;
24247
24248     *)
24249       lt_prog_compiler_pic_GCJ='-fPIC'
24250       ;;
24251     esac
24252   else
24253     # PORTME Check for flag to pass linker flags through the system compiler.
24254     case $host_os in
24255     aix*)
24256       lt_prog_compiler_wl_GCJ='-Wl,'
24257       if test "$host_cpu" = ia64; then
24258         # AIX 5 now supports IA64 processor
24259         lt_prog_compiler_static_GCJ='-Bstatic'
24260       else
24261         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24262       fi
24263       ;;
24264       darwin*)
24265         # PIC is the default on this platform
24266         # Common symbols not allowed in MH_DYLIB files
24267        case $cc_basename in
24268          xlc*)
24269          lt_prog_compiler_pic_GCJ='-qnocommon'
24270          lt_prog_compiler_wl_GCJ='-Wl,'
24271          ;;
24272        esac
24273        ;;
24274
24275     mingw* | pw32* | os2*)
24276       # This hack is so that the source file can tell whether it is being
24277       # built for inclusion in a dll (and should export symbols for example).
24278       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24279       ;;
24280
24281     hpux9* | hpux10* | hpux11*)
24282       lt_prog_compiler_wl_GCJ='-Wl,'
24283       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24284       # not for PA HP-UX.
24285       case $host_cpu in
24286       hppa*64*|ia64*)
24287         # +Z the default
24288         ;;
24289       *)
24290         lt_prog_compiler_pic_GCJ='+Z'
24291         ;;
24292       esac
24293       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24294       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24295       ;;
24296
24297     irix5* | irix6* | nonstopux*)
24298       lt_prog_compiler_wl_GCJ='-Wl,'
24299       # PIC (with -KPIC) is the default.
24300       lt_prog_compiler_static_GCJ='-non_shared'
24301       ;;
24302
24303     newsos6)
24304       lt_prog_compiler_pic_GCJ='-KPIC'
24305       lt_prog_compiler_static_GCJ='-Bstatic'
24306       ;;
24307
24308     linux*)
24309       case $cc_basename in
24310       icc* | ecc*)
24311         lt_prog_compiler_wl_GCJ='-Wl,'
24312         lt_prog_compiler_pic_GCJ='-KPIC'
24313         lt_prog_compiler_static_GCJ='-static'
24314         ;;
24315       pgcc* | pgf77* | pgf90* | pgf95*)
24316         # Portland Group compilers (*not* the Pentium gcc compiler,
24317         # which looks to be a dead project)
24318         lt_prog_compiler_wl_GCJ='-Wl,'
24319         lt_prog_compiler_pic_GCJ='-fpic'
24320         lt_prog_compiler_static_GCJ='-Bstatic'
24321         ;;
24322       ccc*)
24323         lt_prog_compiler_wl_GCJ='-Wl,'
24324         # All Alpha code is PIC.
24325         lt_prog_compiler_static_GCJ='-non_shared'
24326         ;;
24327       esac
24328       ;;
24329
24330     osf3* | osf4* | osf5*)
24331       lt_prog_compiler_wl_GCJ='-Wl,'
24332       # All OSF/1 code is PIC.
24333       lt_prog_compiler_static_GCJ='-non_shared'
24334       ;;
24335
24336     solaris*)
24337       lt_prog_compiler_pic_GCJ='-KPIC'
24338       lt_prog_compiler_static_GCJ='-Bstatic'
24339       case $cc_basename in
24340       f77* | f90* | f95*)
24341         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24342       *)
24343         lt_prog_compiler_wl_GCJ='-Wl,';;
24344       esac
24345       ;;
24346
24347     sunos4*)
24348       lt_prog_compiler_wl_GCJ='-Qoption ld '
24349       lt_prog_compiler_pic_GCJ='-PIC'
24350       lt_prog_compiler_static_GCJ='-Bstatic'
24351       ;;
24352
24353     sysv4 | sysv4.2uw2* | sysv4.3*)
24354       lt_prog_compiler_wl_GCJ='-Wl,'
24355       lt_prog_compiler_pic_GCJ='-KPIC'
24356       lt_prog_compiler_static_GCJ='-Bstatic'
24357       ;;
24358
24359     sysv4*MP*)
24360       if test -d /usr/nec ;then
24361         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24362         lt_prog_compiler_static_GCJ='-Bstatic'
24363       fi
24364       ;;
24365
24366     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24367       lt_prog_compiler_wl_GCJ='-Wl,'
24368       lt_prog_compiler_pic_GCJ='-KPIC'
24369       lt_prog_compiler_static_GCJ='-Bstatic'
24370       ;;
24371
24372     unicos*)
24373       lt_prog_compiler_wl_GCJ='-Wl,'
24374       lt_prog_compiler_can_build_shared_GCJ=no
24375       ;;
24376
24377     uts4*)
24378       lt_prog_compiler_pic_GCJ='-pic'
24379       lt_prog_compiler_static_GCJ='-Bstatic'
24380       ;;
24381
24382     *)
24383       lt_prog_compiler_can_build_shared_GCJ=no
24384       ;;
24385     esac
24386   fi
24387
24388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24389 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24390
24391 #
24392 # Check to make sure the PIC flag actually works.
24393 #
24394 if test -n "$lt_prog_compiler_pic_GCJ"; then
24395
24396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24398 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24399   echo $ECHO_N "(cached) $ECHO_C" >&6
24400 else
24401   lt_prog_compiler_pic_works_GCJ=no
24402   ac_outfile=conftest.$ac_objext
24403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24404    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24405    # Insert the option either (1) after the last *FLAGS variable, or
24406    # (2) before a word containing "conftest.", or (3) at the end.
24407    # Note that $ac_compile itself does not contain backslashes and begins
24408    # with a dollar sign (not a hyphen), so the echo should work correctly.
24409    # The option is referenced via a variable to avoid confusing sed.
24410    lt_compile=`echo "$ac_compile" | $SED \
24411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24413    -e 's:$: $lt_compiler_flag:'`
24414    (eval echo "\"\$as_me:24414: $lt_compile\"" >&5)
24415    (eval "$lt_compile" 2>conftest.err)
24416    ac_status=$?
24417    cat conftest.err >&5
24418    echo "$as_me:24418: \$? = $ac_status" >&5
24419    if (exit $ac_status) && test -s "$ac_outfile"; then
24420      # The compiler can only warn and ignore the option if not recognized
24421      # So say no if there are warnings other than the usual output.
24422      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24423      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24424      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24425        lt_prog_compiler_pic_works_GCJ=yes
24426      fi
24427    fi
24428    $rm conftest*
24429
24430 fi
24431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24432 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24433
24434 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24435     case $lt_prog_compiler_pic_GCJ in
24436      "" | " "*) ;;
24437      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24438      esac
24439 else
24440     lt_prog_compiler_pic_GCJ=
24441      lt_prog_compiler_can_build_shared_GCJ=no
24442 fi
24443
24444 fi
24445 case $host_os in
24446   # For platforms which do not support PIC, -DPIC is meaningless:
24447   *djgpp*)
24448     lt_prog_compiler_pic_GCJ=
24449     ;;
24450   *)
24451     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24452     ;;
24453 esac
24454
24455 #
24456 # Check to make sure the static flag actually works.
24457 #
24458 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24459 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24460 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24461 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24462   echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24464   lt_prog_compiler_static_works_GCJ=no
24465    save_LDFLAGS="$LDFLAGS"
24466    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24467    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24468    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24469      # The linker can only warn and ignore the option if not recognized
24470      # So say no if there are warnings
24471      if test -s conftest.err; then
24472        # Append any errors to the config.log.
24473        cat conftest.err 1>&5
24474        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24475        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24476        if diff conftest.exp conftest.er2 >/dev/null; then
24477          lt_prog_compiler_static_works_GCJ=yes
24478        fi
24479      else
24480        lt_prog_compiler_static_works_GCJ=yes
24481      fi
24482    fi
24483    $rm conftest*
24484    LDFLAGS="$save_LDFLAGS"
24485
24486 fi
24487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24488 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24489
24490 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24491     :
24492 else
24493     lt_prog_compiler_static_GCJ=
24494 fi
24495
24496
24497 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24498 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24499 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502   lt_cv_prog_compiler_c_o_GCJ=no
24503    $rm -r conftest 2>/dev/null
24504    mkdir conftest
24505    cd conftest
24506    mkdir out
24507    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24508
24509    lt_compiler_flag="-o out/conftest2.$ac_objext"
24510    # Insert the option either (1) after the last *FLAGS variable, or
24511    # (2) before a word containing "conftest.", or (3) at the end.
24512    # Note that $ac_compile itself does not contain backslashes and begins
24513    # with a dollar sign (not a hyphen), so the echo should work correctly.
24514    lt_compile=`echo "$ac_compile" | $SED \
24515    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24516    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24517    -e 's:$: $lt_compiler_flag:'`
24518    (eval echo "\"\$as_me:24518: $lt_compile\"" >&5)
24519    (eval "$lt_compile" 2>out/conftest.err)
24520    ac_status=$?
24521    cat out/conftest.err >&5
24522    echo "$as_me:24522: \$? = $ac_status" >&5
24523    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24524    then
24525      # The compiler can only warn and ignore the option if not recognized
24526      # So say no if there are warnings
24527      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24528      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24529      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24530        lt_cv_prog_compiler_c_o_GCJ=yes
24531      fi
24532    fi
24533    chmod u+w . 2>&5
24534    $rm conftest*
24535    # SGI C++ compiler will create directory out/ii_files/ for
24536    # template instantiation
24537    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24538    $rm out/* && rmdir out
24539    cd ..
24540    rmdir conftest
24541    $rm conftest*
24542
24543 fi
24544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24545 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24546
24547
24548 hard_links="nottested"
24549 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24550   # do not overwrite the value of need_locks provided by the user
24551   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24552 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24553   hard_links=yes
24554   $rm conftest*
24555   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24556   touch conftest.a
24557   ln conftest.a conftest.b 2>&5 || hard_links=no
24558   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24559   { echo "$as_me:$LINENO: result: $hard_links" >&5
24560 echo "${ECHO_T}$hard_links" >&6; }
24561   if test "$hard_links" = no; then
24562     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24563 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24564     need_locks=warn
24565   fi
24566 else
24567   need_locks=no
24568 fi
24569
24570 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24571 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24572
24573   runpath_var=
24574   allow_undefined_flag_GCJ=
24575   enable_shared_with_static_runtimes_GCJ=no
24576   archive_cmds_GCJ=
24577   archive_expsym_cmds_GCJ=
24578   old_archive_From_new_cmds_GCJ=
24579   old_archive_from_expsyms_cmds_GCJ=
24580   export_dynamic_flag_spec_GCJ=
24581   whole_archive_flag_spec_GCJ=
24582   thread_safe_flag_spec_GCJ=
24583   hardcode_libdir_flag_spec_GCJ=
24584   hardcode_libdir_flag_spec_ld_GCJ=
24585   hardcode_libdir_separator_GCJ=
24586   hardcode_direct_GCJ=no
24587   hardcode_minus_L_GCJ=no
24588   hardcode_shlibpath_var_GCJ=unsupported
24589   link_all_deplibs_GCJ=unknown
24590   hardcode_automatic_GCJ=no
24591   module_cmds_GCJ=
24592   module_expsym_cmds_GCJ=
24593   always_export_symbols_GCJ=no
24594   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24595   # include_expsyms should be a list of space-separated symbols to be *always*
24596   # included in the symbol list
24597   include_expsyms_GCJ=
24598   # exclude_expsyms can be an extended regexp of symbols to exclude
24599   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24600   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24601   # as well as any symbol that contains `d'.
24602   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24603   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24604   # platforms (ab)use it in PIC code, but their linkers get confused if
24605   # the symbol is explicitly referenced.  Since portable code cannot
24606   # rely on this symbol name, it's probably fine to never include it in
24607   # preloaded symbol tables.
24608   extract_expsyms_cmds=
24609   # Just being paranoid about ensuring that cc_basename is set.
24610   for cc_temp in $compiler""; do
24611   case $cc_temp in
24612     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24613     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24614     \-*) ;;
24615     *) break;;
24616   esac
24617 done
24618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24619
24620   case $host_os in
24621   cygwin* | mingw* | pw32*)
24622     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24623     # When not using gcc, we currently assume that we are using
24624     # Microsoft Visual C++.
24625     if test "$GCC" != yes; then
24626       with_gnu_ld=no
24627     fi
24628     ;;
24629   interix*)
24630     # we just hope/assume this is gcc and not c89 (= MSVC++)
24631     with_gnu_ld=yes
24632     ;;
24633   openbsd*)
24634     with_gnu_ld=no
24635     ;;
24636   esac
24637
24638   ld_shlibs_GCJ=yes
24639   if test "$with_gnu_ld" = yes; then
24640     # If archive_cmds runs LD, not CC, wlarc should be empty
24641     wlarc='${wl}'
24642
24643     # Set some defaults for GNU ld with shared library support. These
24644     # are reset later if shared libraries are not supported. Putting them
24645     # here allows them to be overridden if necessary.
24646     runpath_var=LD_RUN_PATH
24647     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24648     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24649     # ancient GNU ld didn't support --whole-archive et. al.
24650     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24651         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24652       else
24653         whole_archive_flag_spec_GCJ=
24654     fi
24655     supports_anon_versioning=no
24656     case `$LD -v 2>/dev/null` in
24657       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24658       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24659       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24660       *\ 2.11.*) ;; # other 2.11 versions
24661       *) supports_anon_versioning=yes ;;
24662     esac
24663
24664     # See if GNU ld supports shared libraries.
24665     case $host_os in
24666     aix3* | aix4* | aix5*)
24667       # On AIX/PPC, the GNU linker is very broken
24668       if test "$host_cpu" != ia64; then
24669         ld_shlibs_GCJ=no
24670         cat <<EOF 1>&2
24671
24672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24673 *** to be unable to reliably create shared libraries on AIX.
24674 *** Therefore, libtool is disabling shared libraries support.  If you
24675 *** really care for shared libraries, you may want to modify your PATH
24676 *** so that a non-GNU linker is found, and then restart.
24677
24678 EOF
24679       fi
24680       ;;
24681
24682     amigaos*)
24683       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)'
24684       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24685       hardcode_minus_L_GCJ=yes
24686
24687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24688       # that the semantics of dynamic libraries on AmigaOS, at least up
24689       # to version 4, is to share data among multiple programs linked
24690       # with the same dynamic library.  Since this doesn't match the
24691       # behavior of shared libraries on other platforms, we can't use
24692       # them.
24693       ld_shlibs_GCJ=no
24694       ;;
24695
24696     beos*)
24697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24698         allow_undefined_flag_GCJ=unsupported
24699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24700         # support --undefined.  This deserves some investigation.  FIXME
24701         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702       else
24703         ld_shlibs_GCJ=no
24704       fi
24705       ;;
24706
24707     cygwin* | mingw* | pw32*)
24708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24709       # as there is no search path for DLLs.
24710       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24711       allow_undefined_flag_GCJ=unsupported
24712       always_export_symbols_GCJ=no
24713       enable_shared_with_static_runtimes_GCJ=yes
24714       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24715
24716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24717         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24718         # If the export-symbols file already is a .def file (1st line
24719         # is EXPORTS), use it as is; otherwise, prepend...
24720         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24721           cp $export_symbols $output_objdir/$soname.def;
24722         else
24723           echo EXPORTS > $output_objdir/$soname.def;
24724           cat $export_symbols >> $output_objdir/$soname.def;
24725         fi~
24726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24727       else
24728         ld_shlibs_GCJ=no
24729       fi
24730       ;;
24731
24732     interix3*)
24733       hardcode_direct_GCJ=no
24734       hardcode_shlibpath_var_GCJ=no
24735       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24736       export_dynamic_flag_spec_GCJ='${wl}-E'
24737       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24738       # Instead, shared libraries are loaded at an image base (0x10000000 by
24739       # default) and relocated if they conflict, which is a slow very memory
24740       # consuming and fragmenting process.  To avoid this, we pick a random,
24741       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24742       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24743       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'
24744       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'
24745       ;;
24746
24747     linux*)
24748       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24749         tmp_addflag=
24750         case $cc_basename,$host_cpu in
24751         pgcc*)                          # Portland Group C compiler
24752           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'
24753           tmp_addflag=' $pic_flag'
24754           ;;
24755         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24756           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'
24757           tmp_addflag=' $pic_flag -Mnomain' ;;
24758         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24759           tmp_addflag=' -i_dynamic' ;;
24760         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24761           tmp_addflag=' -i_dynamic -nofor_main' ;;
24762         ifc* | ifort*)                  # Intel Fortran compiler
24763           tmp_addflag=' -nofor_main' ;;
24764         esac
24765         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24766
24767         if test $supports_anon_versioning = yes; then
24768           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24769   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24770   $echo "local: *; };" >> $output_objdir/$libname.ver~
24771           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24772         fi
24773       else
24774         ld_shlibs_GCJ=no
24775       fi
24776       ;;
24777
24778     netbsd*)
24779       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24780         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24781         wlarc=
24782       else
24783         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24785       fi
24786       ;;
24787
24788     solaris*)
24789       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24790         ld_shlibs_GCJ=no
24791         cat <<EOF 1>&2
24792
24793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24794 *** create shared libraries on Solaris systems.  Therefore, libtool
24795 *** is disabling shared libraries support.  We urge you to upgrade GNU
24796 *** binutils to release 2.9.1 or newer.  Another option is to modify
24797 *** your PATH or compiler configuration so that the native linker is
24798 *** used, and then restart.
24799
24800 EOF
24801       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24802         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24803         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24804       else
24805         ld_shlibs_GCJ=no
24806       fi
24807       ;;
24808
24809     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24810       case `$LD -v 2>&1` in
24811         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24812         ld_shlibs_GCJ=no
24813         cat <<_LT_EOF 1>&2
24814
24815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24816 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24817 *** is disabling shared libraries support.  We urge you to upgrade GNU
24818 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24819 *** your PATH or compiler configuration so that the native linker is
24820 *** used, and then restart.
24821
24822 _LT_EOF
24823         ;;
24824         *)
24825           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24826             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24827             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24828             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24829           else
24830             ld_shlibs_GCJ=no
24831           fi
24832         ;;
24833       esac
24834       ;;
24835
24836     sunos4*)
24837       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24838       wlarc=
24839       hardcode_direct_GCJ=yes
24840       hardcode_shlibpath_var_GCJ=no
24841       ;;
24842
24843     *)
24844       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24845         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24846         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24847       else
24848         ld_shlibs_GCJ=no
24849       fi
24850       ;;
24851     esac
24852
24853     if test "$ld_shlibs_GCJ" = no; then
24854       runpath_var=
24855       hardcode_libdir_flag_spec_GCJ=
24856       export_dynamic_flag_spec_GCJ=
24857       whole_archive_flag_spec_GCJ=
24858     fi
24859   else
24860     # PORTME fill in a description of your system's linker (not GNU ld)
24861     case $host_os in
24862     aix3*)
24863       allow_undefined_flag_GCJ=unsupported
24864       always_export_symbols_GCJ=yes
24865       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'
24866       # Note: this linker hardcodes the directories in LIBPATH if there
24867       # are no directories specified by -L.
24868       hardcode_minus_L_GCJ=yes
24869       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24870         # Neither direct hardcoding nor static linking is supported with a
24871         # broken collect2.
24872         hardcode_direct_GCJ=unsupported
24873       fi
24874       ;;
24875
24876     aix4* | aix5*)
24877       if test "$host_cpu" = ia64; then
24878         # On IA64, the linker does run time linking by default, so we don't
24879         # have to do anything special.
24880         aix_use_runtimelinking=no
24881         exp_sym_flag='-Bexport'
24882         no_entry_flag=""
24883       else
24884         # If we're using GNU nm, then we don't want the "-C" option.
24885         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24886         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24887           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'
24888         else
24889           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'
24890         fi
24891         aix_use_runtimelinking=no
24892
24893         # Test if we are trying to use run time linking or normal
24894         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24895         # need to do runtime linking.
24896         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24897           for ld_flag in $LDFLAGS; do
24898           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24899             aix_use_runtimelinking=yes
24900             break
24901           fi
24902           done
24903           ;;
24904         esac
24905
24906         exp_sym_flag='-bexport'
24907         no_entry_flag='-bnoentry'
24908       fi
24909
24910       # When large executables or shared objects are built, AIX ld can
24911       # have problems creating the table of contents.  If linking a library
24912       # or program results in "error TOC overflow" add -mminimal-toc to
24913       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24914       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24915
24916       archive_cmds_GCJ=''
24917       hardcode_direct_GCJ=yes
24918       hardcode_libdir_separator_GCJ=':'
24919       link_all_deplibs_GCJ=yes
24920
24921       if test "$GCC" = yes; then
24922         case $host_os in aix4.[012]|aix4.[012].*)
24923         # We only want to do this on AIX 4.2 and lower, the check
24924         # below for broken collect2 doesn't work under 4.3+
24925           collect2name=`${CC} -print-prog-name=collect2`
24926           if test -f "$collect2name" && \
24927            strings "$collect2name" | grep resolve_lib_name >/dev/null
24928           then
24929           # We have reworked collect2
24930           hardcode_direct_GCJ=yes
24931           else
24932           # We have old collect2
24933           hardcode_direct_GCJ=unsupported
24934           # It fails to find uninstalled libraries when the uninstalled
24935           # path is not listed in the libpath.  Setting hardcode_minus_L
24936           # to unsupported forces relinking
24937           hardcode_minus_L_GCJ=yes
24938           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24939           hardcode_libdir_separator_GCJ=
24940           fi
24941           ;;
24942         esac
24943         shared_flag='-shared'
24944         if test "$aix_use_runtimelinking" = yes; then
24945           shared_flag="$shared_flag "'${wl}-G'
24946         fi
24947       else
24948         # not using gcc
24949         if test "$host_cpu" = ia64; then
24950         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24951         # chokes on -Wl,-G. The following line is correct:
24952           shared_flag='-G'
24953         else
24954           if test "$aix_use_runtimelinking" = yes; then
24955             shared_flag='${wl}-G'
24956           else
24957             shared_flag='${wl}-bM:SRE'
24958           fi
24959         fi
24960       fi
24961
24962       # It seems that -bexpall does not export symbols beginning with
24963       # underscore (_), so it is better to generate a list of symbols to export.
24964       always_export_symbols_GCJ=yes
24965       if test "$aix_use_runtimelinking" = yes; then
24966         # Warning - without using the other runtime loading flags (-brtl),
24967         # -berok will link without error, but may produce a broken library.
24968         allow_undefined_flag_GCJ='-berok'
24969        # Determine the default libpath from the value encoded in an empty executable.
24970        cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976
24977 int
24978 main ()
24979 {
24980
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext conftest$ac_exeext
24986 if { (ac_try="$ac_link"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_link") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } &&
24999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25000   { (case "(($ac_try" in
25001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002   *) ac_try_echo=$ac_try;;
25003 esac
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005   (eval "$ac_try") 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; } &&
25009          { ac_try='test -s conftest$ac_exeext'
25010   { (case "(($ac_try" in
25011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012   *) ac_try_echo=$ac_try;;
25013 esac
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015   (eval "$ac_try") 2>&5
25016   ac_status=$?
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); }; }; then
25019
25020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25021 }'`
25022 # Check for a 64-bit object if we didn't find anything.
25023 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; }
25024 }'`; fi
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029
25030 fi
25031
25032 rm -f core conftest.err conftest.$ac_objext \
25033       conftest$ac_exeext conftest.$ac_ext
25034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25035
25036        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25037         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"
25038        else
25039         if test "$host_cpu" = ia64; then
25040           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25041           allow_undefined_flag_GCJ="-z nodefs"
25042           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"
25043         else
25044          # Determine the default libpath from the value encoded in an empty executable.
25045          cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h.  */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h.  */
25051
25052 int
25053 main ()
25054 {
25055
25056   ;
25057   return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (ac_try="$ac_link"
25062 case "(($ac_try" in
25063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064   *) ac_try_echo=$ac_try;;
25065 esac
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067   (eval "$ac_link") 2>conftest.er1
25068   ac_status=$?
25069   grep -v '^ *+' conftest.er1 >conftest.err
25070   rm -f conftest.er1
25071   cat conftest.err >&5
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } &&
25074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25075   { (case "(($ac_try" in
25076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077   *) ac_try_echo=$ac_try;;
25078 esac
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080   (eval "$ac_try") 2>&5
25081   ac_status=$?
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); }; } &&
25084          { ac_try='test -s conftest$ac_exeext'
25085   { (case "(($ac_try" in
25086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087   *) ac_try_echo=$ac_try;;
25088 esac
25089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090   (eval "$ac_try") 2>&5
25091   ac_status=$?
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); }; }; then
25094
25095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25096 }'`
25097 # Check for a 64-bit object if we didn't find anything.
25098 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; }
25099 }'`; fi
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext \
25108       conftest$ac_exeext conftest.$ac_ext
25109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25110
25111          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25112           # Warning - without using the other run time loading flags,
25113           # -berok will link without error, but may produce a broken library.
25114           no_undefined_flag_GCJ=' ${wl}-bernotok'
25115           allow_undefined_flag_GCJ=' ${wl}-berok'
25116           # Exported symbols can be pulled into shared objects from archives
25117           whole_archive_flag_spec_GCJ='$convenience'
25118           archive_cmds_need_lc_GCJ=yes
25119           # This is similar to how AIX traditionally builds its shared libraries.
25120           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'
25121         fi
25122       fi
25123       ;;
25124
25125     amigaos*)
25126       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)'
25127       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25128       hardcode_minus_L_GCJ=yes
25129       # see comment about different semantics on the GNU ld section
25130       ld_shlibs_GCJ=no
25131       ;;
25132
25133     bsdi[45]*)
25134       export_dynamic_flag_spec_GCJ=-rdynamic
25135       ;;
25136
25137     cygwin* | mingw* | pw32*)
25138       # When not using gcc, we currently assume that we are using
25139       # Microsoft Visual C++.
25140       # hardcode_libdir_flag_spec is actually meaningless, as there is
25141       # no search path for DLLs.
25142       hardcode_libdir_flag_spec_GCJ=' '
25143       allow_undefined_flag_GCJ=unsupported
25144       # Tell ltmain to make .lib files, not .a files.
25145       libext=lib
25146       # Tell ltmain to make .dll files, not .so files.
25147       shrext_cmds=".dll"
25148       # FIXME: Setting linknames here is a bad hack.
25149       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25150       # The linker will automatically build a .lib file if we build a DLL.
25151       old_archive_From_new_cmds_GCJ='true'
25152       # FIXME: Should let the user specify the lib program.
25153       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25154       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25155       enable_shared_with_static_runtimes_GCJ=yes
25156       ;;
25157
25158     darwin* | rhapsody*)
25159       case $host_os in
25160         rhapsody* | darwin1.[012])
25161          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25162          ;;
25163        *) # Darwin 1.3 on
25164          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25165            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25166          else
25167            case ${MACOSX_DEPLOYMENT_TARGET} in
25168              10.[012])
25169                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25170                ;;
25171              10.*)
25172                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25173                ;;
25174            esac
25175          fi
25176          ;;
25177       esac
25178       archive_cmds_need_lc_GCJ=no
25179       hardcode_direct_GCJ=no
25180       hardcode_automatic_GCJ=yes
25181       hardcode_shlibpath_var_GCJ=unsupported
25182       whole_archive_flag_spec_GCJ=''
25183       link_all_deplibs_GCJ=yes
25184     if test "$GCC" = yes ; then
25185         output_verbose_link_cmd='echo'
25186         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25187       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25188       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25189       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}'
25190       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}'
25191     else
25192       case $cc_basename in
25193         xlc*)
25194          output_verbose_link_cmd='echo'
25195          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25196          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25197           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25198          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}'
25199           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}'
25200           ;;
25201        *)
25202          ld_shlibs_GCJ=no
25203           ;;
25204       esac
25205     fi
25206       ;;
25207
25208     dgux*)
25209       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25210       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25211       hardcode_shlibpath_var_GCJ=no
25212       ;;
25213
25214     freebsd1*)
25215       ld_shlibs_GCJ=no
25216       ;;
25217
25218     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25219     # support.  Future versions do this automatically, but an explicit c++rt0.o
25220     # does not break anything, and helps significantly (at the cost of a little
25221     # extra space).
25222     freebsd2.2*)
25223       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25224       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25225       hardcode_direct_GCJ=yes
25226       hardcode_shlibpath_var_GCJ=no
25227       ;;
25228
25229     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25230     freebsd2*)
25231       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25232       hardcode_direct_GCJ=yes
25233       hardcode_minus_L_GCJ=yes
25234       hardcode_shlibpath_var_GCJ=no
25235       ;;
25236
25237     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25238     freebsd* | kfreebsd*-gnu | dragonfly*)
25239       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25240       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25241       hardcode_direct_GCJ=yes
25242       hardcode_shlibpath_var_GCJ=no
25243       ;;
25244
25245     hpux9*)
25246       if test "$GCC" = yes; then
25247         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'
25248       else
25249         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'
25250       fi
25251       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25252       hardcode_libdir_separator_GCJ=:
25253       hardcode_direct_GCJ=yes
25254
25255       # hardcode_minus_L: Not really in the search PATH,
25256       # but as the default location of the library.
25257       hardcode_minus_L_GCJ=yes
25258       export_dynamic_flag_spec_GCJ='${wl}-E'
25259       ;;
25260
25261     hpux10*)
25262       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25263         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25264       else
25265         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25266       fi
25267       if test "$with_gnu_ld" = no; then
25268         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25269         hardcode_libdir_separator_GCJ=:
25270
25271         hardcode_direct_GCJ=yes
25272         export_dynamic_flag_spec_GCJ='${wl}-E'
25273
25274         # hardcode_minus_L: Not really in the search PATH,
25275         # but as the default location of the library.
25276         hardcode_minus_L_GCJ=yes
25277       fi
25278       ;;
25279
25280     hpux11*)
25281       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25282         case $host_cpu in
25283         hppa*64*)
25284           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25285           ;;
25286         ia64*)
25287           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25288           ;;
25289         *)
25290           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25291           ;;
25292         esac
25293       else
25294         case $host_cpu in
25295         hppa*64*)
25296           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25297           ;;
25298         ia64*)
25299           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25300           ;;
25301         *)
25302           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25303           ;;
25304         esac
25305       fi
25306       if test "$with_gnu_ld" = no; then
25307         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25308         hardcode_libdir_separator_GCJ=:
25309
25310         case $host_cpu in
25311         hppa*64*|ia64*)
25312           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25313           hardcode_direct_GCJ=no
25314           hardcode_shlibpath_var_GCJ=no
25315           ;;
25316         *)
25317           hardcode_direct_GCJ=yes
25318           export_dynamic_flag_spec_GCJ='${wl}-E'
25319
25320           # hardcode_minus_L: Not really in the search PATH,
25321           # but as the default location of the library.
25322           hardcode_minus_L_GCJ=yes
25323           ;;
25324         esac
25325       fi
25326       ;;
25327
25328     irix5* | irix6* | nonstopux*)
25329       if test "$GCC" = yes; then
25330         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'
25331       else
25332         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'
25333         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25334       fi
25335       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25336       hardcode_libdir_separator_GCJ=:
25337       link_all_deplibs_GCJ=yes
25338       ;;
25339
25340     netbsd*)
25341       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25342         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25343       else
25344         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25345       fi
25346       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25347       hardcode_direct_GCJ=yes
25348       hardcode_shlibpath_var_GCJ=no
25349       ;;
25350
25351     newsos6)
25352       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25353       hardcode_direct_GCJ=yes
25354       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25355       hardcode_libdir_separator_GCJ=:
25356       hardcode_shlibpath_var_GCJ=no
25357       ;;
25358
25359     openbsd*)
25360       hardcode_direct_GCJ=yes
25361       hardcode_shlibpath_var_GCJ=no
25362       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25363         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25364         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25365         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25366         export_dynamic_flag_spec_GCJ='${wl}-E'
25367       else
25368        case $host_os in
25369          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25370            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25371            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25372            ;;
25373          *)
25374            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25375            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25376            ;;
25377        esac
25378       fi
25379       ;;
25380
25381     os2*)
25382       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25383       hardcode_minus_L_GCJ=yes
25384       allow_undefined_flag_GCJ=unsupported
25385       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'
25386       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25387       ;;
25388
25389     osf3*)
25390       if test "$GCC" = yes; then
25391         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25392         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'
25393       else
25394         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25395         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'
25396       fi
25397       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25398       hardcode_libdir_separator_GCJ=:
25399       ;;
25400
25401     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25402       if test "$GCC" = yes; then
25403         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25404         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'
25405         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25406       else
25407         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25408         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'
25409         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~
25410         $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'
25411
25412         # Both c and cxx compiler support -rpath directly
25413         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25414       fi
25415       hardcode_libdir_separator_GCJ=:
25416       ;;
25417
25418     solaris*)
25419       no_undefined_flag_GCJ=' -z text'
25420       if test "$GCC" = yes; then
25421         wlarc='${wl}'
25422         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25424           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25425       else
25426         wlarc=''
25427         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25428         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25429         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25430       fi
25431       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25432       hardcode_shlibpath_var_GCJ=no
25433       case $host_os in
25434       solaris2.[0-5] | solaris2.[0-5].*) ;;
25435       *)
25436         # The compiler driver will combine linker options so we
25437         # cannot just pass the convience library names through
25438         # without $wl, iff we do not link with $LD.
25439         # Luckily, gcc supports the same syntax we need for Sun Studio.
25440         # Supported since Solaris 2.6 (maybe 2.5.1?)
25441         case $wlarc in
25442         '')
25443           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25444         *)
25445           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' ;;
25446         esac ;;
25447       esac
25448       link_all_deplibs_GCJ=yes
25449       ;;
25450
25451     sunos4*)
25452       if test "x$host_vendor" = xsequent; then
25453         # Use $CC to link under sequent, because it throws in some extra .o
25454         # files that make .init and .fini sections work.
25455         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25456       else
25457         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25458       fi
25459       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25460       hardcode_direct_GCJ=yes
25461       hardcode_minus_L_GCJ=yes
25462       hardcode_shlibpath_var_GCJ=no
25463       ;;
25464
25465     sysv4)
25466       case $host_vendor in
25467         sni)
25468           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25469           hardcode_direct_GCJ=yes # is this really true???
25470         ;;
25471         siemens)
25472           ## LD is ld it makes a PLAMLIB
25473           ## CC just makes a GrossModule.
25474           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25475           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25476           hardcode_direct_GCJ=no
25477         ;;
25478         motorola)
25479           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25480           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25481         ;;
25482       esac
25483       runpath_var='LD_RUN_PATH'
25484       hardcode_shlibpath_var_GCJ=no
25485       ;;
25486
25487     sysv4.3*)
25488       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25489       hardcode_shlibpath_var_GCJ=no
25490       export_dynamic_flag_spec_GCJ='-Bexport'
25491       ;;
25492
25493     sysv4*MP*)
25494       if test -d /usr/nec; then
25495         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25496         hardcode_shlibpath_var_GCJ=no
25497         runpath_var=LD_RUN_PATH
25498         hardcode_runpath_var=yes
25499         ld_shlibs_GCJ=yes
25500       fi
25501       ;;
25502
25503     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25504       no_undefined_flag_GCJ='${wl}-z,text'
25505       archive_cmds_need_lc_GCJ=no
25506       hardcode_shlibpath_var_GCJ=no
25507       runpath_var='LD_RUN_PATH'
25508
25509       if test "$GCC" = yes; then
25510         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25511         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25512       else
25513         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25514         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25515       fi
25516       ;;
25517
25518     sysv5* | sco3.2v5* | sco5v6*)
25519       # Note: We can NOT use -z defs as we might desire, because we do not
25520       # link with -lc, and that would cause any symbols used from libc to
25521       # always be unresolved, which means just about no library would
25522       # ever link correctly.  If we're not using GNU ld we use -z text
25523       # though, which does catch some bad symbols but isn't as heavy-handed
25524       # as -z defs.
25525       no_undefined_flag_GCJ='${wl}-z,text'
25526       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25527       archive_cmds_need_lc_GCJ=no
25528       hardcode_shlibpath_var_GCJ=no
25529       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25530       hardcode_libdir_separator_GCJ=':'
25531       link_all_deplibs_GCJ=yes
25532       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25533       runpath_var='LD_RUN_PATH'
25534
25535       if test "$GCC" = yes; then
25536         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25537         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25538       else
25539         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25540         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25541       fi
25542       ;;
25543
25544     uts4*)
25545       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25546       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25547       hardcode_shlibpath_var_GCJ=no
25548       ;;
25549
25550     *)
25551       ld_shlibs_GCJ=no
25552       ;;
25553     esac
25554   fi
25555
25556 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25557 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25558 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25559
25560 #
25561 # Do we need to explicitly link libc?
25562 #
25563 case "x$archive_cmds_need_lc_GCJ" in
25564 x|xyes)
25565   # Assume -lc should be added
25566   archive_cmds_need_lc_GCJ=yes
25567
25568   if test "$enable_shared" = yes && test "$GCC" = yes; then
25569     case $archive_cmds_GCJ in
25570     *'~'*)
25571       # FIXME: we may have to deal with multi-command sequences.
25572       ;;
25573     '$CC '*)
25574       # Test whether the compiler implicitly links with -lc since on some
25575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25576       # to ld, don't add -lc before -lgcc.
25577       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25579       $rm conftest*
25580       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25581
25582       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25583   (eval $ac_compile) 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); } 2>conftest.err; then
25587         soname=conftest
25588         lib=conftest
25589         libobjs=conftest.$ac_objext
25590         deplibs=
25591         wl=$lt_prog_compiler_wl_GCJ
25592         pic_flag=$lt_prog_compiler_pic_GCJ
25593         compiler_flags=-v
25594         linker_flags=-v
25595         verstring=
25596         output_objdir=.
25597         libname=conftest
25598         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25599         allow_undefined_flag_GCJ=
25600         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25601   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25602   ac_status=$?
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); }
25605         then
25606           archive_cmds_need_lc_GCJ=no
25607         else
25608           archive_cmds_need_lc_GCJ=yes
25609         fi
25610         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25611       else
25612         cat conftest.err 1>&5
25613       fi
25614       $rm conftest*
25615       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25616 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25617       ;;
25618     esac
25619   fi
25620   ;;
25621 esac
25622
25623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25625 library_names_spec=
25626 libname_spec='lib$name'
25627 soname_spec=
25628 shrext_cmds=".so"
25629 postinstall_cmds=
25630 postuninstall_cmds=
25631 finish_cmds=
25632 finish_eval=
25633 shlibpath_var=
25634 shlibpath_overrides_runpath=unknown
25635 version_type=none
25636 dynamic_linker="$host_os ld.so"
25637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25638 if test "$GCC" = yes; then
25639   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25640   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25641     # if the path contains ";" then we assume it to be the separator
25642     # otherwise default to the standard path separator (i.e. ":") - it is
25643     # assumed that no part of a normal pathname contains ";" but that should
25644     # okay in the real world where ";" in dirpaths is itself problematic.
25645     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25646   else
25647     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25648   fi
25649 else
25650   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25651 fi
25652 need_lib_prefix=unknown
25653 hardcode_into_libs=no
25654
25655 # when you set need_version to no, make sure it does not cause -set_version
25656 # flags to be left without arguments
25657 need_version=unknown
25658
25659 case $host_os in
25660 aix3*)
25661   version_type=linux
25662   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25663   shlibpath_var=LIBPATH
25664
25665   # AIX 3 has no versioning support, so we append a major version to the name.
25666   soname_spec='${libname}${release}${shared_ext}$major'
25667   ;;
25668
25669 aix4* | aix5*)
25670   version_type=linux
25671   need_lib_prefix=no
25672   need_version=no
25673   hardcode_into_libs=yes
25674   if test "$host_cpu" = ia64; then
25675     # AIX 5 supports IA64
25676     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25677     shlibpath_var=LD_LIBRARY_PATH
25678   else
25679     # With GCC up to 2.95.x, collect2 would create an import file
25680     # for dependence libraries.  The import file would start with
25681     # the line `#! .'.  This would cause the generated library to
25682     # depend on `.', always an invalid library.  This was fixed in
25683     # development snapshots of GCC prior to 3.0.
25684     case $host_os in
25685       aix4 | aix4.[01] | aix4.[01].*)
25686       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25687            echo ' yes '
25688            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25689         :
25690       else
25691         can_build_shared=no
25692       fi
25693       ;;
25694     esac
25695     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25696     # soname into executable. Probably we can add versioning support to
25697     # collect2, so additional links can be useful in future.
25698     if test "$aix_use_runtimelinking" = yes; then
25699       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25700       # instead of lib<name>.a to let people know that these are not
25701       # typical AIX shared libraries.
25702       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25703     else
25704       # We preserve .a as extension for shared libraries through AIX4.2
25705       # and later when we are not doing run time linking.
25706       library_names_spec='${libname}${release}.a $libname.a'
25707       soname_spec='${libname}${release}${shared_ext}$major'
25708     fi
25709     shlibpath_var=LIBPATH
25710   fi
25711   ;;
25712
25713 amigaos*)
25714   library_names_spec='$libname.ixlibrary $libname.a'
25715   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25716   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'
25717   ;;
25718
25719 beos*)
25720   library_names_spec='${libname}${shared_ext}'
25721   dynamic_linker="$host_os ld.so"
25722   shlibpath_var=LIBRARY_PATH
25723   ;;
25724
25725 bsdi[45]*)
25726   version_type=linux
25727   need_version=no
25728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25729   soname_spec='${libname}${release}${shared_ext}$major'
25730   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25731   shlibpath_var=LD_LIBRARY_PATH
25732   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25733   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25734   # the default ld.so.conf also contains /usr/contrib/lib and
25735   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25736   # libtool to hard-code these into programs
25737   ;;
25738
25739 cygwin* | mingw* | pw32*)
25740   version_type=windows
25741   shrext_cmds=".dll"
25742   need_version=no
25743   need_lib_prefix=no
25744
25745   case $GCC,$host_os in
25746   yes,cygwin* | yes,mingw* | yes,pw32*)
25747     library_names_spec='$libname.dll.a'
25748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25749     postinstall_cmds='base_file=`basename \${file}`~
25750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25751       dldir=$destdir/`dirname \$dlpath`~
25752       test -d \$dldir || mkdir -p \$dldir~
25753       $install_prog $dir/$dlname \$dldir/$dlname~
25754       chmod a+x \$dldir/$dlname'
25755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25756       dlpath=$dir/\$dldll~
25757        $rm \$dlpath'
25758     shlibpath_overrides_runpath=yes
25759
25760     case $host_os in
25761     cygwin*)
25762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25765       ;;
25766     mingw*)
25767       # MinGW DLLs use traditional 'lib' prefix
25768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25771         # It is most probably a Windows format PATH printed by
25772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25773         # path with ; separators, and with drive letters. We can handle the
25774         # drive letters (cygwin fileutils understands them), so leave them,
25775         # especially as we might pass files found there to a mingw objdump,
25776         # which wouldn't understand a cygwinified path. Ahh.
25777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25778       else
25779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25780       fi
25781       ;;
25782     pw32*)
25783       # pw32 DLLs use 'pw' prefix rather than 'lib'
25784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25785       ;;
25786     esac
25787     ;;
25788
25789   *)
25790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25791     ;;
25792   esac
25793   dynamic_linker='Win32 ld.exe'
25794   # FIXME: first we should search . and the directory the executable is in
25795   shlibpath_var=PATH
25796   ;;
25797
25798 darwin* | rhapsody*)
25799   dynamic_linker="$host_os dyld"
25800   version_type=darwin
25801   need_lib_prefix=no
25802   need_version=no
25803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25804   soname_spec='${libname}${release}${major}$shared_ext'
25805   shlibpath_overrides_runpath=yes
25806   shlibpath_var=DYLD_LIBRARY_PATH
25807   shrext_cmds='.dylib'
25808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25809   if test "$GCC" = yes; then
25810     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"`
25811   else
25812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25813   fi
25814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25815   ;;
25816
25817 dgux*)
25818   version_type=linux
25819   need_lib_prefix=no
25820   need_version=no
25821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25822   soname_spec='${libname}${release}${shared_ext}$major'
25823   shlibpath_var=LD_LIBRARY_PATH
25824   ;;
25825
25826 freebsd1*)
25827   dynamic_linker=no
25828   ;;
25829
25830 kfreebsd*-gnu)
25831   version_type=linux
25832   need_lib_prefix=no
25833   need_version=no
25834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25835   soname_spec='${libname}${release}${shared_ext}$major'
25836   shlibpath_var=LD_LIBRARY_PATH
25837   shlibpath_overrides_runpath=no
25838   hardcode_into_libs=yes
25839   dynamic_linker='GNU ld.so'
25840   ;;
25841
25842 freebsd* | dragonfly*)
25843   # DragonFly does not have aout.  When/if they implement a new
25844   # versioning mechanism, adjust this.
25845   if test -x /usr/bin/objformat; then
25846     objformat=`/usr/bin/objformat`
25847   else
25848     case $host_os in
25849     freebsd[123]*) objformat=aout ;;
25850     *) objformat=elf ;;
25851     esac
25852   fi
25853   version_type=freebsd-$objformat
25854   case $version_type in
25855     freebsd-elf*)
25856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25857       need_version=no
25858       need_lib_prefix=no
25859       ;;
25860     freebsd-*)
25861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25862       need_version=yes
25863       ;;
25864   esac
25865   shlibpath_var=LD_LIBRARY_PATH
25866   case $host_os in
25867   freebsd2*)
25868     shlibpath_overrides_runpath=yes
25869     ;;
25870   freebsd3.[01]* | freebsdelf3.[01]*)
25871     shlibpath_overrides_runpath=yes
25872     hardcode_into_libs=yes
25873     ;;
25874   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25875   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25876     shlibpath_overrides_runpath=no
25877     hardcode_into_libs=yes
25878     ;;
25879   freebsd*) # from 4.6 on
25880     shlibpath_overrides_runpath=yes
25881     hardcode_into_libs=yes
25882     ;;
25883   esac
25884   ;;
25885
25886 gnu*)
25887   version_type=linux
25888   need_lib_prefix=no
25889   need_version=no
25890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25891   soname_spec='${libname}${release}${shared_ext}$major'
25892   shlibpath_var=LD_LIBRARY_PATH
25893   hardcode_into_libs=yes
25894   ;;
25895
25896 hpux9* | hpux10* | hpux11*)
25897   # Give a soname corresponding to the major version so that dld.sl refuses to
25898   # link against other versions.
25899   version_type=sunos
25900   need_lib_prefix=no
25901   need_version=no
25902   case $host_cpu in
25903   ia64*)
25904     shrext_cmds='.so'
25905     hardcode_into_libs=yes
25906     dynamic_linker="$host_os dld.so"
25907     shlibpath_var=LD_LIBRARY_PATH
25908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910     soname_spec='${libname}${release}${shared_ext}$major'
25911     if test "X$HPUX_IA64_MODE" = X32; then
25912       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25913     else
25914       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25915     fi
25916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25917     ;;
25918    hppa*64*)
25919      shrext_cmds='.sl'
25920      hardcode_into_libs=yes
25921      dynamic_linker="$host_os dld.sl"
25922      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25923      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925      soname_spec='${libname}${release}${shared_ext}$major'
25926      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25927      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25928      ;;
25929    *)
25930     shrext_cmds='.sl'
25931     dynamic_linker="$host_os dld.sl"
25932     shlibpath_var=SHLIB_PATH
25933     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25935     soname_spec='${libname}${release}${shared_ext}$major'
25936     ;;
25937   esac
25938   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25939   postinstall_cmds='chmod 555 $lib'
25940   ;;
25941
25942 interix3*)
25943   version_type=linux
25944   need_lib_prefix=no
25945   need_version=no
25946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25947   soname_spec='${libname}${release}${shared_ext}$major'
25948   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25949   shlibpath_var=LD_LIBRARY_PATH
25950   shlibpath_overrides_runpath=no
25951   hardcode_into_libs=yes
25952   ;;
25953
25954 irix5* | irix6* | nonstopux*)
25955   case $host_os in
25956     nonstopux*) version_type=nonstopux ;;
25957     *)
25958         if test "$lt_cv_prog_gnu_ld" = yes; then
25959                 version_type=linux
25960         else
25961                 version_type=irix
25962         fi ;;
25963   esac
25964   need_lib_prefix=no
25965   need_version=no
25966   soname_spec='${libname}${release}${shared_ext}$major'
25967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25968   case $host_os in
25969   irix5* | nonstopux*)
25970     libsuff= shlibsuff=
25971     ;;
25972   *)
25973     case $LD in # libtool.m4 will add one of these switches to LD
25974     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25975       libsuff= shlibsuff= libmagic=32-bit;;
25976     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25977       libsuff=32 shlibsuff=N32 libmagic=N32;;
25978     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25979       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25980     *) libsuff= shlibsuff= libmagic=never-match;;
25981     esac
25982     ;;
25983   esac
25984   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25985   shlibpath_overrides_runpath=no
25986   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25987   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25988   hardcode_into_libs=yes
25989   ;;
25990
25991 # No shared lib support for Linux oldld, aout, or coff.
25992 linux*oldld* | linux*aout* | linux*coff*)
25993   dynamic_linker=no
25994   ;;
25995
25996 # This must be Linux ELF.
25997 linux*)
25998   version_type=linux
25999   need_lib_prefix=no
26000   need_version=no
26001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26002   soname_spec='${libname}${release}${shared_ext}$major'
26003   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26004   shlibpath_var=LD_LIBRARY_PATH
26005   shlibpath_overrides_runpath=no
26006   # This implies no fast_install, which is unacceptable.
26007   # Some rework will be needed to allow for fast_install
26008   # before this can be enabled.
26009   hardcode_into_libs=yes
26010
26011   # Append ld.so.conf contents to the search path
26012   if test -f /etc/ld.so.conf; then
26013     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' ' '`
26014     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26015   fi
26016
26017   # We used to test for /lib/ld.so.1 and disable shared libraries on
26018   # powerpc, because MkLinux only supported shared libraries with the
26019   # GNU dynamic linker.  Since this was broken with cross compilers,
26020   # most powerpc-linux boxes support dynamic linking these days and
26021   # people can always --disable-shared, the test was removed, and we
26022   # assume the GNU/Linux dynamic linker is in use.
26023   dynamic_linker='GNU/Linux ld.so'
26024   ;;
26025
26026 knetbsd*-gnu)
26027   version_type=linux
26028   need_lib_prefix=no
26029   need_version=no
26030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26031   soname_spec='${libname}${release}${shared_ext}$major'
26032   shlibpath_var=LD_LIBRARY_PATH
26033   shlibpath_overrides_runpath=no
26034   hardcode_into_libs=yes
26035   dynamic_linker='GNU ld.so'
26036   ;;
26037
26038 netbsd*)
26039   version_type=sunos
26040   need_lib_prefix=no
26041   need_version=no
26042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26045     dynamic_linker='NetBSD (a.out) ld.so'
26046   else
26047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26048     soname_spec='${libname}${release}${shared_ext}$major'
26049     dynamic_linker='NetBSD ld.elf_so'
26050   fi
26051   shlibpath_var=LD_LIBRARY_PATH
26052   shlibpath_overrides_runpath=yes
26053   hardcode_into_libs=yes
26054   ;;
26055
26056 newsos6)
26057   version_type=linux
26058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059   shlibpath_var=LD_LIBRARY_PATH
26060   shlibpath_overrides_runpath=yes
26061   ;;
26062
26063 nto-qnx*)
26064   version_type=linux
26065   need_lib_prefix=no
26066   need_version=no
26067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26068   soname_spec='${libname}${release}${shared_ext}$major'
26069   shlibpath_var=LD_LIBRARY_PATH
26070   shlibpath_overrides_runpath=yes
26071   ;;
26072
26073 openbsd*)
26074   version_type=sunos
26075   sys_lib_dlsearch_path_spec="/usr/lib"
26076   need_lib_prefix=no
26077   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26078   case $host_os in
26079     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26080     *)                         need_version=no  ;;
26081   esac
26082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26084   shlibpath_var=LD_LIBRARY_PATH
26085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26086     case $host_os in
26087       openbsd2.[89] | openbsd2.[89].*)
26088         shlibpath_overrides_runpath=no
26089         ;;
26090       *)
26091         shlibpath_overrides_runpath=yes
26092         ;;
26093       esac
26094   else
26095     shlibpath_overrides_runpath=yes
26096   fi
26097   ;;
26098
26099 os2*)
26100   libname_spec='$name'
26101   shrext_cmds=".dll"
26102   need_lib_prefix=no
26103   library_names_spec='$libname${shared_ext} $libname.a'
26104   dynamic_linker='OS/2 ld.exe'
26105   shlibpath_var=LIBPATH
26106   ;;
26107
26108 osf3* | osf4* | osf5*)
26109   version_type=osf
26110   need_lib_prefix=no
26111   need_version=no
26112   soname_spec='${libname}${release}${shared_ext}$major'
26113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26114   shlibpath_var=LD_LIBRARY_PATH
26115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26117   ;;
26118
26119 solaris*)
26120   version_type=linux
26121   need_lib_prefix=no
26122   need_version=no
26123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26124   soname_spec='${libname}${release}${shared_ext}$major'
26125   shlibpath_var=LD_LIBRARY_PATH
26126   shlibpath_overrides_runpath=yes
26127   hardcode_into_libs=yes
26128   # ldd complains unless libraries are executable
26129   postinstall_cmds='chmod +x $lib'
26130   ;;
26131
26132 sunos4*)
26133   version_type=sunos
26134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26135   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26136   shlibpath_var=LD_LIBRARY_PATH
26137   shlibpath_overrides_runpath=yes
26138   if test "$with_gnu_ld" = yes; then
26139     need_lib_prefix=no
26140   fi
26141   need_version=yes
26142   ;;
26143
26144 sysv4 | sysv4.3*)
26145   version_type=linux
26146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26147   soname_spec='${libname}${release}${shared_ext}$major'
26148   shlibpath_var=LD_LIBRARY_PATH
26149   case $host_vendor in
26150     sni)
26151       shlibpath_overrides_runpath=no
26152       need_lib_prefix=no
26153       export_dynamic_flag_spec='${wl}-Blargedynsym'
26154       runpath_var=LD_RUN_PATH
26155       ;;
26156     siemens)
26157       need_lib_prefix=no
26158       ;;
26159     motorola)
26160       need_lib_prefix=no
26161       need_version=no
26162       shlibpath_overrides_runpath=no
26163       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26164       ;;
26165   esac
26166   ;;
26167
26168 sysv4*MP*)
26169   if test -d /usr/nec ;then
26170     version_type=linux
26171     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26172     soname_spec='$libname${shared_ext}.$major'
26173     shlibpath_var=LD_LIBRARY_PATH
26174   fi
26175   ;;
26176
26177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26178   version_type=freebsd-elf
26179   need_lib_prefix=no
26180   need_version=no
26181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26182   soname_spec='${libname}${release}${shared_ext}$major'
26183   shlibpath_var=LD_LIBRARY_PATH
26184   hardcode_into_libs=yes
26185   if test "$with_gnu_ld" = yes; then
26186     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26187     shlibpath_overrides_runpath=no
26188   else
26189     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26190     shlibpath_overrides_runpath=yes
26191     case $host_os in
26192       sco3.2v5*)
26193         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26194         ;;
26195     esac
26196   fi
26197   sys_lib_dlsearch_path_spec='/usr/lib'
26198   ;;
26199
26200 uts4*)
26201   version_type=linux
26202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203   soname_spec='${libname}${release}${shared_ext}$major'
26204   shlibpath_var=LD_LIBRARY_PATH
26205   ;;
26206
26207 *)
26208   dynamic_linker=no
26209   ;;
26210 esac
26211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26212 echo "${ECHO_T}$dynamic_linker" >&6; }
26213 test "$dynamic_linker" = no && can_build_shared=no
26214
26215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26216 if test "$GCC" = yes; then
26217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26218 fi
26219
26220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26222 hardcode_action_GCJ=
26223 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26224    test -n "$runpath_var_GCJ" || \
26225    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26226
26227   # We can hardcode non-existant directories.
26228   if test "$hardcode_direct_GCJ" != no &&
26229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26230      # have to relink, otherwise we might link with an installed library
26231      # when we should be linking with a yet-to-be-installed one
26232      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26233      test "$hardcode_minus_L_GCJ" != no; then
26234     # Linking always hardcodes the temporary library directory.
26235     hardcode_action_GCJ=relink
26236   else
26237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26238     hardcode_action_GCJ=immediate
26239   fi
26240 else
26241   # We cannot hardcode anything, or else we can only hardcode existing
26242   # directories.
26243   hardcode_action_GCJ=unsupported
26244 fi
26245 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26246 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26247
26248 if test "$hardcode_action_GCJ" = relink; then
26249   # Fast installation is not supported
26250   enable_fast_install=no
26251 elif test "$shlibpath_overrides_runpath" = yes ||
26252      test "$enable_shared" = no; then
26253   # Fast installation is not necessary
26254   enable_fast_install=needless
26255 fi
26256
26257
26258 # The else clause should only fire when bootstrapping the
26259 # libtool distribution, otherwise you forgot to ship ltmain.sh
26260 # with your package, and you will get complaints that there are
26261 # no rules to generate ltmain.sh.
26262 if test -f "$ltmain"; then
26263   # See if we are running on zsh, and set the options which allow our commands through
26264   # without removal of \ escapes.
26265   if test -n "${ZSH_VERSION+set}" ; then
26266     setopt NO_GLOB_SUBST
26267   fi
26268   # Now quote all the things that may contain metacharacters while being
26269   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26270   # variables and quote the copies for generation of the libtool script.
26271   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26272     SED SHELL STRIP \
26273     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26274     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26275     deplibs_check_method reload_flag reload_cmds need_locks \
26276     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26277     lt_cv_sys_global_symbol_to_c_name_address \
26278     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26279     old_postinstall_cmds old_postuninstall_cmds \
26280     compiler_GCJ \
26281     CC_GCJ \
26282     LD_GCJ \
26283     lt_prog_compiler_wl_GCJ \
26284     lt_prog_compiler_pic_GCJ \
26285     lt_prog_compiler_static_GCJ \
26286     lt_prog_compiler_no_builtin_flag_GCJ \
26287     export_dynamic_flag_spec_GCJ \
26288     thread_safe_flag_spec_GCJ \
26289     whole_archive_flag_spec_GCJ \
26290     enable_shared_with_static_runtimes_GCJ \
26291     old_archive_cmds_GCJ \
26292     old_archive_from_new_cmds_GCJ \
26293     predep_objects_GCJ \
26294     postdep_objects_GCJ \
26295     predeps_GCJ \
26296     postdeps_GCJ \
26297     compiler_lib_search_path_GCJ \
26298     archive_cmds_GCJ \
26299     archive_expsym_cmds_GCJ \
26300     postinstall_cmds_GCJ \
26301     postuninstall_cmds_GCJ \
26302     old_archive_from_expsyms_cmds_GCJ \
26303     allow_undefined_flag_GCJ \
26304     no_undefined_flag_GCJ \
26305     export_symbols_cmds_GCJ \
26306     hardcode_libdir_flag_spec_GCJ \
26307     hardcode_libdir_flag_spec_ld_GCJ \
26308     hardcode_libdir_separator_GCJ \
26309     hardcode_automatic_GCJ \
26310     module_cmds_GCJ \
26311     module_expsym_cmds_GCJ \
26312     lt_cv_prog_compiler_c_o_GCJ \
26313     exclude_expsyms_GCJ \
26314     include_expsyms_GCJ; do
26315
26316     case $var in
26317     old_archive_cmds_GCJ | \
26318     old_archive_from_new_cmds_GCJ | \
26319     archive_cmds_GCJ | \
26320     archive_expsym_cmds_GCJ | \
26321     module_cmds_GCJ | \
26322     module_expsym_cmds_GCJ | \
26323     old_archive_from_expsyms_cmds_GCJ | \
26324     export_symbols_cmds_GCJ | \
26325     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26326     postinstall_cmds | postuninstall_cmds | \
26327     old_postinstall_cmds | old_postuninstall_cmds | \
26328     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26329       # Double-quote double-evaled strings.
26330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26331       ;;
26332     *)
26333       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26334       ;;
26335     esac
26336   done
26337
26338   case $lt_echo in
26339   *'\$0 --fallback-echo"')
26340     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26341     ;;
26342   esac
26343
26344 cfgfile="$ofile"
26345
26346   cat <<__EOF__ >> "$cfgfile"
26347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26348
26349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26350
26351 # Shell to use when invoking shell scripts.
26352 SHELL=$lt_SHELL
26353
26354 # Whether or not to build shared libraries.
26355 build_libtool_libs=$enable_shared
26356
26357 # Whether or not to build static libraries.
26358 build_old_libs=$enable_static
26359
26360 # Whether or not to add -lc for building shared libraries.
26361 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26362
26363 # Whether or not to disallow shared libs when runtime libs are static
26364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26365
26366 # Whether or not to optimize for fast installation.
26367 fast_install=$enable_fast_install
26368
26369 # The host system.
26370 host_alias=$host_alias
26371 host=$host
26372 host_os=$host_os
26373
26374 # The build system.
26375 build_alias=$build_alias
26376 build=$build
26377 build_os=$build_os
26378
26379 # An echo program that does not interpret backslashes.
26380 echo=$lt_echo
26381
26382 # The archiver.
26383 AR=$lt_AR
26384 AR_FLAGS=$lt_AR_FLAGS
26385
26386 # A C compiler.
26387 LTCC=$lt_LTCC
26388
26389 # LTCC compiler flags.
26390 LTCFLAGS=$lt_LTCFLAGS
26391
26392 # A language-specific compiler.
26393 CC=$lt_compiler_GCJ
26394
26395 # Is the compiler the GNU C compiler?
26396 with_gcc=$GCC_GCJ
26397
26398 # An ERE matcher.
26399 EGREP=$lt_EGREP
26400
26401 # The linker used to build libraries.
26402 LD=$lt_LD_GCJ
26403
26404 # Whether we need hard or soft links.
26405 LN_S=$lt_LN_S
26406
26407 # A BSD-compatible nm program.
26408 NM=$lt_NM
26409
26410 # A symbol stripping program
26411 STRIP=$lt_STRIP
26412
26413 # Used to examine libraries when file_magic_cmd begins "file"
26414 MAGIC_CMD=$MAGIC_CMD
26415
26416 # Used on cygwin: DLL creation program.
26417 DLLTOOL="$DLLTOOL"
26418
26419 # Used on cygwin: object dumper.
26420 OBJDUMP="$OBJDUMP"
26421
26422 # Used on cygwin: assembler.
26423 AS="$AS"
26424
26425 # The name of the directory that contains temporary libtool files.
26426 objdir=$objdir
26427
26428 # How to create reloadable object files.
26429 reload_flag=$lt_reload_flag
26430 reload_cmds=$lt_reload_cmds
26431
26432 # How to pass a linker flag through the compiler.
26433 wl=$lt_lt_prog_compiler_wl_GCJ
26434
26435 # Object file suffix (normally "o").
26436 objext="$ac_objext"
26437
26438 # Old archive suffix (normally "a").
26439 libext="$libext"
26440
26441 # Shared library suffix (normally ".so").
26442 shrext_cmds='$shrext_cmds'
26443
26444 # Executable file suffix (normally "").
26445 exeext="$exeext"
26446
26447 # Additional compiler flags for building library objects.
26448 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26449 pic_mode=$pic_mode
26450
26451 # What is the maximum length of a command?
26452 max_cmd_len=$lt_cv_sys_max_cmd_len
26453
26454 # Does compiler simultaneously support -c and -o options?
26455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26456
26457 # Must we lock files when doing compilation?
26458 need_locks=$lt_need_locks
26459
26460 # Do we need the lib prefix for modules?
26461 need_lib_prefix=$need_lib_prefix
26462
26463 # Do we need a version for libraries?
26464 need_version=$need_version
26465
26466 # Whether dlopen is supported.
26467 dlopen_support=$enable_dlopen
26468
26469 # Whether dlopen of programs is supported.
26470 dlopen_self=$enable_dlopen_self
26471
26472 # Whether dlopen of statically linked programs is supported.
26473 dlopen_self_static=$enable_dlopen_self_static
26474
26475 # Compiler flag to prevent dynamic linking.
26476 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26477
26478 # Compiler flag to turn off builtin functions.
26479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26480
26481 # Compiler flag to allow reflexive dlopens.
26482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26483
26484 # Compiler flag to generate shared objects directly from archives.
26485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26486
26487 # Compiler flag to generate thread-safe objects.
26488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26489
26490 # Library versioning type.
26491 version_type=$version_type
26492
26493 # Format of library name prefix.
26494 libname_spec=$lt_libname_spec
26495
26496 # List of archive names.  First name is the real one, the rest are links.
26497 # The last name is the one that the linker finds with -lNAME.
26498 library_names_spec=$lt_library_names_spec
26499
26500 # The coded name of the library, if different from the real name.
26501 soname_spec=$lt_soname_spec
26502
26503 # Commands used to build and install an old-style archive.
26504 RANLIB=$lt_RANLIB
26505 old_archive_cmds=$lt_old_archive_cmds_GCJ
26506 old_postinstall_cmds=$lt_old_postinstall_cmds
26507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26508
26509 # Create an old-style archive from a shared archive.
26510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26511
26512 # Create a temporary old-style archive to link instead of a shared archive.
26513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26514
26515 # Commands used to build and install a shared archive.
26516 archive_cmds=$lt_archive_cmds_GCJ
26517 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26518 postinstall_cmds=$lt_postinstall_cmds
26519 postuninstall_cmds=$lt_postuninstall_cmds
26520
26521 # Commands used to build a loadable module (assumed same as above if empty)
26522 module_cmds=$lt_module_cmds_GCJ
26523 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26524
26525 # Commands to strip libraries.
26526 old_striplib=$lt_old_striplib
26527 striplib=$lt_striplib
26528
26529 # Dependencies to place before the objects being linked to create a
26530 # shared library.
26531 predep_objects=$lt_predep_objects_GCJ
26532
26533 # Dependencies to place after the objects being linked to create a
26534 # shared library.
26535 postdep_objects=$lt_postdep_objects_GCJ
26536
26537 # Dependencies to place before the objects being linked to create a
26538 # shared library.
26539 predeps=$lt_predeps_GCJ
26540
26541 # Dependencies to place after the objects being linked to create a
26542 # shared library.
26543 postdeps=$lt_postdeps_GCJ
26544
26545 # The library search path used internally by the compiler when linking
26546 # a shared library.
26547 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26548
26549 # Method to check whether dependent libraries are shared objects.
26550 deplibs_check_method=$lt_deplibs_check_method
26551
26552 # Command to use when deplibs_check_method == file_magic.
26553 file_magic_cmd=$lt_file_magic_cmd
26554
26555 # Flag that allows shared libraries with undefined symbols to be built.
26556 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26557
26558 # Flag that forces no undefined symbols.
26559 no_undefined_flag=$lt_no_undefined_flag_GCJ
26560
26561 # Commands used to finish a libtool library installation in a directory.
26562 finish_cmds=$lt_finish_cmds
26563
26564 # Same as above, but a single script fragment to be evaled but not shown.
26565 finish_eval=$lt_finish_eval
26566
26567 # Take the output of nm and produce a listing of raw symbols and C names.
26568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26569
26570 # Transform the output of nm in a proper C declaration
26571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26572
26573 # Transform the output of nm in a C name address pair
26574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26575
26576 # This is the shared library runtime path variable.
26577 runpath_var=$runpath_var
26578
26579 # This is the shared library path variable.
26580 shlibpath_var=$shlibpath_var
26581
26582 # Is shlibpath searched before the hard-coded library search path?
26583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26584
26585 # How to hardcode a shared library path into an executable.
26586 hardcode_action=$hardcode_action_GCJ
26587
26588 # Whether we should hardcode library paths into libraries.
26589 hardcode_into_libs=$hardcode_into_libs
26590
26591 # Flag to hardcode \$libdir into a binary during linking.
26592 # This must work even if \$libdir does not exist.
26593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26594
26595 # If ld is used when linking, flag to hardcode \$libdir into
26596 # a binary during linking. This must work even if \$libdir does
26597 # not exist.
26598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26599
26600 # Whether we need a single -rpath flag with a separated argument.
26601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26602
26603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26604 # resulting binary.
26605 hardcode_direct=$hardcode_direct_GCJ
26606
26607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26608 # resulting binary.
26609 hardcode_minus_L=$hardcode_minus_L_GCJ
26610
26611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26612 # the resulting binary.
26613 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26614
26615 # Set to yes if building a shared library automatically hardcodes DIR into the library
26616 # and all subsequent libraries and executables linked against it.
26617 hardcode_automatic=$hardcode_automatic_GCJ
26618
26619 # Variables whose values should be saved in libtool wrapper scripts and
26620 # restored at relink time.
26621 variables_saved_for_relink="$variables_saved_for_relink"
26622
26623 # Whether libtool must link a program against all its dependency libraries.
26624 link_all_deplibs=$link_all_deplibs_GCJ
26625
26626 # Compile-time system search path for libraries
26627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26628
26629 # Run-time system search path for libraries
26630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26631
26632 # Fix the shell variable \$srcfile for the compiler.
26633 fix_srcfile_path="$fix_srcfile_path_GCJ"
26634
26635 # Set to yes if exported symbols are required.
26636 always_export_symbols=$always_export_symbols_GCJ
26637
26638 # The commands to list exported symbols.
26639 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26640
26641 # The commands to extract the exported symbol list from a shared archive.
26642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26643
26644 # Symbols that should not be listed in the preloaded symbols.
26645 exclude_expsyms=$lt_exclude_expsyms_GCJ
26646
26647 # Symbols that must always be exported.
26648 include_expsyms=$lt_include_expsyms_GCJ
26649
26650 # ### END LIBTOOL TAG CONFIG: $tagname
26651
26652 __EOF__
26653
26654
26655 else
26656   # If there is no Makefile yet, we rely on a make rule to execute
26657   # `config.status --recheck' to rerun these tests and create the
26658   # libtool script then.
26659   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26660   if test -f "$ltmain_in"; then
26661     test -f Makefile && make "$ltmain"
26662   fi
26663 fi
26664
26665
26666 ac_ext=c
26667 ac_cpp='$CPP $CPPFLAGS'
26668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26671
26672 CC="$lt_save_CC"
26673
26674         else
26675           tagname=""
26676         fi
26677         ;;
26678
26679       RC)
26680         ac_ext=c
26681 ac_cpp='$CPP $CPPFLAGS'
26682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26685
26686
26687 # Source file extension for RC test sources.
26688 ac_ext=rc
26689
26690 # Object file extension for compiled RC test sources.
26691 objext=o
26692 objext_RC=$objext
26693
26694 # Code to be used in simple compile tests
26695 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26696
26697 # Code to be used in simple link tests
26698 lt_simple_link_test_code="$lt_simple_compile_test_code"
26699
26700 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26701
26702 # If no C compiler was specified, use CC.
26703 LTCC=${LTCC-"$CC"}
26704
26705 # If no C compiler flags were specified, use CFLAGS.
26706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26707
26708 # Allow CC to be a program name with arguments.
26709 compiler=$CC
26710
26711
26712 # save warnings/boilerplate of simple test code
26713 ac_outfile=conftest.$ac_objext
26714 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26715 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26716 _lt_compiler_boilerplate=`cat conftest.err`
26717 $rm conftest*
26718
26719 ac_outfile=conftest.$ac_objext
26720 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26721 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26722 _lt_linker_boilerplate=`cat conftest.err`
26723 $rm conftest*
26724
26725
26726 # Allow CC to be a program name with arguments.
26727 lt_save_CC="$CC"
26728 CC=${RC-"windres"}
26729 compiler=$CC
26730 compiler_RC=$CC
26731 for cc_temp in $compiler""; do
26732   case $cc_temp in
26733     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26734     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26735     \-*) ;;
26736     *) break;;
26737   esac
26738 done
26739 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26740
26741 lt_cv_prog_compiler_c_o_RC=yes
26742
26743 # The else clause should only fire when bootstrapping the
26744 # libtool distribution, otherwise you forgot to ship ltmain.sh
26745 # with your package, and you will get complaints that there are
26746 # no rules to generate ltmain.sh.
26747 if test -f "$ltmain"; then
26748   # See if we are running on zsh, and set the options which allow our commands through
26749   # without removal of \ escapes.
26750   if test -n "${ZSH_VERSION+set}" ; then
26751     setopt NO_GLOB_SUBST
26752   fi
26753   # Now quote all the things that may contain metacharacters while being
26754   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26755   # variables and quote the copies for generation of the libtool script.
26756   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26757     SED SHELL STRIP \
26758     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26759     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26760     deplibs_check_method reload_flag reload_cmds need_locks \
26761     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26762     lt_cv_sys_global_symbol_to_c_name_address \
26763     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26764     old_postinstall_cmds old_postuninstall_cmds \
26765     compiler_RC \
26766     CC_RC \
26767     LD_RC \
26768     lt_prog_compiler_wl_RC \
26769     lt_prog_compiler_pic_RC \
26770     lt_prog_compiler_static_RC \
26771     lt_prog_compiler_no_builtin_flag_RC \
26772     export_dynamic_flag_spec_RC \
26773     thread_safe_flag_spec_RC \
26774     whole_archive_flag_spec_RC \
26775     enable_shared_with_static_runtimes_RC \
26776     old_archive_cmds_RC \
26777     old_archive_from_new_cmds_RC \
26778     predep_objects_RC \
26779     postdep_objects_RC \
26780     predeps_RC \
26781     postdeps_RC \
26782     compiler_lib_search_path_RC \
26783     archive_cmds_RC \
26784     archive_expsym_cmds_RC \
26785     postinstall_cmds_RC \
26786     postuninstall_cmds_RC \
26787     old_archive_from_expsyms_cmds_RC \
26788     allow_undefined_flag_RC \
26789     no_undefined_flag_RC \
26790     export_symbols_cmds_RC \
26791     hardcode_libdir_flag_spec_RC \
26792     hardcode_libdir_flag_spec_ld_RC \
26793     hardcode_libdir_separator_RC \
26794     hardcode_automatic_RC \
26795     module_cmds_RC \
26796     module_expsym_cmds_RC \
26797     lt_cv_prog_compiler_c_o_RC \
26798     exclude_expsyms_RC \
26799     include_expsyms_RC; do
26800
26801     case $var in
26802     old_archive_cmds_RC | \
26803     old_archive_from_new_cmds_RC | \
26804     archive_cmds_RC | \
26805     archive_expsym_cmds_RC | \
26806     module_cmds_RC | \
26807     module_expsym_cmds_RC | \
26808     old_archive_from_expsyms_cmds_RC | \
26809     export_symbols_cmds_RC | \
26810     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26811     postinstall_cmds | postuninstall_cmds | \
26812     old_postinstall_cmds | old_postuninstall_cmds | \
26813     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26814       # Double-quote double-evaled strings.
26815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26816       ;;
26817     *)
26818       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26819       ;;
26820     esac
26821   done
26822
26823   case $lt_echo in
26824   *'\$0 --fallback-echo"')
26825     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26826     ;;
26827   esac
26828
26829 cfgfile="$ofile"
26830
26831   cat <<__EOF__ >> "$cfgfile"
26832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26833
26834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26835
26836 # Shell to use when invoking shell scripts.
26837 SHELL=$lt_SHELL
26838
26839 # Whether or not to build shared libraries.
26840 build_libtool_libs=$enable_shared
26841
26842 # Whether or not to build static libraries.
26843 build_old_libs=$enable_static
26844
26845 # Whether or not to add -lc for building shared libraries.
26846 build_libtool_need_lc=$archive_cmds_need_lc_RC
26847
26848 # Whether or not to disallow shared libs when runtime libs are static
26849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26850
26851 # Whether or not to optimize for fast installation.
26852 fast_install=$enable_fast_install
26853
26854 # The host system.
26855 host_alias=$host_alias
26856 host=$host
26857 host_os=$host_os
26858
26859 # The build system.
26860 build_alias=$build_alias
26861 build=$build
26862 build_os=$build_os
26863
26864 # An echo program that does not interpret backslashes.
26865 echo=$lt_echo
26866
26867 # The archiver.
26868 AR=$lt_AR
26869 AR_FLAGS=$lt_AR_FLAGS
26870
26871 # A C compiler.
26872 LTCC=$lt_LTCC
26873
26874 # LTCC compiler flags.
26875 LTCFLAGS=$lt_LTCFLAGS
26876
26877 # A language-specific compiler.
26878 CC=$lt_compiler_RC
26879
26880 # Is the compiler the GNU C compiler?
26881 with_gcc=$GCC_RC
26882
26883 # An ERE matcher.
26884 EGREP=$lt_EGREP
26885
26886 # The linker used to build libraries.
26887 LD=$lt_LD_RC
26888
26889 # Whether we need hard or soft links.
26890 LN_S=$lt_LN_S
26891
26892 # A BSD-compatible nm program.
26893 NM=$lt_NM
26894
26895 # A symbol stripping program
26896 STRIP=$lt_STRIP
26897
26898 # Used to examine libraries when file_magic_cmd begins "file"
26899 MAGIC_CMD=$MAGIC_CMD
26900
26901 # Used on cygwin: DLL creation program.
26902 DLLTOOL="$DLLTOOL"
26903
26904 # Used on cygwin: object dumper.
26905 OBJDUMP="$OBJDUMP"
26906
26907 # Used on cygwin: assembler.
26908 AS="$AS"
26909
26910 # The name of the directory that contains temporary libtool files.
26911 objdir=$objdir
26912
26913 # How to create reloadable object files.
26914 reload_flag=$lt_reload_flag
26915 reload_cmds=$lt_reload_cmds
26916
26917 # How to pass a linker flag through the compiler.
26918 wl=$lt_lt_prog_compiler_wl_RC
26919
26920 # Object file suffix (normally "o").
26921 objext="$ac_objext"
26922
26923 # Old archive suffix (normally "a").
26924 libext="$libext"
26925
26926 # Shared library suffix (normally ".so").
26927 shrext_cmds='$shrext_cmds'
26928
26929 # Executable file suffix (normally "").
26930 exeext="$exeext"
26931
26932 # Additional compiler flags for building library objects.
26933 pic_flag=$lt_lt_prog_compiler_pic_RC
26934 pic_mode=$pic_mode
26935
26936 # What is the maximum length of a command?
26937 max_cmd_len=$lt_cv_sys_max_cmd_len
26938
26939 # Does compiler simultaneously support -c and -o options?
26940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26941
26942 # Must we lock files when doing compilation?
26943 need_locks=$lt_need_locks
26944
26945 # Do we need the lib prefix for modules?
26946 need_lib_prefix=$need_lib_prefix
26947
26948 # Do we need a version for libraries?
26949 need_version=$need_version
26950
26951 # Whether dlopen is supported.
26952 dlopen_support=$enable_dlopen
26953
26954 # Whether dlopen of programs is supported.
26955 dlopen_self=$enable_dlopen_self
26956
26957 # Whether dlopen of statically linked programs is supported.
26958 dlopen_self_static=$enable_dlopen_self_static
26959
26960 # Compiler flag to prevent dynamic linking.
26961 link_static_flag=$lt_lt_prog_compiler_static_RC
26962
26963 # Compiler flag to turn off builtin functions.
26964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26965
26966 # Compiler flag to allow reflexive dlopens.
26967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26968
26969 # Compiler flag to generate shared objects directly from archives.
26970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26971
26972 # Compiler flag to generate thread-safe objects.
26973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26974
26975 # Library versioning type.
26976 version_type=$version_type
26977
26978 # Format of library name prefix.
26979 libname_spec=$lt_libname_spec
26980
26981 # List of archive names.  First name is the real one, the rest are links.
26982 # The last name is the one that the linker finds with -lNAME.
26983 library_names_spec=$lt_library_names_spec
26984
26985 # The coded name of the library, if different from the real name.
26986 soname_spec=$lt_soname_spec
26987
26988 # Commands used to build and install an old-style archive.
26989 RANLIB=$lt_RANLIB
26990 old_archive_cmds=$lt_old_archive_cmds_RC
26991 old_postinstall_cmds=$lt_old_postinstall_cmds
26992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26993
26994 # Create an old-style archive from a shared archive.
26995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26996
26997 # Create a temporary old-style archive to link instead of a shared archive.
26998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26999
27000 # Commands used to build and install a shared archive.
27001 archive_cmds=$lt_archive_cmds_RC
27002 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27003 postinstall_cmds=$lt_postinstall_cmds
27004 postuninstall_cmds=$lt_postuninstall_cmds
27005
27006 # Commands used to build a loadable module (assumed same as above if empty)
27007 module_cmds=$lt_module_cmds_RC
27008 module_expsym_cmds=$lt_module_expsym_cmds_RC
27009
27010 # Commands to strip libraries.
27011 old_striplib=$lt_old_striplib
27012 striplib=$lt_striplib
27013
27014 # Dependencies to place before the objects being linked to create a
27015 # shared library.
27016 predep_objects=$lt_predep_objects_RC
27017
27018 # Dependencies to place after the objects being linked to create a
27019 # shared library.
27020 postdep_objects=$lt_postdep_objects_RC
27021
27022 # Dependencies to place before the objects being linked to create a
27023 # shared library.
27024 predeps=$lt_predeps_RC
27025
27026 # Dependencies to place after the objects being linked to create a
27027 # shared library.
27028 postdeps=$lt_postdeps_RC
27029
27030 # The library search path used internally by the compiler when linking
27031 # a shared library.
27032 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27033
27034 # Method to check whether dependent libraries are shared objects.
27035 deplibs_check_method=$lt_deplibs_check_method
27036
27037 # Command to use when deplibs_check_method == file_magic.
27038 file_magic_cmd=$lt_file_magic_cmd
27039
27040 # Flag that allows shared libraries with undefined symbols to be built.
27041 allow_undefined_flag=$lt_allow_undefined_flag_RC
27042
27043 # Flag that forces no undefined symbols.
27044 no_undefined_flag=$lt_no_undefined_flag_RC
27045
27046 # Commands used to finish a libtool library installation in a directory.
27047 finish_cmds=$lt_finish_cmds
27048
27049 # Same as above, but a single script fragment to be evaled but not shown.
27050 finish_eval=$lt_finish_eval
27051
27052 # Take the output of nm and produce a listing of raw symbols and C names.
27053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27054
27055 # Transform the output of nm in a proper C declaration
27056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27057
27058 # Transform the output of nm in a C name address pair
27059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27060
27061 # This is the shared library runtime path variable.
27062 runpath_var=$runpath_var
27063
27064 # This is the shared library path variable.
27065 shlibpath_var=$shlibpath_var
27066
27067 # Is shlibpath searched before the hard-coded library search path?
27068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27069
27070 # How to hardcode a shared library path into an executable.
27071 hardcode_action=$hardcode_action_RC
27072
27073 # Whether we should hardcode library paths into libraries.
27074 hardcode_into_libs=$hardcode_into_libs
27075
27076 # Flag to hardcode \$libdir into a binary during linking.
27077 # This must work even if \$libdir does not exist.
27078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27079
27080 # If ld is used when linking, flag to hardcode \$libdir into
27081 # a binary during linking. This must work even if \$libdir does
27082 # not exist.
27083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27084
27085 # Whether we need a single -rpath flag with a separated argument.
27086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27087
27088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27089 # resulting binary.
27090 hardcode_direct=$hardcode_direct_RC
27091
27092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27093 # resulting binary.
27094 hardcode_minus_L=$hardcode_minus_L_RC
27095
27096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27097 # the resulting binary.
27098 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27099
27100 # Set to yes if building a shared library automatically hardcodes DIR into the library
27101 # and all subsequent libraries and executables linked against it.
27102 hardcode_automatic=$hardcode_automatic_RC
27103
27104 # Variables whose values should be saved in libtool wrapper scripts and
27105 # restored at relink time.
27106 variables_saved_for_relink="$variables_saved_for_relink"
27107
27108 # Whether libtool must link a program against all its dependency libraries.
27109 link_all_deplibs=$link_all_deplibs_RC
27110
27111 # Compile-time system search path for libraries
27112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27113
27114 # Run-time system search path for libraries
27115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27116
27117 # Fix the shell variable \$srcfile for the compiler.
27118 fix_srcfile_path="$fix_srcfile_path_RC"
27119
27120 # Set to yes if exported symbols are required.
27121 always_export_symbols=$always_export_symbols_RC
27122
27123 # The commands to list exported symbols.
27124 export_symbols_cmds=$lt_export_symbols_cmds_RC
27125
27126 # The commands to extract the exported symbol list from a shared archive.
27127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27128
27129 # Symbols that should not be listed in the preloaded symbols.
27130 exclude_expsyms=$lt_exclude_expsyms_RC
27131
27132 # Symbols that must always be exported.
27133 include_expsyms=$lt_include_expsyms_RC
27134
27135 # ### END LIBTOOL TAG CONFIG: $tagname
27136
27137 __EOF__
27138
27139
27140 else
27141   # If there is no Makefile yet, we rely on a make rule to execute
27142   # `config.status --recheck' to rerun these tests and create the
27143   # libtool script then.
27144   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27145   if test -f "$ltmain_in"; then
27146     test -f Makefile && make "$ltmain"
27147   fi
27148 fi
27149
27150
27151 ac_ext=c
27152 ac_cpp='$CPP $CPPFLAGS'
27153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27156
27157 CC="$lt_save_CC"
27158
27159         ;;
27160
27161       *)
27162         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27163 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27164    { (exit 1); exit 1; }; }
27165         ;;
27166       esac
27167
27168       # Append the new tag name to the list of available tags.
27169       if test -n "$tagname" ; then
27170       available_tags="$available_tags $tagname"
27171     fi
27172     fi
27173   done
27174   IFS="$lt_save_ifs"
27175
27176   # Now substitute the updated list of available tags.
27177   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27178     mv "${ofile}T" "$ofile"
27179     chmod +x "$ofile"
27180   else
27181     rm -f "${ofile}T"
27182     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27183 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27184    { (exit 1); exit 1; }; }
27185   fi
27186 fi
27187
27188
27189
27190 # This can be used to rebuild libtool when needed
27191 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27192
27193 # Always use our own libtool.
27194 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27195
27196 # Prevent multiple expansion
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218 if test "$lt_cv_dlopen_self" = "yes" ; then
27219
27220 cat >>confdefs.h <<\_ACEOF
27221 #define CAN_DLOPEN_SELF 1
27222 _ACEOF
27223
27224 fi
27225
27226
27227 if test "$WITH_LLVMGCCDIR" = "default" ; then
27228   LLVMGCC="llvm-gcc${EXEEXT}"
27229   LLVMGXX="llvm-g++${EXEEXT}"
27230   LLVMGCCCOMMAND="$LLVMGCC"
27231   LLVMGXXCOMMAND="$LLVMGXX"
27232   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27233
27234   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27235
27236   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27237 set dummy $LLVMGCC; ac_word=$2
27238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27240 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27241   echo $ECHO_N "(cached) $ECHO_C" >&6
27242 else
27243   case $LLVMGCC in
27244   [\\/]* | ?:[\\/]*)
27245   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27246   ;;
27247   *)
27248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27249 for as_dir in $PATH
27250 do
27251   IFS=$as_save_IFS
27252   test -z "$as_dir" && as_dir=.
27253   for ac_exec_ext in '' $ac_executable_extensions; do
27254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27255     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27257     break 2
27258   fi
27259 done
27260 done
27261 IFS=$as_save_IFS
27262
27263   ;;
27264 esac
27265 fi
27266 LLVMGCC=$ac_cv_path_LLVMGCC
27267 if test -n "$LLVMGCC"; then
27268   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27269 echo "${ECHO_T}$LLVMGCC" >&6; }
27270 else
27271   { echo "$as_me:$LINENO: result: no" >&5
27272 echo "${ECHO_T}no" >&6; }
27273 fi
27274
27275
27276   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27277 set dummy $LLVMGXX; ac_word=$2
27278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27280 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27281   echo $ECHO_N "(cached) $ECHO_C" >&6
27282 else
27283   case $LLVMGXX in
27284   [\\/]* | ?:[\\/]*)
27285   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27286   ;;
27287   *)
27288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27289 for as_dir in $PATH
27290 do
27291   IFS=$as_save_IFS
27292   test -z "$as_dir" && as_dir=.
27293   for ac_exec_ext in '' $ac_executable_extensions; do
27294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27295     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27297     break 2
27298   fi
27299 done
27300 done
27301 IFS=$as_save_IFS
27302
27303   ;;
27304 esac
27305 fi
27306 LLVMGXX=$ac_cv_path_LLVMGXX
27307 if test -n "$LLVMGXX"; then
27308   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27309 echo "${ECHO_T}$LLVMGXX" >&6; }
27310 else
27311   { echo "$as_me:$LINENO: result: no" >&5
27312 echo "${ECHO_T}no" >&6; }
27313 fi
27314
27315
27316 else
27317   if test -z "$LLVMGCC"; then
27318     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27319     LLVMGCCCOMMAND="$LLVMGCC"
27320   fi
27321   if test -z "$LLVMGXX"; then
27322     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27323     LLVMGXXCOMMAND="$LLVMGXX"
27324   fi
27325
27326   LLVMGCC=$LLVMGCC
27327
27328   LLVMGXX=$LLVMGXX
27329
27330   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27331
27332   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27333
27334 fi
27335
27336
27337 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27338 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27339
27340 ICC=no
27341 IXX=no
27342 case $CC in
27343   icc*|icpc*)
27344     ICC=yes
27345     IXX=yes
27346     ;;
27347    *)
27348     ;;
27349 esac
27350
27351 if test "$GCC" != "yes" && test "$ICC" != "yes"
27352 then
27353   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27354 echo "$as_me: error: gcc|icc required but not found" >&2;}
27355    { (exit 1); exit 1; }; }
27356 fi
27357
27358 if test "$GXX" != "yes" && test "$IXX" != "yes"
27359 then
27360   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27361 echo "$as_me: error: g++|icc required but not found" >&2;}
27362    { (exit 1); exit 1; }; }
27363 fi
27364
27365 if test "$GCC" = "yes"
27366 then
27367   cat >conftest.$ac_ext <<_ACEOF
27368 #if !defined(__GNUC__) || __GNUC__ < 3
27369 #error Unsupported GCC version
27370 #endif
27371
27372 _ACEOF
27373 rm -f conftest.$ac_objext
27374 if { (ac_try="$ac_compile"
27375 case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_compile") 2>conftest.er1
27381   ac_status=$?
27382   grep -v '^ *+' conftest.er1 >conftest.err
27383   rm -f conftest.er1
27384   cat conftest.err >&5
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); } &&
27387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27388   { (case "(($ac_try" in
27389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390   *) ac_try_echo=$ac_try;;
27391 esac
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393   (eval "$ac_try") 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; } &&
27397          { ac_try='test -s conftest.$ac_objext'
27398   { (case "(($ac_try" in
27399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400   *) ac_try_echo=$ac_try;;
27401 esac
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403   (eval "$ac_try") 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); }; }; then
27407   :
27408 else
27409   echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27411
27412         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27413 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27414    { (exit 1); exit 1; }; }
27415 fi
27416
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27418 fi
27419
27420 if test -z "$llvm_cv_gnu_make_command"
27421 then
27422   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27423 echo "$as_me: error: GNU Make required but not found" >&2;}
27424    { (exit 1); exit 1; }; }
27425 fi
27426
27427 { echo "$as_me:$LINENO: result: ok" >&5
27428 echo "${ECHO_T}ok" >&6; }
27429
27430
27431
27432 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27433 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27434 if test "${ac_cv_lib_m_sin+set}" = set; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437   ac_check_lib_save_LIBS=$LIBS
27438 LIBS="-lm  $LIBS"
27439 cat >conftest.$ac_ext <<_ACEOF
27440 /* confdefs.h.  */
27441 _ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h.  */
27445
27446 /* Override any GCC internal prototype to avoid an error.
27447    Use char because int might match the return type of a GCC
27448    builtin and then its argument prototype would still apply.  */
27449 #ifdef __cplusplus
27450 extern "C"
27451 #endif
27452 char sin ();
27453 int
27454 main ()
27455 {
27456 return sin ();
27457   ;
27458   return 0;
27459 }
27460 _ACEOF
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462 if { (ac_try="$ac_link"
27463 case "(($ac_try" in
27464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465   *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468   (eval "$ac_link") 2>conftest.er1
27469   ac_status=$?
27470   grep -v '^ *+' conftest.er1 >conftest.err
27471   rm -f conftest.er1
27472   cat conftest.err >&5
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); } &&
27475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27476   { (case "(($ac_try" in
27477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478   *) ac_try_echo=$ac_try;;
27479 esac
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481   (eval "$ac_try") 2>&5
27482   ac_status=$?
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); }; } &&
27485          { ac_try='test -s conftest$ac_exeext'
27486   { (case "(($ac_try" in
27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488   *) ac_try_echo=$ac_try;;
27489 esac
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491   (eval "$ac_try") 2>&5
27492   ac_status=$?
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); }; }; then
27495   ac_cv_lib_m_sin=yes
27496 else
27497   echo "$as_me: failed program was:" >&5
27498 sed 's/^/| /' conftest.$ac_ext >&5
27499
27500         ac_cv_lib_m_sin=no
27501 fi
27502
27503 rm -f core conftest.err conftest.$ac_objext \
27504       conftest$ac_exeext conftest.$ac_ext
27505 LIBS=$ac_check_lib_save_LIBS
27506 fi
27507 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27508 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27509 if test $ac_cv_lib_m_sin = yes; then
27510   cat >>confdefs.h <<_ACEOF
27511 #define HAVE_LIBM 1
27512 _ACEOF
27513
27514   LIBS="-lm $LIBS"
27515
27516 fi
27517
27518 if test "$llvm_cv_os_type" = "MingW" ; then
27519
27520 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27521 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27522 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525   ac_check_lib_save_LIBS=$LIBS
27526 LIBS="-limagehlp  $LIBS"
27527 cat >conftest.$ac_ext <<_ACEOF
27528 /* confdefs.h.  */
27529 _ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h.  */
27533
27534
27535 int
27536 main ()
27537 {
27538 return main ();
27539   ;
27540   return 0;
27541 }
27542 _ACEOF
27543 rm -f conftest.$ac_objext conftest$ac_exeext
27544 if { (ac_try="$ac_link"
27545 case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_link") 2>conftest.er1
27551   ac_status=$?
27552   grep -v '^ *+' conftest.er1 >conftest.err
27553   rm -f conftest.er1
27554   cat conftest.err >&5
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); } &&
27557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27558   { (case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563   (eval "$ac_try") 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; } &&
27567          { ac_try='test -s conftest$ac_exeext'
27568   { (case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_try") 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; }; then
27577   ac_cv_lib_imagehlp_main=yes
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582         ac_cv_lib_imagehlp_main=no
27583 fi
27584
27585 rm -f core conftest.err conftest.$ac_objext \
27586       conftest$ac_exeext conftest.$ac_ext
27587 LIBS=$ac_check_lib_save_LIBS
27588 fi
27589 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27590 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27591 if test $ac_cv_lib_imagehlp_main = yes; then
27592   cat >>confdefs.h <<_ACEOF
27593 #define HAVE_LIBIMAGEHLP 1
27594 _ACEOF
27595
27596   LIBS="-limagehlp $LIBS"
27597
27598 fi
27599
27600
27601 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27602 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27603 if test "${ac_cv_lib_psapi_main+set}" = set; then
27604   echo $ECHO_N "(cached) $ECHO_C" >&6
27605 else
27606   ac_check_lib_save_LIBS=$LIBS
27607 LIBS="-lpsapi  $LIBS"
27608 cat >conftest.$ac_ext <<_ACEOF
27609 /* confdefs.h.  */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h.  */
27614
27615
27616 int
27617 main ()
27618 {
27619 return main ();
27620   ;
27621   return 0;
27622 }
27623 _ACEOF
27624 rm -f conftest.$ac_objext conftest$ac_exeext
27625 if { (ac_try="$ac_link"
27626 case "(($ac_try" in
27627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628   *) ac_try_echo=$ac_try;;
27629 esac
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631   (eval "$ac_link") 2>conftest.er1
27632   ac_status=$?
27633   grep -v '^ *+' conftest.er1 >conftest.err
27634   rm -f conftest.er1
27635   cat conftest.err >&5
27636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637   (exit $ac_status); } &&
27638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27639   { (case "(($ac_try" in
27640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641   *) ac_try_echo=$ac_try;;
27642 esac
27643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644   (eval "$ac_try") 2>&5
27645   ac_status=$?
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); }; } &&
27648          { ac_try='test -s conftest$ac_exeext'
27649   { (case "(($ac_try" in
27650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651   *) ac_try_echo=$ac_try;;
27652 esac
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654   (eval "$ac_try") 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; }; then
27658   ac_cv_lib_psapi_main=yes
27659 else
27660   echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27662
27663         ac_cv_lib_psapi_main=no
27664 fi
27665
27666 rm -f core conftest.err conftest.$ac_objext \
27667       conftest$ac_exeext conftest.$ac_ext
27668 LIBS=$ac_check_lib_save_LIBS
27669 fi
27670 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27671 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27672 if test $ac_cv_lib_psapi_main = yes; then
27673   cat >>confdefs.h <<_ACEOF
27674 #define HAVE_LIBPSAPI 1
27675 _ACEOF
27676
27677   LIBS="-lpsapi $LIBS"
27678
27679 fi
27680
27681 fi
27682
27683 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27684 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27685 if test "${ac_cv_search_dlopen+set}" = set; then
27686   echo $ECHO_N "(cached) $ECHO_C" >&6
27687 else
27688   ac_func_search_save_LIBS=$LIBS
27689 cat >conftest.$ac_ext <<_ACEOF
27690 /* confdefs.h.  */
27691 _ACEOF
27692 cat confdefs.h >>conftest.$ac_ext
27693 cat >>conftest.$ac_ext <<_ACEOF
27694 /* end confdefs.h.  */
27695
27696 /* Override any GCC internal prototype to avoid an error.
27697    Use char because int might match the return type of a GCC
27698    builtin and then its argument prototype would still apply.  */
27699 #ifdef __cplusplus
27700 extern "C"
27701 #endif
27702 char dlopen ();
27703 int
27704 main ()
27705 {
27706 return dlopen ();
27707   ;
27708   return 0;
27709 }
27710 _ACEOF
27711 for ac_lib in '' dl; do
27712   if test -z "$ac_lib"; then
27713     ac_res="none required"
27714   else
27715     ac_res=-l$ac_lib
27716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27717   fi
27718   rm -f conftest.$ac_objext conftest$ac_exeext
27719 if { (ac_try="$ac_link"
27720 case "(($ac_try" in
27721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722   *) ac_try_echo=$ac_try;;
27723 esac
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725   (eval "$ac_link") 2>conftest.er1
27726   ac_status=$?
27727   grep -v '^ *+' conftest.er1 >conftest.err
27728   rm -f conftest.er1
27729   cat conftest.err >&5
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); } &&
27732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27733   { (case "(($ac_try" in
27734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735   *) ac_try_echo=$ac_try;;
27736 esac
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738   (eval "$ac_try") 2>&5
27739   ac_status=$?
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); }; } &&
27742          { ac_try='test -s conftest$ac_exeext'
27743   { (case "(($ac_try" in
27744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745   *) ac_try_echo=$ac_try;;
27746 esac
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748   (eval "$ac_try") 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; }; then
27752   ac_cv_search_dlopen=$ac_res
27753 else
27754   echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27756
27757
27758 fi
27759
27760 rm -f core conftest.err conftest.$ac_objext \
27761       conftest$ac_exeext
27762   if test "${ac_cv_search_dlopen+set}" = set; then
27763   break
27764 fi
27765 done
27766 if test "${ac_cv_search_dlopen+set}" = set; then
27767   :
27768 else
27769   ac_cv_search_dlopen=no
27770 fi
27771 rm conftest.$ac_ext
27772 LIBS=$ac_func_search_save_LIBS
27773 fi
27774 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27775 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27776 ac_res=$ac_cv_search_dlopen
27777 if test "$ac_res" != no; then
27778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27779
27780 cat >>confdefs.h <<\_ACEOF
27781 #define HAVE_DLOPEN 1
27782 _ACEOF
27783
27784 else
27785   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27786 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27787 fi
27788
27789
27790 if test "$llvm_cv_enable_libffi" = "yes" ; then
27791   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27792 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27793 if test "${ac_cv_search_ffi_call+set}" = set; then
27794   echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796   ac_func_search_save_LIBS=$LIBS
27797 cat >conftest.$ac_ext <<_ACEOF
27798 /* confdefs.h.  */
27799 _ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h.  */
27803
27804 /* Override any GCC internal prototype to avoid an error.
27805    Use char because int might match the return type of a GCC
27806    builtin and then its argument prototype would still apply.  */
27807 #ifdef __cplusplus
27808 extern "C"
27809 #endif
27810 char ffi_call ();
27811 int
27812 main ()
27813 {
27814 return ffi_call ();
27815   ;
27816   return 0;
27817 }
27818 _ACEOF
27819 for ac_lib in '' ffi; do
27820   if test -z "$ac_lib"; then
27821     ac_res="none required"
27822   else
27823     ac_res=-l$ac_lib
27824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27825   fi
27826   rm -f conftest.$ac_objext conftest$ac_exeext
27827 if { (ac_try="$ac_link"
27828 case "(($ac_try" in
27829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830   *) ac_try_echo=$ac_try;;
27831 esac
27832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833   (eval "$ac_link") 2>conftest.er1
27834   ac_status=$?
27835   grep -v '^ *+' conftest.er1 >conftest.err
27836   rm -f conftest.er1
27837   cat conftest.err >&5
27838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839   (exit $ac_status); } &&
27840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27841   { (case "(($ac_try" in
27842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843   *) ac_try_echo=$ac_try;;
27844 esac
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846   (eval "$ac_try") 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; } &&
27850          { ac_try='test -s conftest$ac_exeext'
27851   { (case "(($ac_try" in
27852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853   *) ac_try_echo=$ac_try;;
27854 esac
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856   (eval "$ac_try") 2>&5
27857   ac_status=$?
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); }; }; then
27860   ac_cv_search_ffi_call=$ac_res
27861 else
27862   echo "$as_me: failed program was:" >&5
27863 sed 's/^/| /' conftest.$ac_ext >&5
27864
27865
27866 fi
27867
27868 rm -f core conftest.err conftest.$ac_objext \
27869       conftest$ac_exeext
27870   if test "${ac_cv_search_ffi_call+set}" = set; then
27871   break
27872 fi
27873 done
27874 if test "${ac_cv_search_ffi_call+set}" = set; then
27875   :
27876 else
27877   ac_cv_search_ffi_call=no
27878 fi
27879 rm conftest.$ac_ext
27880 LIBS=$ac_func_search_save_LIBS
27881 fi
27882 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27883 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27884 ac_res=$ac_cv_search_ffi_call
27885 if test "$ac_res" != no; then
27886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27887
27888 cat >>confdefs.h <<\_ACEOF
27889 #define HAVE_FFI_CALL 1
27890 _ACEOF
27891
27892 else
27893   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27894 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27895 fi
27896
27897 fi
27898
27899 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27900 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27901 if test "${ac_cv_search_mallinfo+set}" = set; then
27902   echo $ECHO_N "(cached) $ECHO_C" >&6
27903 else
27904   ac_func_search_save_LIBS=$LIBS
27905 cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h.  */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h.  */
27911
27912 /* Override any GCC internal prototype to avoid an error.
27913    Use char because int might match the return type of a GCC
27914    builtin and then its argument prototype would still apply.  */
27915 #ifdef __cplusplus
27916 extern "C"
27917 #endif
27918 char mallinfo ();
27919 int
27920 main ()
27921 {
27922 return mallinfo ();
27923   ;
27924   return 0;
27925 }
27926 _ACEOF
27927 for ac_lib in '' malloc; do
27928   if test -z "$ac_lib"; then
27929     ac_res="none required"
27930   else
27931     ac_res=-l$ac_lib
27932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27933   fi
27934   rm -f conftest.$ac_objext conftest$ac_exeext
27935 if { (ac_try="$ac_link"
27936 case "(($ac_try" in
27937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938   *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941   (eval "$ac_link") 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } &&
27948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27949   { (case "(($ac_try" in
27950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951   *) ac_try_echo=$ac_try;;
27952 esac
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954   (eval "$ac_try") 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; } &&
27958          { ac_try='test -s conftest$ac_exeext'
27959   { (case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_try") 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; }; then
27968   ac_cv_search_mallinfo=$ac_res
27969 else
27970   echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27972
27973
27974 fi
27975
27976 rm -f core conftest.err conftest.$ac_objext \
27977       conftest$ac_exeext
27978   if test "${ac_cv_search_mallinfo+set}" = set; then
27979   break
27980 fi
27981 done
27982 if test "${ac_cv_search_mallinfo+set}" = set; then
27983   :
27984 else
27985   ac_cv_search_mallinfo=no
27986 fi
27987 rm conftest.$ac_ext
27988 LIBS=$ac_func_search_save_LIBS
27989 fi
27990 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27991 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27992 ac_res=$ac_cv_search_mallinfo
27993 if test "$ac_res" != no; then
27994   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27995
27996 cat >>confdefs.h <<\_ACEOF
27997 #define HAVE_MALLINFO 1
27998 _ACEOF
27999
28000 fi
28001
28002
28003 if test "$ENABLE_THREADS" -eq 1 ; then
28004
28005 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28006 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28007 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28008   echo $ECHO_N "(cached) $ECHO_C" >&6
28009 else
28010   ac_check_lib_save_LIBS=$LIBS
28011 LIBS="-lpthread  $LIBS"
28012 cat >conftest.$ac_ext <<_ACEOF
28013 /* confdefs.h.  */
28014 _ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h.  */
28018
28019 /* Override any GCC internal prototype to avoid an error.
28020    Use char because int might match the return type of a GCC
28021    builtin and then its argument prototype would still apply.  */
28022 #ifdef __cplusplus
28023 extern "C"
28024 #endif
28025 char pthread_mutex_init ();
28026 int
28027 main ()
28028 {
28029 return pthread_mutex_init ();
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041   (eval "$ac_link") 2>conftest.er1
28042   ac_status=$?
28043   grep -v '^ *+' conftest.er1 >conftest.err
28044   rm -f conftest.er1
28045   cat conftest.err >&5
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); } &&
28048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28049   { (case "(($ac_try" in
28050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051   *) ac_try_echo=$ac_try;;
28052 esac
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054   (eval "$ac_try") 2>&5
28055   ac_status=$?
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); }; } &&
28058          { ac_try='test -s conftest$ac_exeext'
28059   { (case "(($ac_try" in
28060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061   *) ac_try_echo=$ac_try;;
28062 esac
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064   (eval "$ac_try") 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; }; then
28068   ac_cv_lib_pthread_pthread_mutex_init=yes
28069 else
28070   echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28072
28073         ac_cv_lib_pthread_pthread_mutex_init=no
28074 fi
28075
28076 rm -f core conftest.err conftest.$ac_objext \
28077       conftest$ac_exeext conftest.$ac_ext
28078 LIBS=$ac_check_lib_save_LIBS
28079 fi
28080 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28081 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28082 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28083   cat >>confdefs.h <<_ACEOF
28084 #define HAVE_LIBPTHREAD 1
28085 _ACEOF
28086
28087   LIBS="-lpthread $LIBS"
28088
28089 fi
28090
28091   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28092 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28093 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28094   echo $ECHO_N "(cached) $ECHO_C" >&6
28095 else
28096   ac_func_search_save_LIBS=$LIBS
28097 cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h.  */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h.  */
28103
28104 /* Override any GCC internal prototype to avoid an error.
28105    Use char because int might match the return type of a GCC
28106    builtin and then its argument prototype would still apply.  */
28107 #ifdef __cplusplus
28108 extern "C"
28109 #endif
28110 char pthread_mutex_lock ();
28111 int
28112 main ()
28113 {
28114 return pthread_mutex_lock ();
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 for ac_lib in '' pthread; do
28120   if test -z "$ac_lib"; then
28121     ac_res="none required"
28122   else
28123     ac_res=-l$ac_lib
28124     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28125   fi
28126   rm -f conftest.$ac_objext conftest$ac_exeext
28127 if { (ac_try="$ac_link"
28128 case "(($ac_try" in
28129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130   *) ac_try_echo=$ac_try;;
28131 esac
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133   (eval "$ac_link") 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } &&
28140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28141   { (case "(($ac_try" in
28142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143   *) ac_try_echo=$ac_try;;
28144 esac
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146   (eval "$ac_try") 2>&5
28147   ac_status=$?
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); }; } &&
28150          { ac_try='test -s conftest$ac_exeext'
28151   { (case "(($ac_try" in
28152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153   *) ac_try_echo=$ac_try;;
28154 esac
28155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28156   (eval "$ac_try") 2>&5
28157   ac_status=$?
28158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159   (exit $ac_status); }; }; then
28160   ac_cv_search_pthread_mutex_lock=$ac_res
28161 else
28162   echo "$as_me: failed program was:" >&5
28163 sed 's/^/| /' conftest.$ac_ext >&5
28164
28165
28166 fi
28167
28168 rm -f core conftest.err conftest.$ac_objext \
28169       conftest$ac_exeext
28170   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28171   break
28172 fi
28173 done
28174 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28175   :
28176 else
28177   ac_cv_search_pthread_mutex_lock=no
28178 fi
28179 rm conftest.$ac_ext
28180 LIBS=$ac_func_search_save_LIBS
28181 fi
28182 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28183 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28184 ac_res=$ac_cv_search_pthread_mutex_lock
28185 if test "$ac_res" != no; then
28186   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28187
28188 cat >>confdefs.h <<\_ACEOF
28189 #define HAVE_PTHREAD_MUTEX_LOCK 1
28190 _ACEOF
28191
28192 fi
28193
28194   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28195 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28196 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28197   echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199   ac_func_search_save_LIBS=$LIBS
28200 cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206
28207 /* Override any GCC internal prototype to avoid an error.
28208    Use char because int might match the return type of a GCC
28209    builtin and then its argument prototype would still apply.  */
28210 #ifdef __cplusplus
28211 extern "C"
28212 #endif
28213 char pthread_rwlock_init ();
28214 int
28215 main ()
28216 {
28217 return pthread_rwlock_init ();
28218   ;
28219   return 0;
28220 }
28221 _ACEOF
28222 for ac_lib in '' pthread; do
28223   if test -z "$ac_lib"; then
28224     ac_res="none required"
28225   else
28226     ac_res=-l$ac_lib
28227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28228   fi
28229   rm -f conftest.$ac_objext conftest$ac_exeext
28230 if { (ac_try="$ac_link"
28231 case "(($ac_try" in
28232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233   *) ac_try_echo=$ac_try;;
28234 esac
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236   (eval "$ac_link") 2>conftest.er1
28237   ac_status=$?
28238   grep -v '^ *+' conftest.er1 >conftest.err
28239   rm -f conftest.er1
28240   cat conftest.err >&5
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); } &&
28243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28244   { (case "(($ac_try" in
28245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246   *) ac_try_echo=$ac_try;;
28247 esac
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249   (eval "$ac_try") 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; } &&
28253          { ac_try='test -s conftest$ac_exeext'
28254   { (case "(($ac_try" in
28255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256   *) ac_try_echo=$ac_try;;
28257 esac
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259   (eval "$ac_try") 2>&5
28260   ac_status=$?
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); }; }; then
28263   ac_cv_search_pthread_rwlock_init=$ac_res
28264 else
28265   echo "$as_me: failed program was:" >&5
28266 sed 's/^/| /' conftest.$ac_ext >&5
28267
28268
28269 fi
28270
28271 rm -f core conftest.err conftest.$ac_objext \
28272       conftest$ac_exeext
28273   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28274   break
28275 fi
28276 done
28277 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28278   :
28279 else
28280   ac_cv_search_pthread_rwlock_init=no
28281 fi
28282 rm conftest.$ac_ext
28283 LIBS=$ac_func_search_save_LIBS
28284 fi
28285 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28286 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28287 ac_res=$ac_cv_search_pthread_rwlock_init
28288 if test "$ac_res" != no; then
28289   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28290
28291 cat >>confdefs.h <<\_ACEOF
28292 #define HAVE_PTHREAD_RWLOCK_INIT 1
28293 _ACEOF
28294
28295 fi
28296
28297   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28298 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28299 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28300   echo $ECHO_N "(cached) $ECHO_C" >&6
28301 else
28302   ac_func_search_save_LIBS=$LIBS
28303 cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309
28310 /* Override any GCC internal prototype to avoid an error.
28311    Use char because int might match the return type of a GCC
28312    builtin and then its argument prototype would still apply.  */
28313 #ifdef __cplusplus
28314 extern "C"
28315 #endif
28316 char pthread_getspecific ();
28317 int
28318 main ()
28319 {
28320 return pthread_getspecific ();
28321   ;
28322   return 0;
28323 }
28324 _ACEOF
28325 for ac_lib in '' pthread; do
28326   if test -z "$ac_lib"; then
28327     ac_res="none required"
28328   else
28329     ac_res=-l$ac_lib
28330     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28331   fi
28332   rm -f conftest.$ac_objext conftest$ac_exeext
28333 if { (ac_try="$ac_link"
28334 case "(($ac_try" in
28335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336   *) ac_try_echo=$ac_try;;
28337 esac
28338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28339   (eval "$ac_link") 2>conftest.er1
28340   ac_status=$?
28341   grep -v '^ *+' conftest.er1 >conftest.err
28342   rm -f conftest.er1
28343   cat conftest.err >&5
28344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345   (exit $ac_status); } &&
28346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28347   { (case "(($ac_try" in
28348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349   *) ac_try_echo=$ac_try;;
28350 esac
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352   (eval "$ac_try") 2>&5
28353   ac_status=$?
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); }; } &&
28356          { ac_try='test -s conftest$ac_exeext'
28357   { (case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362   (eval "$ac_try") 2>&5
28363   ac_status=$?
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); }; }; then
28366   ac_cv_search_pthread_getspecific=$ac_res
28367 else
28368   echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28370
28371
28372 fi
28373
28374 rm -f core conftest.err conftest.$ac_objext \
28375       conftest$ac_exeext
28376   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28377   break
28378 fi
28379 done
28380 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28381   :
28382 else
28383   ac_cv_search_pthread_getspecific=no
28384 fi
28385 rm conftest.$ac_ext
28386 LIBS=$ac_func_search_save_LIBS
28387 fi
28388 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28389 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28390 ac_res=$ac_cv_search_pthread_getspecific
28391 if test "$ac_res" != no; then
28392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28393
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_PTHREAD_GETSPECIFIC 1
28396 _ACEOF
28397
28398 fi
28399
28400 fi
28401
28402
28403 # Check whether --with-udis86 was given.
28404 if test "${with_udis86+set}" = set; then
28405   withval=$with_udis86;
28406       USE_UDIS86=1
28407
28408       case "$withval" in
28409         /usr/lib|yes) ;;
28410         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28411       esac
28412
28413 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28414 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28415 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28416   echo $ECHO_N "(cached) $ECHO_C" >&6
28417 else
28418   ac_check_lib_save_LIBS=$LIBS
28419 LIBS="-ludis86  $LIBS"
28420 cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426
28427 /* Override any GCC internal prototype to avoid an error.
28428    Use char because int might match the return type of a GCC
28429    builtin and then its argument prototype would still apply.  */
28430 #ifdef __cplusplus
28431 extern "C"
28432 #endif
28433 char ud_init ();
28434 int
28435 main ()
28436 {
28437 return ud_init ();
28438   ;
28439   return 0;
28440 }
28441 _ACEOF
28442 rm -f conftest.$ac_objext conftest$ac_exeext
28443 if { (ac_try="$ac_link"
28444 case "(($ac_try" in
28445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28446   *) ac_try_echo=$ac_try;;
28447 esac
28448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28449   (eval "$ac_link") 2>conftest.er1
28450   ac_status=$?
28451   grep -v '^ *+' conftest.er1 >conftest.err
28452   rm -f conftest.er1
28453   cat conftest.err >&5
28454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455   (exit $ac_status); } &&
28456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28457   { (case "(($ac_try" in
28458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459   *) ac_try_echo=$ac_try;;
28460 esac
28461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462   (eval "$ac_try") 2>&5
28463   ac_status=$?
28464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465   (exit $ac_status); }; } &&
28466          { ac_try='test -s conftest$ac_exeext'
28467   { (case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_try") 2>&5
28473   ac_status=$?
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); }; }; then
28476   ac_cv_lib_udis86_ud_init=yes
28477 else
28478   echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28480
28481         ac_cv_lib_udis86_ud_init=no
28482 fi
28483
28484 rm -f core conftest.err conftest.$ac_objext \
28485       conftest$ac_exeext conftest.$ac_ext
28486 LIBS=$ac_check_lib_save_LIBS
28487 fi
28488 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28489 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28490 if test $ac_cv_lib_udis86_ud_init = yes; then
28491   cat >>confdefs.h <<_ACEOF
28492 #define HAVE_LIBUDIS86 1
28493 _ACEOF
28494
28495   LIBS="-ludis86 $LIBS"
28496
28497 else
28498
28499         echo "Error! You need to have libudis86 around."
28500         exit -1
28501
28502 fi
28503
28504
28505 else
28506   USE_UDIS86=0
28507
28508 fi
28509
28510
28511 cat >>confdefs.h <<_ACEOF
28512 #define USE_UDIS86 $USE_UDIS86
28513 _ACEOF
28514
28515
28516
28517 # Check whether --with-oprofile was given.
28518 if test "${with_oprofile+set}" = set; then
28519   withval=$with_oprofile;
28520       USE_OPROFILE=1
28521
28522       case "$withval" in
28523         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28524         *) llvm_cv_oppath="${withval}/lib/oprofile"
28525            CPPFLAGS="-I${withval}/include";;
28526       esac
28527       LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28528       { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28529 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28530 if test "${ac_cv_search_op_open_agent+set}" = set; then
28531   echo $ECHO_N "(cached) $ECHO_C" >&6
28532 else
28533   ac_func_search_save_LIBS=$LIBS
28534 cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540
28541 /* Override any GCC internal prototype to avoid an error.
28542    Use char because int might match the return type of a GCC
28543    builtin and then its argument prototype would still apply.  */
28544 #ifdef __cplusplus
28545 extern "C"
28546 #endif
28547 char op_open_agent ();
28548 int
28549 main ()
28550 {
28551 return op_open_agent ();
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 for ac_lib in '' opagent; do
28557   if test -z "$ac_lib"; then
28558     ac_res="none required"
28559   else
28560     ac_res=-l$ac_lib
28561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28562   fi
28563   rm -f conftest.$ac_objext conftest$ac_exeext
28564 if { (ac_try="$ac_link"
28565 case "(($ac_try" in
28566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567   *) ac_try_echo=$ac_try;;
28568 esac
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570   (eval "$ac_link") 2>conftest.er1
28571   ac_status=$?
28572   grep -v '^ *+' conftest.er1 >conftest.err
28573   rm -f conftest.er1
28574   cat conftest.err >&5
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } &&
28577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578   { (case "(($ac_try" in
28579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580   *) ac_try_echo=$ac_try;;
28581 esac
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583   (eval "$ac_try") 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; } &&
28587          { ac_try='test -s conftest$ac_exeext'
28588   { (case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_try") 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; }; then
28597   ac_cv_search_op_open_agent=$ac_res
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602
28603 fi
28604
28605 rm -f core conftest.err conftest.$ac_objext \
28606       conftest$ac_exeext
28607   if test "${ac_cv_search_op_open_agent+set}" = set; then
28608   break
28609 fi
28610 done
28611 if test "${ac_cv_search_op_open_agent+set}" = set; then
28612   :
28613 else
28614   ac_cv_search_op_open_agent=no
28615 fi
28616 rm conftest.$ac_ext
28617 LIBS=$ac_func_search_save_LIBS
28618 fi
28619 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28620 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28621 ac_res=$ac_cv_search_op_open_agent
28622 if test "$ac_res" != no; then
28623   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28624
28625 else
28626
28627         echo "Error! You need to have libopagent around."
28628         exit -1
28629
28630 fi
28631
28632       if test "${ac_cv_header_opagent_h+set}" = set; then
28633   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28634 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28635 if test "${ac_cv_header_opagent_h+set}" = set; then
28636   echo $ECHO_N "(cached) $ECHO_C" >&6
28637 fi
28638 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28639 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28640 else
28641   # Is the header compilable?
28642 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28643 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28644 cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h.  */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h.  */
28650 $ac_includes_default
28651 #include <opagent.h>
28652 _ACEOF
28653 rm -f conftest.$ac_objext
28654 if { (ac_try="$ac_compile"
28655 case "(($ac_try" in
28656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657   *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660   (eval "$ac_compile") 2>conftest.er1
28661   ac_status=$?
28662   grep -v '^ *+' conftest.er1 >conftest.err
28663   rm -f conftest.er1
28664   cat conftest.err >&5
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); } &&
28667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28668   { (case "(($ac_try" in
28669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670   *) ac_try_echo=$ac_try;;
28671 esac
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673   (eval "$ac_try") 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); }; } &&
28677          { ac_try='test -s conftest.$ac_objext'
28678   { (case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_try") 2>&5
28684   ac_status=$?
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); }; }; then
28687   ac_header_compiler=yes
28688 else
28689   echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692         ac_header_compiler=no
28693 fi
28694
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28697 echo "${ECHO_T}$ac_header_compiler" >&6; }
28698
28699 # Is the header present?
28700 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28701 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28702 cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708 #include <opagent.h>
28709 _ACEOF
28710 if { (ac_try="$ac_cpp conftest.$ac_ext"
28711 case "(($ac_try" in
28712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713   *) ac_try_echo=$ac_try;;
28714 esac
28715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28717   ac_status=$?
28718   grep -v '^ *+' conftest.er1 >conftest.err
28719   rm -f conftest.er1
28720   cat conftest.err >&5
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); } >/dev/null; then
28723   if test -s conftest.err; then
28724     ac_cpp_err=$ac_c_preproc_warn_flag
28725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28726   else
28727     ac_cpp_err=
28728   fi
28729 else
28730   ac_cpp_err=yes
28731 fi
28732 if test -z "$ac_cpp_err"; then
28733   ac_header_preproc=yes
28734 else
28735   echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28737
28738   ac_header_preproc=no
28739 fi
28740
28741 rm -f conftest.err conftest.$ac_ext
28742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28743 echo "${ECHO_T}$ac_header_preproc" >&6; }
28744
28745 # So?  What about this header?
28746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28747   yes:no: )
28748     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28749 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28750     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28751 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28752     ac_header_preproc=yes
28753     ;;
28754   no:yes:* )
28755     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28756 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28757     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28758 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28759     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28760 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28761     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28762 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28763     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28764 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28765     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28766 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28767     ( cat <<\_ASBOX
28768 ## ----------------------------------- ##
28769 ## Report this to llvmbugs@cs.uiuc.edu ##
28770 ## ----------------------------------- ##
28771 _ASBOX
28772      ) | sed "s/^/$as_me: WARNING:     /" >&2
28773     ;;
28774 esac
28775 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28776 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28777 if test "${ac_cv_header_opagent_h+set}" = set; then
28778   echo $ECHO_N "(cached) $ECHO_C" >&6
28779 else
28780   ac_cv_header_opagent_h=$ac_header_preproc
28781 fi
28782 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28783 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28784
28785 fi
28786 if test $ac_cv_header_opagent_h = yes; then
28787   :
28788 else
28789
28790         echo "Error! You need to have opagent.h around."
28791         exit -1
28792
28793 fi
28794
28795
28796
28797 else
28798
28799       llvm_cv_old_LIBS="$LIBS"
28800       LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28801             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28802 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28803 if test "${ac_cv_search_op_open_agent+set}" = set; then
28804   echo $ECHO_N "(cached) $ECHO_C" >&6
28805 else
28806   ac_func_search_save_LIBS=$LIBS
28807 cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h.  */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h.  */
28813
28814 /* Override any GCC internal prototype to avoid an error.
28815    Use char because int might match the return type of a GCC
28816    builtin and then its argument prototype would still apply.  */
28817 #ifdef __cplusplus
28818 extern "C"
28819 #endif
28820 char op_open_agent ();
28821 int
28822 main ()
28823 {
28824 return op_open_agent ();
28825   ;
28826   return 0;
28827 }
28828 _ACEOF
28829 for ac_lib in '' opagent; do
28830   if test -z "$ac_lib"; then
28831     ac_res="none required"
28832   else
28833     ac_res=-l$ac_lib
28834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28835   fi
28836   rm -f conftest.$ac_objext conftest$ac_exeext
28837 if { (ac_try="$ac_link"
28838 case "(($ac_try" in
28839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28840   *) ac_try_echo=$ac_try;;
28841 esac
28842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28843   (eval "$ac_link") 2>conftest.er1
28844   ac_status=$?
28845   grep -v '^ *+' conftest.er1 >conftest.err
28846   rm -f conftest.er1
28847   cat conftest.err >&5
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); } &&
28850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28851   { (case "(($ac_try" in
28852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853   *) ac_try_echo=$ac_try;;
28854 esac
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856   (eval "$ac_try") 2>&5
28857   ac_status=$?
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); }; } &&
28860          { ac_try='test -s conftest$ac_exeext'
28861   { (case "(($ac_try" in
28862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863   *) ac_try_echo=$ac_try;;
28864 esac
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866   (eval "$ac_try") 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; }; then
28870   ac_cv_search_op_open_agent=$ac_res
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875
28876 fi
28877
28878 rm -f core conftest.err conftest.$ac_objext \
28879       conftest$ac_exeext
28880   if test "${ac_cv_search_op_open_agent+set}" = set; then
28881   break
28882 fi
28883 done
28884 if test "${ac_cv_search_op_open_agent+set}" = set; then
28885   :
28886 else
28887   ac_cv_search_op_open_agent=no
28888 fi
28889 rm conftest.$ac_ext
28890 LIBS=$ac_func_search_save_LIBS
28891 fi
28892 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28893 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28894 ac_res=$ac_cv_search_op_open_agent
28895 if test "$ac_res" != no; then
28896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28897   USE_OPROFILE=1
28898
28899 else
28900   LIBS="$llvm_cv_old_LIBS"
28901                       USE_OPROFILE=0
28902
28903 fi
28904
28905       if test "${ac_cv_header_opagent_h+set}" = set; then
28906   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28907 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28908 if test "${ac_cv_header_opagent_h+set}" = set; then
28909   echo $ECHO_N "(cached) $ECHO_C" >&6
28910 fi
28911 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28912 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28913 else
28914   # Is the header compilable?
28915 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28916 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28917 cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h.  */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h.  */
28923 $ac_includes_default
28924 #include <opagent.h>
28925 _ACEOF
28926 rm -f conftest.$ac_objext
28927 if { (ac_try="$ac_compile"
28928 case "(($ac_try" in
28929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930   *) ac_try_echo=$ac_try;;
28931 esac
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933   (eval "$ac_compile") 2>conftest.er1
28934   ac_status=$?
28935   grep -v '^ *+' conftest.er1 >conftest.err
28936   rm -f conftest.er1
28937   cat conftest.err >&5
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); } &&
28940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28941   { (case "(($ac_try" in
28942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943   *) ac_try_echo=$ac_try;;
28944 esac
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946   (eval "$ac_try") 2>&5
28947   ac_status=$?
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); }; } &&
28950          { ac_try='test -s conftest.$ac_objext'
28951   { (case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_try") 2>&5
28957   ac_status=$?
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); }; }; then
28960   ac_header_compiler=yes
28961 else
28962   echo "$as_me: failed program was:" >&5
28963 sed 's/^/| /' conftest.$ac_ext >&5
28964
28965         ac_header_compiler=no
28966 fi
28967
28968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28970 echo "${ECHO_T}$ac_header_compiler" >&6; }
28971
28972 # Is the header present?
28973 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28974 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28975 cat >conftest.$ac_ext <<_ACEOF
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981 #include <opagent.h>
28982 _ACEOF
28983 if { (ac_try="$ac_cpp conftest.$ac_ext"
28984 case "(($ac_try" in
28985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28986   *) ac_try_echo=$ac_try;;
28987 esac
28988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28990   ac_status=$?
28991   grep -v '^ *+' conftest.er1 >conftest.err
28992   rm -f conftest.er1
28993   cat conftest.err >&5
28994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995   (exit $ac_status); } >/dev/null; then
28996   if test -s conftest.err; then
28997     ac_cpp_err=$ac_c_preproc_warn_flag
28998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28999   else
29000     ac_cpp_err=
29001   fi
29002 else
29003   ac_cpp_err=yes
29004 fi
29005 if test -z "$ac_cpp_err"; then
29006   ac_header_preproc=yes
29007 else
29008   echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29010
29011   ac_header_preproc=no
29012 fi
29013
29014 rm -f conftest.err conftest.$ac_ext
29015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29016 echo "${ECHO_T}$ac_header_preproc" >&6; }
29017
29018 # So?  What about this header?
29019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29020   yes:no: )
29021     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29022 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29023     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29024 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29025     ac_header_preproc=yes
29026     ;;
29027   no:yes:* )
29028     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29029 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
29031 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29033 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29034     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
29035 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29036     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29037 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29038     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29039 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29040     ( cat <<\_ASBOX
29041 ## ----------------------------------- ##
29042 ## Report this to llvmbugs@cs.uiuc.edu ##
29043 ## ----------------------------------- ##
29044 _ASBOX
29045      ) | sed "s/^/$as_me: WARNING:     /" >&2
29046     ;;
29047 esac
29048 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29049 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29050 if test "${ac_cv_header_opagent_h+set}" = set; then
29051   echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
29053   ac_cv_header_opagent_h=$ac_header_preproc
29054 fi
29055 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29056 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29057
29058 fi
29059 if test $ac_cv_header_opagent_h = yes; then
29060   :
29061 else
29062
29063         LIBS="$llvm_cv_old_LIBS"
29064         USE_OPROFILE=0
29065
29066
29067 fi
29068
29069
29070
29071 fi
29072
29073
29074 cat >>confdefs.h <<_ACEOF
29075 #define USE_OPROFILE $USE_OPROFILE
29076 _ACEOF
29077
29078
29079
29080
29081
29082
29083
29084
29085 ac_header_dirent=no
29086 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29087   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29088 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29089 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29091   echo $ECHO_N "(cached) $ECHO_C" >&6
29092 else
29093   cat >conftest.$ac_ext <<_ACEOF
29094 /* confdefs.h.  */
29095 _ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h.  */
29099 #include <sys/types.h>
29100 #include <$ac_hdr>
29101
29102 int
29103 main ()
29104 {
29105 if ((DIR *) 0)
29106 return 0;
29107   ;
29108   return 0;
29109 }
29110 _ACEOF
29111 rm -f conftest.$ac_objext
29112 if { (ac_try="$ac_compile"
29113 case "(($ac_try" in
29114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29115   *) ac_try_echo=$ac_try;;
29116 esac
29117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29118   (eval "$ac_compile") 2>conftest.er1
29119   ac_status=$?
29120   grep -v '^ *+' conftest.er1 >conftest.err
29121   rm -f conftest.er1
29122   cat conftest.err >&5
29123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124   (exit $ac_status); } &&
29125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29126   { (case "(($ac_try" in
29127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128   *) ac_try_echo=$ac_try;;
29129 esac
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131   (eval "$ac_try") 2>&5
29132   ac_status=$?
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); }; } &&
29135          { ac_try='test -s conftest.$ac_objext'
29136   { (case "(($ac_try" in
29137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138   *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141   (eval "$ac_try") 2>&5
29142   ac_status=$?
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); }; }; then
29145   eval "$as_ac_Header=yes"
29146 else
29147   echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29149
29150         eval "$as_ac_Header=no"
29151 fi
29152
29153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29154 fi
29155 ac_res=`eval echo '${'$as_ac_Header'}'`
29156                { echo "$as_me:$LINENO: result: $ac_res" >&5
29157 echo "${ECHO_T}$ac_res" >&6; }
29158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29159   cat >>confdefs.h <<_ACEOF
29160 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29161 _ACEOF
29162
29163 ac_header_dirent=$ac_hdr; break
29164 fi
29165
29166 done
29167 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29168 if test $ac_header_dirent = dirent.h; then
29169   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29170 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29171 if test "${ac_cv_search_opendir+set}" = set; then
29172   echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174   ac_func_search_save_LIBS=$LIBS
29175 cat >conftest.$ac_ext <<_ACEOF
29176 /* confdefs.h.  */
29177 _ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h.  */
29181
29182 /* Override any GCC internal prototype to avoid an error.
29183    Use char because int might match the return type of a GCC
29184    builtin and then its argument prototype would still apply.  */
29185 #ifdef __cplusplus
29186 extern "C"
29187 #endif
29188 char opendir ();
29189 int
29190 main ()
29191 {
29192 return opendir ();
29193   ;
29194   return 0;
29195 }
29196 _ACEOF
29197 for ac_lib in '' dir; do
29198   if test -z "$ac_lib"; then
29199     ac_res="none required"
29200   else
29201     ac_res=-l$ac_lib
29202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29203   fi
29204   rm -f conftest.$ac_objext conftest$ac_exeext
29205 if { (ac_try="$ac_link"
29206 case "(($ac_try" in
29207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208   *) ac_try_echo=$ac_try;;
29209 esac
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211   (eval "$ac_link") 2>conftest.er1
29212   ac_status=$?
29213   grep -v '^ *+' conftest.er1 >conftest.err
29214   rm -f conftest.er1
29215   cat conftest.err >&5
29216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217   (exit $ac_status); } &&
29218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219   { (case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224   (eval "$ac_try") 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; } &&
29228          { ac_try='test -s conftest$ac_exeext'
29229   { (case "(($ac_try" in
29230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231   *) ac_try_echo=$ac_try;;
29232 esac
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234   (eval "$ac_try") 2>&5
29235   ac_status=$?
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); }; }; then
29238   ac_cv_search_opendir=$ac_res
29239 else
29240   echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29242
29243
29244 fi
29245
29246 rm -f core conftest.err conftest.$ac_objext \
29247       conftest$ac_exeext
29248   if test "${ac_cv_search_opendir+set}" = set; then
29249   break
29250 fi
29251 done
29252 if test "${ac_cv_search_opendir+set}" = set; then
29253   :
29254 else
29255   ac_cv_search_opendir=no
29256 fi
29257 rm conftest.$ac_ext
29258 LIBS=$ac_func_search_save_LIBS
29259 fi
29260 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29261 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29262 ac_res=$ac_cv_search_opendir
29263 if test "$ac_res" != no; then
29264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29265
29266 fi
29267
29268 else
29269   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29270 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29271 if test "${ac_cv_search_opendir+set}" = set; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 else
29274   ac_func_search_save_LIBS=$LIBS
29275 cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h.  */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h.  */
29281
29282 /* Override any GCC internal prototype to avoid an error.
29283    Use char because int might match the return type of a GCC
29284    builtin and then its argument prototype would still apply.  */
29285 #ifdef __cplusplus
29286 extern "C"
29287 #endif
29288 char opendir ();
29289 int
29290 main ()
29291 {
29292 return opendir ();
29293   ;
29294   return 0;
29295 }
29296 _ACEOF
29297 for ac_lib in '' x; do
29298   if test -z "$ac_lib"; then
29299     ac_res="none required"
29300   else
29301     ac_res=-l$ac_lib
29302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29303   fi
29304   rm -f conftest.$ac_objext conftest$ac_exeext
29305 if { (ac_try="$ac_link"
29306 case "(($ac_try" in
29307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308   *) ac_try_echo=$ac_try;;
29309 esac
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311   (eval "$ac_link") 2>conftest.er1
29312   ac_status=$?
29313   grep -v '^ *+' conftest.er1 >conftest.err
29314   rm -f conftest.er1
29315   cat conftest.err >&5
29316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317   (exit $ac_status); } &&
29318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29319   { (case "(($ac_try" in
29320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321   *) ac_try_echo=$ac_try;;
29322 esac
29323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324   (eval "$ac_try") 2>&5
29325   ac_status=$?
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); }; } &&
29328          { ac_try='test -s conftest$ac_exeext'
29329   { (case "(($ac_try" in
29330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331   *) ac_try_echo=$ac_try;;
29332 esac
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334   (eval "$ac_try") 2>&5
29335   ac_status=$?
29336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337   (exit $ac_status); }; }; then
29338   ac_cv_search_opendir=$ac_res
29339 else
29340   echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29342
29343
29344 fi
29345
29346 rm -f core conftest.err conftest.$ac_objext \
29347       conftest$ac_exeext
29348   if test "${ac_cv_search_opendir+set}" = set; then
29349   break
29350 fi
29351 done
29352 if test "${ac_cv_search_opendir+set}" = set; then
29353   :
29354 else
29355   ac_cv_search_opendir=no
29356 fi
29357 rm conftest.$ac_ext
29358 LIBS=$ac_func_search_save_LIBS
29359 fi
29360 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29361 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29362 ac_res=$ac_cv_search_opendir
29363 if test "$ac_res" != no; then
29364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29365
29366 fi
29367
29368 fi
29369
29370 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29371 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29372 if test "${ac_cv_header_mmap_anon+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375    ac_ext=c
29376 ac_cpp='$CPP $CPPFLAGS'
29377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29380
29381   cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 #include <sys/mman.h>
29388 #include <unistd.h>
29389 #include <fcntl.h>
29390 int
29391 main ()
29392 {
29393 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29394   ;
29395   return 0;
29396 }
29397 _ACEOF
29398 rm -f conftest.$ac_objext
29399 if { (ac_try="$ac_compile"
29400 case "(($ac_try" in
29401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402   *) ac_try_echo=$ac_try;;
29403 esac
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405   (eval "$ac_compile") 2>conftest.er1
29406   ac_status=$?
29407   grep -v '^ *+' conftest.er1 >conftest.err
29408   rm -f conftest.er1
29409   cat conftest.err >&5
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); } &&
29412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29413   { (case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_try") 2>&5
29419   ac_status=$?
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); }; } &&
29422          { ac_try='test -s conftest.$ac_objext'
29423   { (case "(($ac_try" in
29424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425   *) ac_try_echo=$ac_try;;
29426 esac
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428   (eval "$ac_try") 2>&5
29429   ac_status=$?
29430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431   (exit $ac_status); }; }; then
29432   ac_cv_header_mmap_anon=yes
29433 else
29434   echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.$ac_ext >&5
29436
29437         ac_cv_header_mmap_anon=no
29438 fi
29439
29440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29441   ac_ext=c
29442 ac_cpp='$CPP $CPPFLAGS'
29443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29446
29447
29448 fi
29449 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29450 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29451 if test "$ac_cv_header_mmap_anon" = yes; then
29452
29453 cat >>confdefs.h <<\_ACEOF
29454 #define HAVE_MMAP_ANONYMOUS 1
29455 _ACEOF
29456
29457 fi
29458
29459 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29460 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29461 if test "${ac_cv_header_stat_broken+set}" = set; then
29462   echo $ECHO_N "(cached) $ECHO_C" >&6
29463 else
29464   cat >conftest.$ac_ext <<_ACEOF
29465 /* confdefs.h.  */
29466 _ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h.  */
29470 #include <sys/types.h>
29471 #include <sys/stat.h>
29472
29473 #if defined S_ISBLK && defined S_IFDIR
29474 # if S_ISBLK (S_IFDIR)
29475 You lose.
29476 # endif
29477 #endif
29478
29479 #if defined S_ISBLK && defined S_IFCHR
29480 # if S_ISBLK (S_IFCHR)
29481 You lose.
29482 # endif
29483 #endif
29484
29485 #if defined S_ISLNK && defined S_IFREG
29486 # if S_ISLNK (S_IFREG)
29487 You lose.
29488 # endif
29489 #endif
29490
29491 #if defined S_ISSOCK && defined S_IFREG
29492 # if S_ISSOCK (S_IFREG)
29493 You lose.
29494 # endif
29495 #endif
29496
29497 _ACEOF
29498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29499   $EGREP "You lose" >/dev/null 2>&1; then
29500   ac_cv_header_stat_broken=yes
29501 else
29502   ac_cv_header_stat_broken=no
29503 fi
29504 rm -f conftest*
29505
29506 fi
29507 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29508 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29509 if test $ac_cv_header_stat_broken = yes; then
29510
29511 cat >>confdefs.h <<\_ACEOF
29512 #define STAT_MACROS_BROKEN 1
29513 _ACEOF
29514
29515 fi
29516
29517 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29519 if test "${ac_cv_header_stdc+set}" = set; then
29520   echo $ECHO_N "(cached) $ECHO_C" >&6
29521 else
29522   cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h.  */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h.  */
29528 #include <stdlib.h>
29529 #include <stdarg.h>
29530 #include <string.h>
29531 #include <float.h>
29532
29533 int
29534 main ()
29535 {
29536
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 rm -f conftest.$ac_objext
29542 if { (ac_try="$ac_compile"
29543 case "(($ac_try" in
29544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545   *) ac_try_echo=$ac_try;;
29546 esac
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548   (eval "$ac_compile") 2>conftest.er1
29549   ac_status=$?
29550   grep -v '^ *+' conftest.er1 >conftest.err
29551   rm -f conftest.er1
29552   cat conftest.err >&5
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } &&
29555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29556   { (case "(($ac_try" in
29557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558   *) ac_try_echo=$ac_try;;
29559 esac
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561   (eval "$ac_try") 2>&5
29562   ac_status=$?
29563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564   (exit $ac_status); }; } &&
29565          { ac_try='test -s conftest.$ac_objext'
29566   { (case "(($ac_try" in
29567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29568   *) ac_try_echo=$ac_try;;
29569 esac
29570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29571   (eval "$ac_try") 2>&5
29572   ac_status=$?
29573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574   (exit $ac_status); }; }; then
29575   ac_cv_header_stdc=yes
29576 else
29577   echo "$as_me: failed program was:" >&5
29578 sed 's/^/| /' conftest.$ac_ext >&5
29579
29580         ac_cv_header_stdc=no
29581 fi
29582
29583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29584
29585 if test $ac_cv_header_stdc = yes; then
29586   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29587   cat >conftest.$ac_ext <<_ACEOF
29588 /* confdefs.h.  */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h.  */
29593 #include <string.h>
29594
29595 _ACEOF
29596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29597   $EGREP "memchr" >/dev/null 2>&1; then
29598   :
29599 else
29600   ac_cv_header_stdc=no
29601 fi
29602 rm -f conftest*
29603
29604 fi
29605
29606 if test $ac_cv_header_stdc = yes; then
29607   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29608   cat >conftest.$ac_ext <<_ACEOF
29609 /* confdefs.h.  */
29610 _ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h.  */
29614 #include <stdlib.h>
29615
29616 _ACEOF
29617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29618   $EGREP "free" >/dev/null 2>&1; then
29619   :
29620 else
29621   ac_cv_header_stdc=no
29622 fi
29623 rm -f conftest*
29624
29625 fi
29626
29627 if test $ac_cv_header_stdc = yes; then
29628   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29629   if test "$cross_compiling" = yes; then
29630   :
29631 else
29632   cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638 #include <ctype.h>
29639 #include <stdlib.h>
29640 #if ((' ' & 0x0FF) == 0x020)
29641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29643 #else
29644 # define ISLOWER(c) \
29645                    (('a' <= (c) && (c) <= 'i') \
29646                      || ('j' <= (c) && (c) <= 'r') \
29647                      || ('s' <= (c) && (c) <= 'z'))
29648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29649 #endif
29650
29651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29652 int
29653 main ()
29654 {
29655   int i;
29656   for (i = 0; i < 256; i++)
29657     if (XOR (islower (i), ISLOWER (i))
29658         || toupper (i) != TOUPPER (i))
29659       return 2;
29660   return 0;
29661 }
29662 _ACEOF
29663 rm -f conftest$ac_exeext
29664 if { (ac_try="$ac_link"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_link") 2>&5
29671   ac_status=$?
29672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29674   { (case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_try") 2>&5
29680   ac_status=$?
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); }; }; then
29683   :
29684 else
29685   echo "$as_me: program exited with status $ac_status" >&5
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689 ( exit $ac_status )
29690 ac_cv_header_stdc=no
29691 fi
29692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29693 fi
29694
29695
29696 fi
29697 fi
29698 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29699 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29700 if test $ac_cv_header_stdc = yes; then
29701
29702 cat >>confdefs.h <<\_ACEOF
29703 #define STDC_HEADERS 1
29704 _ACEOF
29705
29706 fi
29707
29708 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29709 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29710 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29711   echo $ECHO_N "(cached) $ECHO_C" >&6
29712 else
29713   cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h.  */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h.  */
29719 #include <sys/types.h>
29720 #include <sys/wait.h>
29721 #ifndef WEXITSTATUS
29722 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29723 #endif
29724 #ifndef WIFEXITED
29725 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29726 #endif
29727
29728 int
29729 main ()
29730 {
29731   int s;
29732   wait (&s);
29733   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 rm -f conftest.$ac_objext
29739 if { (ac_try="$ac_compile"
29740 case "(($ac_try" in
29741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742   *) ac_try_echo=$ac_try;;
29743 esac
29744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745   (eval "$ac_compile") 2>conftest.er1
29746   ac_status=$?
29747   grep -v '^ *+' conftest.er1 >conftest.err
29748   rm -f conftest.er1
29749   cat conftest.err >&5
29750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); } &&
29752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29753   { (case "(($ac_try" in
29754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755   *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758   (eval "$ac_try") 2>&5
29759   ac_status=$?
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); }; } &&
29762          { ac_try='test -s conftest.$ac_objext'
29763   { (case "(($ac_try" in
29764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765   *) ac_try_echo=$ac_try;;
29766 esac
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768   (eval "$ac_try") 2>&5
29769   ac_status=$?
29770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771   (exit $ac_status); }; }; then
29772   ac_cv_header_sys_wait_h=yes
29773 else
29774   echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777         ac_cv_header_sys_wait_h=no
29778 fi
29779
29780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29781 fi
29782 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29783 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29784 if test $ac_cv_header_sys_wait_h = yes; then
29785
29786 cat >>confdefs.h <<\_ACEOF
29787 #define HAVE_SYS_WAIT_H 1
29788 _ACEOF
29789
29790 fi
29791
29792 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29793 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29794 if test "${ac_cv_header_time+set}" = set; then
29795   echo $ECHO_N "(cached) $ECHO_C" >&6
29796 else
29797   cat >conftest.$ac_ext <<_ACEOF
29798 /* confdefs.h.  */
29799 _ACEOF
29800 cat confdefs.h >>conftest.$ac_ext
29801 cat >>conftest.$ac_ext <<_ACEOF
29802 /* end confdefs.h.  */
29803 #include <sys/types.h>
29804 #include <sys/time.h>
29805 #include <time.h>
29806
29807 int
29808 main ()
29809 {
29810 if ((struct tm *) 0)
29811 return 0;
29812   ;
29813   return 0;
29814 }
29815 _ACEOF
29816 rm -f conftest.$ac_objext
29817 if { (ac_try="$ac_compile"
29818 case "(($ac_try" in
29819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820   *) ac_try_echo=$ac_try;;
29821 esac
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823   (eval "$ac_compile") 2>conftest.er1
29824   ac_status=$?
29825   grep -v '^ *+' conftest.er1 >conftest.err
29826   rm -f conftest.er1
29827   cat conftest.err >&5
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); } &&
29830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29831   { (case "(($ac_try" in
29832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833   *) ac_try_echo=$ac_try;;
29834 esac
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836   (eval "$ac_try") 2>&5
29837   ac_status=$?
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); }; } &&
29840          { ac_try='test -s conftest.$ac_objext'
29841   { (case "(($ac_try" in
29842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843   *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846   (eval "$ac_try") 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); }; }; then
29850   ac_cv_header_time=yes
29851 else
29852   echo "$as_me: failed program was:" >&5
29853 sed 's/^/| /' conftest.$ac_ext >&5
29854
29855         ac_cv_header_time=no
29856 fi
29857
29858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29859 fi
29860 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29861 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29862 if test $ac_cv_header_time = yes; then
29863
29864 cat >>confdefs.h <<\_ACEOF
29865 #define TIME_WITH_SYS_TIME 1
29866 _ACEOF
29867
29868 fi
29869
29870
29871
29872
29873
29874
29875
29876
29877 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29878 do
29879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29881   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29884   echo $ECHO_N "(cached) $ECHO_C" >&6
29885 fi
29886 ac_res=`eval echo '${'$as_ac_Header'}'`
29887                { echo "$as_me:$LINENO: result: $ac_res" >&5
29888 echo "${ECHO_T}$ac_res" >&6; }
29889 else
29890   # Is the header compilable?
29891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29893 cat >conftest.$ac_ext <<_ACEOF
29894 /* confdefs.h.  */
29895 _ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h.  */
29899 $ac_includes_default
29900 #include <$ac_header>
29901 _ACEOF
29902 rm -f conftest.$ac_objext
29903 if { (ac_try="$ac_compile"
29904 case "(($ac_try" in
29905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906   *) ac_try_echo=$ac_try;;
29907 esac
29908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909   (eval "$ac_compile") 2>conftest.er1
29910   ac_status=$?
29911   grep -v '^ *+' conftest.er1 >conftest.err
29912   rm -f conftest.er1
29913   cat conftest.err >&5
29914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915   (exit $ac_status); } &&
29916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29917   { (case "(($ac_try" in
29918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919   *) ac_try_echo=$ac_try;;
29920 esac
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922   (eval "$ac_try") 2>&5
29923   ac_status=$?
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); }; } &&
29926          { ac_try='test -s conftest.$ac_objext'
29927   { (case "(($ac_try" in
29928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929   *) ac_try_echo=$ac_try;;
29930 esac
29931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932   (eval "$ac_try") 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; }; then
29936   ac_header_compiler=yes
29937 else
29938   echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941         ac_header_compiler=no
29942 fi
29943
29944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29946 echo "${ECHO_T}$ac_header_compiler" >&6; }
29947
29948 # Is the header present?
29949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29951 cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957 #include <$ac_header>
29958 _ACEOF
29959 if { (ac_try="$ac_cpp conftest.$ac_ext"
29960 case "(($ac_try" in
29961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962   *) ac_try_echo=$ac_try;;
29963 esac
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29966   ac_status=$?
29967   grep -v '^ *+' conftest.er1 >conftest.err
29968   rm -f conftest.er1
29969   cat conftest.err >&5
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); } >/dev/null; then
29972   if test -s conftest.err; then
29973     ac_cpp_err=$ac_c_preproc_warn_flag
29974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29975   else
29976     ac_cpp_err=
29977   fi
29978 else
29979   ac_cpp_err=yes
29980 fi
29981 if test -z "$ac_cpp_err"; then
29982   ac_header_preproc=yes
29983 else
29984   echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987   ac_header_preproc=no
29988 fi
29989
29990 rm -f conftest.err conftest.$ac_ext
29991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29992 echo "${ECHO_T}$ac_header_preproc" >&6; }
29993
29994 # So?  What about this header?
29995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29996   yes:no: )
29997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30001     ac_header_preproc=yes
30002     ;;
30003   no:yes:* )
30004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30016     ( cat <<\_ASBOX
30017 ## ----------------------------------- ##
30018 ## Report this to llvmbugs@cs.uiuc.edu ##
30019 ## ----------------------------------- ##
30020 _ASBOX
30021      ) | sed "s/^/$as_me: WARNING:     /" >&2
30022     ;;
30023 esac
30024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30027   echo $ECHO_N "(cached) $ECHO_C" >&6
30028 else
30029   eval "$as_ac_Header=\$ac_header_preproc"
30030 fi
30031 ac_res=`eval echo '${'$as_ac_Header'}'`
30032                { echo "$as_me:$LINENO: result: $ac_res" >&5
30033 echo "${ECHO_T}$ac_res" >&6; }
30034
30035 fi
30036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30037   cat >>confdefs.h <<_ACEOF
30038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30039 _ACEOF
30040
30041 fi
30042
30043 done
30044
30045
30046
30047
30048
30049
30050
30051 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30052 do
30053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30058   echo $ECHO_N "(cached) $ECHO_C" >&6
30059 fi
30060 ac_res=`eval echo '${'$as_ac_Header'}'`
30061                { echo "$as_me:$LINENO: result: $ac_res" >&5
30062 echo "${ECHO_T}$ac_res" >&6; }
30063 else
30064   # Is the header compilable?
30065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30067 cat >conftest.$ac_ext <<_ACEOF
30068 /* confdefs.h.  */
30069 _ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h.  */
30073 $ac_includes_default
30074 #include <$ac_header>
30075 _ACEOF
30076 rm -f conftest.$ac_objext
30077 if { (ac_try="$ac_compile"
30078 case "(($ac_try" in
30079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080   *) ac_try_echo=$ac_try;;
30081 esac
30082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083   (eval "$ac_compile") 2>conftest.er1
30084   ac_status=$?
30085   grep -v '^ *+' conftest.er1 >conftest.err
30086   rm -f conftest.er1
30087   cat conftest.err >&5
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); } &&
30090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30091   { (case "(($ac_try" in
30092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093   *) ac_try_echo=$ac_try;;
30094 esac
30095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096   (eval "$ac_try") 2>&5
30097   ac_status=$?
30098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099   (exit $ac_status); }; } &&
30100          { ac_try='test -s conftest.$ac_objext'
30101   { (case "(($ac_try" in
30102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103   *) ac_try_echo=$ac_try;;
30104 esac
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106   (eval "$ac_try") 2>&5
30107   ac_status=$?
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); }; }; then
30110   ac_header_compiler=yes
30111 else
30112   echo "$as_me: failed program was:" >&5
30113 sed 's/^/| /' conftest.$ac_ext >&5
30114
30115         ac_header_compiler=no
30116 fi
30117
30118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30120 echo "${ECHO_T}$ac_header_compiler" >&6; }
30121
30122 # Is the header present?
30123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30125 cat >conftest.$ac_ext <<_ACEOF
30126 /* confdefs.h.  */
30127 _ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h.  */
30131 #include <$ac_header>
30132 _ACEOF
30133 if { (ac_try="$ac_cpp conftest.$ac_ext"
30134 case "(($ac_try" in
30135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136   *) ac_try_echo=$ac_try;;
30137 esac
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30140   ac_status=$?
30141   grep -v '^ *+' conftest.er1 >conftest.err
30142   rm -f conftest.er1
30143   cat conftest.err >&5
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); } >/dev/null; then
30146   if test -s conftest.err; then
30147     ac_cpp_err=$ac_c_preproc_warn_flag
30148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30149   else
30150     ac_cpp_err=
30151   fi
30152 else
30153   ac_cpp_err=yes
30154 fi
30155 if test -z "$ac_cpp_err"; then
30156   ac_header_preproc=yes
30157 else
30158   echo "$as_me: failed program was:" >&5
30159 sed 's/^/| /' conftest.$ac_ext >&5
30160
30161   ac_header_preproc=no
30162 fi
30163
30164 rm -f conftest.err conftest.$ac_ext
30165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30166 echo "${ECHO_T}$ac_header_preproc" >&6; }
30167
30168 # So?  What about this header?
30169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30170   yes:no: )
30171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30175     ac_header_preproc=yes
30176     ;;
30177   no:yes:* )
30178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30190     ( cat <<\_ASBOX
30191 ## ----------------------------------- ##
30192 ## Report this to llvmbugs@cs.uiuc.edu ##
30193 ## ----------------------------------- ##
30194 _ASBOX
30195      ) | sed "s/^/$as_me: WARNING:     /" >&2
30196     ;;
30197 esac
30198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30201   echo $ECHO_N "(cached) $ECHO_C" >&6
30202 else
30203   eval "$as_ac_Header=\$ac_header_preproc"
30204 fi
30205 ac_res=`eval echo '${'$as_ac_Header'}'`
30206                { echo "$as_me:$LINENO: result: $ac_res" >&5
30207 echo "${ECHO_T}$ac_res" >&6; }
30208
30209 fi
30210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30211   cat >>confdefs.h <<_ACEOF
30212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30213 _ACEOF
30214
30215 fi
30216
30217 done
30218
30219
30220
30221 for ac_header in utime.h windows.h
30222 do
30223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30225   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228   echo $ECHO_N "(cached) $ECHO_C" >&6
30229 fi
30230 ac_res=`eval echo '${'$as_ac_Header'}'`
30231                { echo "$as_me:$LINENO: result: $ac_res" >&5
30232 echo "${ECHO_T}$ac_res" >&6; }
30233 else
30234   # Is the header compilable?
30235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30237 cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h.  */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h.  */
30243 $ac_includes_default
30244 #include <$ac_header>
30245 _ACEOF
30246 rm -f conftest.$ac_objext
30247 if { (ac_try="$ac_compile"
30248 case "(($ac_try" in
30249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250   *) ac_try_echo=$ac_try;;
30251 esac
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253   (eval "$ac_compile") 2>conftest.er1
30254   ac_status=$?
30255   grep -v '^ *+' conftest.er1 >conftest.err
30256   rm -f conftest.er1
30257   cat conftest.err >&5
30258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259   (exit $ac_status); } &&
30260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30261   { (case "(($ac_try" in
30262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263   *) ac_try_echo=$ac_try;;
30264 esac
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266   (eval "$ac_try") 2>&5
30267   ac_status=$?
30268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269   (exit $ac_status); }; } &&
30270          { ac_try='test -s conftest.$ac_objext'
30271   { (case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_try") 2>&5
30277   ac_status=$?
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); }; }; then
30280   ac_header_compiler=yes
30281 else
30282   echo "$as_me: failed program was:" >&5
30283 sed 's/^/| /' conftest.$ac_ext >&5
30284
30285         ac_header_compiler=no
30286 fi
30287
30288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30290 echo "${ECHO_T}$ac_header_compiler" >&6; }
30291
30292 # Is the header present?
30293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30295 cat >conftest.$ac_ext <<_ACEOF
30296 /* confdefs.h.  */
30297 _ACEOF
30298 cat confdefs.h >>conftest.$ac_ext
30299 cat >>conftest.$ac_ext <<_ACEOF
30300 /* end confdefs.h.  */
30301 #include <$ac_header>
30302 _ACEOF
30303 if { (ac_try="$ac_cpp conftest.$ac_ext"
30304 case "(($ac_try" in
30305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306   *) ac_try_echo=$ac_try;;
30307 esac
30308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30310   ac_status=$?
30311   grep -v '^ *+' conftest.er1 >conftest.err
30312   rm -f conftest.er1
30313   cat conftest.err >&5
30314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315   (exit $ac_status); } >/dev/null; then
30316   if test -s conftest.err; then
30317     ac_cpp_err=$ac_c_preproc_warn_flag
30318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30319   else
30320     ac_cpp_err=
30321   fi
30322 else
30323   ac_cpp_err=yes
30324 fi
30325 if test -z "$ac_cpp_err"; then
30326   ac_header_preproc=yes
30327 else
30328   echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30330
30331   ac_header_preproc=no
30332 fi
30333
30334 rm -f conftest.err conftest.$ac_ext
30335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30336 echo "${ECHO_T}$ac_header_preproc" >&6; }
30337
30338 # So?  What about this header?
30339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30340   yes:no: )
30341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30345     ac_header_preproc=yes
30346     ;;
30347   no:yes:* )
30348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30360     ( cat <<\_ASBOX
30361 ## ----------------------------------- ##
30362 ## Report this to llvmbugs@cs.uiuc.edu ##
30363 ## ----------------------------------- ##
30364 _ASBOX
30365      ) | sed "s/^/$as_me: WARNING:     /" >&2
30366     ;;
30367 esac
30368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30371   echo $ECHO_N "(cached) $ECHO_C" >&6
30372 else
30373   eval "$as_ac_Header=\$ac_header_preproc"
30374 fi
30375 ac_res=`eval echo '${'$as_ac_Header'}'`
30376                { echo "$as_me:$LINENO: result: $ac_res" >&5
30377 echo "${ECHO_T}$ac_res" >&6; }
30378
30379 fi
30380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30381   cat >>confdefs.h <<_ACEOF
30382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30383 _ACEOF
30384
30385 fi
30386
30387 done
30388
30389
30390
30391
30392
30393 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30394 do
30395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 fi
30402 ac_res=`eval echo '${'$as_ac_Header'}'`
30403                { echo "$as_me:$LINENO: result: $ac_res" >&5
30404 echo "${ECHO_T}$ac_res" >&6; }
30405 else
30406   # Is the header compilable?
30407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30409 cat >conftest.$ac_ext <<_ACEOF
30410 /* confdefs.h.  */
30411 _ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h.  */
30415 $ac_includes_default
30416 #include <$ac_header>
30417 _ACEOF
30418 rm -f conftest.$ac_objext
30419 if { (ac_try="$ac_compile"
30420 case "(($ac_try" in
30421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422   *) ac_try_echo=$ac_try;;
30423 esac
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425   (eval "$ac_compile") 2>conftest.er1
30426   ac_status=$?
30427   grep -v '^ *+' conftest.er1 >conftest.err
30428   rm -f conftest.er1
30429   cat conftest.err >&5
30430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431   (exit $ac_status); } &&
30432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30433   { (case "(($ac_try" in
30434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435   *) ac_try_echo=$ac_try;;
30436 esac
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438   (eval "$ac_try") 2>&5
30439   ac_status=$?
30440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441   (exit $ac_status); }; } &&
30442          { ac_try='test -s conftest.$ac_objext'
30443   { (case "(($ac_try" in
30444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445   *) ac_try_echo=$ac_try;;
30446 esac
30447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448   (eval "$ac_try") 2>&5
30449   ac_status=$?
30450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451   (exit $ac_status); }; }; then
30452   ac_header_compiler=yes
30453 else
30454   echo "$as_me: failed program was:" >&5
30455 sed 's/^/| /' conftest.$ac_ext >&5
30456
30457         ac_header_compiler=no
30458 fi
30459
30460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30462 echo "${ECHO_T}$ac_header_compiler" >&6; }
30463
30464 # Is the header present?
30465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30467 cat >conftest.$ac_ext <<_ACEOF
30468 /* confdefs.h.  */
30469 _ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h.  */
30473 #include <$ac_header>
30474 _ACEOF
30475 if { (ac_try="$ac_cpp conftest.$ac_ext"
30476 case "(($ac_try" in
30477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478   *) ac_try_echo=$ac_try;;
30479 esac
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30482   ac_status=$?
30483   grep -v '^ *+' conftest.er1 >conftest.err
30484   rm -f conftest.er1
30485   cat conftest.err >&5
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); } >/dev/null; then
30488   if test -s conftest.err; then
30489     ac_cpp_err=$ac_c_preproc_warn_flag
30490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30491   else
30492     ac_cpp_err=
30493   fi
30494 else
30495   ac_cpp_err=yes
30496 fi
30497 if test -z "$ac_cpp_err"; then
30498   ac_header_preproc=yes
30499 else
30500   echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30502
30503   ac_header_preproc=no
30504 fi
30505
30506 rm -f conftest.err conftest.$ac_ext
30507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30508 echo "${ECHO_T}$ac_header_preproc" >&6; }
30509
30510 # So?  What about this header?
30511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30512   yes:no: )
30513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30517     ac_header_preproc=yes
30518     ;;
30519   no:yes:* )
30520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30532     ( cat <<\_ASBOX
30533 ## ----------------------------------- ##
30534 ## Report this to llvmbugs@cs.uiuc.edu ##
30535 ## ----------------------------------- ##
30536 _ASBOX
30537      ) | sed "s/^/$as_me: WARNING:     /" >&2
30538     ;;
30539 esac
30540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30543   echo $ECHO_N "(cached) $ECHO_C" >&6
30544 else
30545   eval "$as_ac_Header=\$ac_header_preproc"
30546 fi
30547 ac_res=`eval echo '${'$as_ac_Header'}'`
30548                { echo "$as_me:$LINENO: result: $ac_res" >&5
30549 echo "${ECHO_T}$ac_res" >&6; }
30550
30551 fi
30552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30553   cat >>confdefs.h <<_ACEOF
30554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30555 _ACEOF
30556
30557 fi
30558
30559 done
30560
30561
30562
30563
30564
30565 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30566 do
30567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30569   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30572   echo $ECHO_N "(cached) $ECHO_C" >&6
30573 fi
30574 ac_res=`eval echo '${'$as_ac_Header'}'`
30575                { echo "$as_me:$LINENO: result: $ac_res" >&5
30576 echo "${ECHO_T}$ac_res" >&6; }
30577 else
30578   # Is the header compilable?
30579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30581 cat >conftest.$ac_ext <<_ACEOF
30582 /* confdefs.h.  */
30583 _ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h.  */
30587 $ac_includes_default
30588 #include <$ac_header>
30589 _ACEOF
30590 rm -f conftest.$ac_objext
30591 if { (ac_try="$ac_compile"
30592 case "(($ac_try" in
30593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594   *) ac_try_echo=$ac_try;;
30595 esac
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597   (eval "$ac_compile") 2>conftest.er1
30598   ac_status=$?
30599   grep -v '^ *+' conftest.er1 >conftest.err
30600   rm -f conftest.er1
30601   cat conftest.err >&5
30602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603   (exit $ac_status); } &&
30604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30605   { (case "(($ac_try" in
30606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607   *) ac_try_echo=$ac_try;;
30608 esac
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610   (eval "$ac_try") 2>&5
30611   ac_status=$?
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); }; } &&
30614          { ac_try='test -s conftest.$ac_objext'
30615   { (case "(($ac_try" in
30616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617   *) ac_try_echo=$ac_try;;
30618 esac
30619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620   (eval "$ac_try") 2>&5
30621   ac_status=$?
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); }; }; then
30624   ac_header_compiler=yes
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629         ac_header_compiler=no
30630 fi
30631
30632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30634 echo "${ECHO_T}$ac_header_compiler" >&6; }
30635
30636 # Is the header present?
30637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30639 cat >conftest.$ac_ext <<_ACEOF
30640 /* confdefs.h.  */
30641 _ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h.  */
30645 #include <$ac_header>
30646 _ACEOF
30647 if { (ac_try="$ac_cpp conftest.$ac_ext"
30648 case "(($ac_try" in
30649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650   *) ac_try_echo=$ac_try;;
30651 esac
30652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30654   ac_status=$?
30655   grep -v '^ *+' conftest.er1 >conftest.err
30656   rm -f conftest.er1
30657   cat conftest.err >&5
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); } >/dev/null; then
30660   if test -s conftest.err; then
30661     ac_cpp_err=$ac_c_preproc_warn_flag
30662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30663   else
30664     ac_cpp_err=
30665   fi
30666 else
30667   ac_cpp_err=yes
30668 fi
30669 if test -z "$ac_cpp_err"; then
30670   ac_header_preproc=yes
30671 else
30672   echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30674
30675   ac_header_preproc=no
30676 fi
30677
30678 rm -f conftest.err conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30680 echo "${ECHO_T}$ac_header_preproc" >&6; }
30681
30682 # So?  What about this header?
30683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30684   yes:no: )
30685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30689     ac_header_preproc=yes
30690     ;;
30691   no:yes:* )
30692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30704     ( cat <<\_ASBOX
30705 ## ----------------------------------- ##
30706 ## Report this to llvmbugs@cs.uiuc.edu ##
30707 ## ----------------------------------- ##
30708 _ASBOX
30709      ) | sed "s/^/$as_me: WARNING:     /" >&2
30710     ;;
30711 esac
30712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30715   echo $ECHO_N "(cached) $ECHO_C" >&6
30716 else
30717   eval "$as_ac_Header=\$ac_header_preproc"
30718 fi
30719 ac_res=`eval echo '${'$as_ac_Header'}'`
30720                { echo "$as_me:$LINENO: result: $ac_res" >&5
30721 echo "${ECHO_T}$ac_res" >&6; }
30722
30723 fi
30724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30725   cat >>confdefs.h <<_ACEOF
30726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30727 _ACEOF
30728
30729 fi
30730
30731 done
30732
30733 if test "$ENABLE_THREADS" -eq 1 ; then
30734
30735 for ac_header in pthread.h
30736 do
30737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30739   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742   echo $ECHO_N "(cached) $ECHO_C" >&6
30743 fi
30744 ac_res=`eval echo '${'$as_ac_Header'}'`
30745                { echo "$as_me:$LINENO: result: $ac_res" >&5
30746 echo "${ECHO_T}$ac_res" >&6; }
30747 else
30748   # Is the header compilable?
30749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30751 cat >conftest.$ac_ext <<_ACEOF
30752 /* confdefs.h.  */
30753 _ACEOF
30754 cat confdefs.h >>conftest.$ac_ext
30755 cat >>conftest.$ac_ext <<_ACEOF
30756 /* end confdefs.h.  */
30757 $ac_includes_default
30758 #include <$ac_header>
30759 _ACEOF
30760 rm -f conftest.$ac_objext
30761 if { (ac_try="$ac_compile"
30762 case "(($ac_try" in
30763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764   *) ac_try_echo=$ac_try;;
30765 esac
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767   (eval "$ac_compile") 2>conftest.er1
30768   ac_status=$?
30769   grep -v '^ *+' conftest.er1 >conftest.err
30770   rm -f conftest.er1
30771   cat conftest.err >&5
30772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773   (exit $ac_status); } &&
30774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30775   { (case "(($ac_try" in
30776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777   *) ac_try_echo=$ac_try;;
30778 esac
30779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780   (eval "$ac_try") 2>&5
30781   ac_status=$?
30782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783   (exit $ac_status); }; } &&
30784          { ac_try='test -s conftest.$ac_objext'
30785   { (case "(($ac_try" in
30786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787   *) ac_try_echo=$ac_try;;
30788 esac
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790   (eval "$ac_try") 2>&5
30791   ac_status=$?
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); }; }; then
30794   ac_header_compiler=yes
30795 else
30796   echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30798
30799         ac_header_compiler=no
30800 fi
30801
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30804 echo "${ECHO_T}$ac_header_compiler" >&6; }
30805
30806 # Is the header present?
30807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30809 cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815 #include <$ac_header>
30816 _ACEOF
30817 if { (ac_try="$ac_cpp conftest.$ac_ext"
30818 case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30824   ac_status=$?
30825   grep -v '^ *+' conftest.er1 >conftest.err
30826   rm -f conftest.er1
30827   cat conftest.err >&5
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); } >/dev/null; then
30830   if test -s conftest.err; then
30831     ac_cpp_err=$ac_c_preproc_warn_flag
30832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30833   else
30834     ac_cpp_err=
30835   fi
30836 else
30837   ac_cpp_err=yes
30838 fi
30839 if test -z "$ac_cpp_err"; then
30840   ac_header_preproc=yes
30841 else
30842   echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30844
30845   ac_header_preproc=no
30846 fi
30847
30848 rm -f conftest.err conftest.$ac_ext
30849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30850 echo "${ECHO_T}$ac_header_preproc" >&6; }
30851
30852 # So?  What about this header?
30853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30854   yes:no: )
30855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30859     ac_header_preproc=yes
30860     ;;
30861   no:yes:* )
30862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30874     ( cat <<\_ASBOX
30875 ## ----------------------------------- ##
30876 ## Report this to llvmbugs@cs.uiuc.edu ##
30877 ## ----------------------------------- ##
30878 _ASBOX
30879      ) | sed "s/^/$as_me: WARNING:     /" >&2
30880     ;;
30881 esac
30882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30885   echo $ECHO_N "(cached) $ECHO_C" >&6
30886 else
30887   eval "$as_ac_Header=\$ac_header_preproc"
30888 fi
30889 ac_res=`eval echo '${'$as_ac_Header'}'`
30890                { echo "$as_me:$LINENO: result: $ac_res" >&5
30891 echo "${ECHO_T}$ac_res" >&6; }
30892
30893 fi
30894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30895   cat >>confdefs.h <<_ACEOF
30896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30897 _ACEOF
30898  HAVE_PTHREAD=1
30899
30900 else
30901   HAVE_PTHREAD=0
30902
30903 fi
30904
30905 done
30906
30907 else
30908   HAVE_PTHREAD=0
30909
30910 fi
30911
30912 if test "$llvm_cv_enable_libffi" = "yes" ; then
30913
30914
30915 for ac_header in ffi.h ffi/ffi.h
30916 do
30917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30922   echo $ECHO_N "(cached) $ECHO_C" >&6
30923 fi
30924 ac_res=`eval echo '${'$as_ac_Header'}'`
30925                { echo "$as_me:$LINENO: result: $ac_res" >&5
30926 echo "${ECHO_T}$ac_res" >&6; }
30927 else
30928   # Is the header compilable?
30929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30931 cat >conftest.$ac_ext <<_ACEOF
30932 /* confdefs.h.  */
30933 _ACEOF
30934 cat confdefs.h >>conftest.$ac_ext
30935 cat >>conftest.$ac_ext <<_ACEOF
30936 /* end confdefs.h.  */
30937 $ac_includes_default
30938 #include <$ac_header>
30939 _ACEOF
30940 rm -f conftest.$ac_objext
30941 if { (ac_try="$ac_compile"
30942 case "(($ac_try" in
30943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944   *) ac_try_echo=$ac_try;;
30945 esac
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947   (eval "$ac_compile") 2>conftest.er1
30948   ac_status=$?
30949   grep -v '^ *+' conftest.er1 >conftest.err
30950   rm -f conftest.er1
30951   cat conftest.err >&5
30952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953   (exit $ac_status); } &&
30954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30955   { (case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_try") 2>&5
30961   ac_status=$?
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); }; } &&
30964          { ac_try='test -s conftest.$ac_objext'
30965   { (case "(($ac_try" in
30966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967   *) ac_try_echo=$ac_try;;
30968 esac
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970   (eval "$ac_try") 2>&5
30971   ac_status=$?
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); }; }; then
30974   ac_header_compiler=yes
30975 else
30976   echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30978
30979         ac_header_compiler=no
30980 fi
30981
30982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30984 echo "${ECHO_T}$ac_header_compiler" >&6; }
30985
30986 # Is the header present?
30987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30989 cat >conftest.$ac_ext <<_ACEOF
30990 /* confdefs.h.  */
30991 _ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h.  */
30995 #include <$ac_header>
30996 _ACEOF
30997 if { (ac_try="$ac_cpp conftest.$ac_ext"
30998 case "(($ac_try" in
30999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000   *) ac_try_echo=$ac_try;;
31001 esac
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31004   ac_status=$?
31005   grep -v '^ *+' conftest.er1 >conftest.err
31006   rm -f conftest.er1
31007   cat conftest.err >&5
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); } >/dev/null; then
31010   if test -s conftest.err; then
31011     ac_cpp_err=$ac_c_preproc_warn_flag
31012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31013   else
31014     ac_cpp_err=
31015   fi
31016 else
31017   ac_cpp_err=yes
31018 fi
31019 if test -z "$ac_cpp_err"; then
31020   ac_header_preproc=yes
31021 else
31022   echo "$as_me: failed program was:" >&5
31023 sed 's/^/| /' conftest.$ac_ext >&5
31024
31025   ac_header_preproc=no
31026 fi
31027
31028 rm -f conftest.err conftest.$ac_ext
31029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31030 echo "${ECHO_T}$ac_header_preproc" >&6; }
31031
31032 # So?  What about this header?
31033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31034   yes:no: )
31035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31039     ac_header_preproc=yes
31040     ;;
31041   no:yes:* )
31042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31054     ( cat <<\_ASBOX
31055 ## ----------------------------------- ##
31056 ## Report this to llvmbugs@cs.uiuc.edu ##
31057 ## ----------------------------------- ##
31058 _ASBOX
31059      ) | sed "s/^/$as_me: WARNING:     /" >&2
31060     ;;
31061 esac
31062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31065   echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067   eval "$as_ac_Header=\$ac_header_preproc"
31068 fi
31069 ac_res=`eval echo '${'$as_ac_Header'}'`
31070                { echo "$as_me:$LINENO: result: $ac_res" >&5
31071 echo "${ECHO_T}$ac_res" >&6; }
31072
31073 fi
31074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31075   cat >>confdefs.h <<_ACEOF
31076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31077 _ACEOF
31078
31079 fi
31080
31081 done
31082
31083 fi
31084
31085
31086
31087   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31088 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31089 if test "${ac_cv_huge_val_sanity+set}" = set; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092
31093     ac_ext=cpp
31094 ac_cpp='$CXXCPP $CPPFLAGS'
31095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31098
31099     CXXFLAGS=-pedantic
31100     if test "$cross_compiling" = yes; then
31101   ac_cv_huge_val_sanity=yes
31102 else
31103   cat >conftest.$ac_ext <<_ACEOF
31104 /* confdefs.h.  */
31105 _ACEOF
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h.  */
31109 #include <math.h>
31110 int
31111 main ()
31112 {
31113 double x = HUGE_VAL; return x != x;
31114   ;
31115   return 0;
31116 }
31117 _ACEOF
31118 rm -f conftest$ac_exeext
31119 if { (ac_try="$ac_link"
31120 case "(($ac_try" in
31121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122   *) ac_try_echo=$ac_try;;
31123 esac
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125   (eval "$ac_link") 2>&5
31126   ac_status=$?
31127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31129   { (case "(($ac_try" in
31130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131   *) ac_try_echo=$ac_try;;
31132 esac
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134   (eval "$ac_try") 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); }; }; then
31138   ac_cv_huge_val_sanity=yes
31139 else
31140   echo "$as_me: program exited with status $ac_status" >&5
31141 echo "$as_me: failed program was:" >&5
31142 sed 's/^/| /' conftest.$ac_ext >&5
31143
31144 ( exit $ac_status )
31145 ac_cv_huge_val_sanity=no
31146 fi
31147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31148 fi
31149
31150
31151     ac_ext=c
31152 ac_cpp='$CPP $CPPFLAGS'
31153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31156
31157
31158 fi
31159 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31160 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31161   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31162
31163
31164 { echo "$as_me:$LINENO: checking for pid_t" >&5
31165 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31166 if test "${ac_cv_type_pid_t+set}" = set; then
31167   echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169   cat >conftest.$ac_ext <<_ACEOF
31170 /* confdefs.h.  */
31171 _ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h.  */
31175 $ac_includes_default
31176 typedef pid_t ac__type_new_;
31177 int
31178 main ()
31179 {
31180 if ((ac__type_new_ *) 0)
31181   return 0;
31182 if (sizeof (ac__type_new_))
31183   return 0;
31184   ;
31185   return 0;
31186 }
31187 _ACEOF
31188 rm -f conftest.$ac_objext
31189 if { (ac_try="$ac_compile"
31190 case "(($ac_try" in
31191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192   *) ac_try_echo=$ac_try;;
31193 esac
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195   (eval "$ac_compile") 2>conftest.er1
31196   ac_status=$?
31197   grep -v '^ *+' conftest.er1 >conftest.err
31198   rm -f conftest.er1
31199   cat conftest.err >&5
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); } &&
31202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203   { (case "(($ac_try" in
31204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205   *) ac_try_echo=$ac_try;;
31206 esac
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208   (eval "$ac_try") 2>&5
31209   ac_status=$?
31210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211   (exit $ac_status); }; } &&
31212          { ac_try='test -s conftest.$ac_objext'
31213   { (case "(($ac_try" in
31214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215   *) ac_try_echo=$ac_try;;
31216 esac
31217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218   (eval "$ac_try") 2>&5
31219   ac_status=$?
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); }; }; then
31222   ac_cv_type_pid_t=yes
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227         ac_cv_type_pid_t=no
31228 fi
31229
31230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31231 fi
31232 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31233 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31234 if test $ac_cv_type_pid_t = yes; then
31235   :
31236 else
31237
31238 cat >>confdefs.h <<_ACEOF
31239 #define pid_t int
31240 _ACEOF
31241
31242 fi
31243
31244 { echo "$as_me:$LINENO: checking for size_t" >&5
31245 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31246 if test "${ac_cv_type_size_t+set}" = set; then
31247   echo $ECHO_N "(cached) $ECHO_C" >&6
31248 else
31249   cat >conftest.$ac_ext <<_ACEOF
31250 /* confdefs.h.  */
31251 _ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h.  */
31255 $ac_includes_default
31256 typedef size_t ac__type_new_;
31257 int
31258 main ()
31259 {
31260 if ((ac__type_new_ *) 0)
31261   return 0;
31262 if (sizeof (ac__type_new_))
31263   return 0;
31264   ;
31265   return 0;
31266 }
31267 _ACEOF
31268 rm -f conftest.$ac_objext
31269 if { (ac_try="$ac_compile"
31270 case "(($ac_try" in
31271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31272   *) ac_try_echo=$ac_try;;
31273 esac
31274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31275   (eval "$ac_compile") 2>conftest.er1
31276   ac_status=$?
31277   grep -v '^ *+' conftest.er1 >conftest.err
31278   rm -f conftest.er1
31279   cat conftest.err >&5
31280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281   (exit $ac_status); } &&
31282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31283   { (case "(($ac_try" in
31284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285   *) ac_try_echo=$ac_try;;
31286 esac
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288   (eval "$ac_try") 2>&5
31289   ac_status=$?
31290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291   (exit $ac_status); }; } &&
31292          { ac_try='test -s conftest.$ac_objext'
31293   { (case "(($ac_try" in
31294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295   *) ac_try_echo=$ac_try;;
31296 esac
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298   (eval "$ac_try") 2>&5
31299   ac_status=$?
31300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301   (exit $ac_status); }; }; then
31302   ac_cv_type_size_t=yes
31303 else
31304   echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31306
31307         ac_cv_type_size_t=no
31308 fi
31309
31310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31311 fi
31312 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31313 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31314 if test $ac_cv_type_size_t = yes; then
31315   :
31316 else
31317
31318 cat >>confdefs.h <<_ACEOF
31319 #define size_t unsigned int
31320 _ACEOF
31321
31322 fi
31323
31324 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31325 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31326 if test "${ac_cv_type_signal+set}" = set; then
31327   echo $ECHO_N "(cached) $ECHO_C" >&6
31328 else
31329   cat >conftest.$ac_ext <<_ACEOF
31330 /* confdefs.h.  */
31331 _ACEOF
31332 cat confdefs.h >>conftest.$ac_ext
31333 cat >>conftest.$ac_ext <<_ACEOF
31334 /* end confdefs.h.  */
31335 #include <sys/types.h>
31336 #include <signal.h>
31337
31338 int
31339 main ()
31340 {
31341 return *(signal (0, 0)) (0) == 1;
31342   ;
31343   return 0;
31344 }
31345 _ACEOF
31346 rm -f conftest.$ac_objext
31347 if { (ac_try="$ac_compile"
31348 case "(($ac_try" in
31349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350   *) ac_try_echo=$ac_try;;
31351 esac
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353   (eval "$ac_compile") 2>conftest.er1
31354   ac_status=$?
31355   grep -v '^ *+' conftest.er1 >conftest.err
31356   rm -f conftest.er1
31357   cat conftest.err >&5
31358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359   (exit $ac_status); } &&
31360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31361   { (case "(($ac_try" in
31362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363   *) ac_try_echo=$ac_try;;
31364 esac
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366   (eval "$ac_try") 2>&5
31367   ac_status=$?
31368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369   (exit $ac_status); }; } &&
31370          { ac_try='test -s conftest.$ac_objext'
31371   { (case "(($ac_try" in
31372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373   *) ac_try_echo=$ac_try;;
31374 esac
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376   (eval "$ac_try") 2>&5
31377   ac_status=$?
31378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379   (exit $ac_status); }; }; then
31380   ac_cv_type_signal=int
31381 else
31382   echo "$as_me: failed program was:" >&5
31383 sed 's/^/| /' conftest.$ac_ext >&5
31384
31385         ac_cv_type_signal=void
31386 fi
31387
31388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31389 fi
31390 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31391 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31392
31393 cat >>confdefs.h <<_ACEOF
31394 #define RETSIGTYPE $ac_cv_type_signal
31395 _ACEOF
31396
31397
31398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31400 if test "${ac_cv_struct_tm+set}" = set; then
31401   echo $ECHO_N "(cached) $ECHO_C" >&6
31402 else
31403   cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h.  */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h.  */
31409 #include <sys/types.h>
31410 #include <time.h>
31411
31412 int
31413 main ()
31414 {
31415 struct tm *tp; tp->tm_sec;
31416   ;
31417   return 0;
31418 }
31419 _ACEOF
31420 rm -f conftest.$ac_objext
31421 if { (ac_try="$ac_compile"
31422 case "(($ac_try" in
31423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424   *) ac_try_echo=$ac_try;;
31425 esac
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427   (eval "$ac_compile") 2>conftest.er1
31428   ac_status=$?
31429   grep -v '^ *+' conftest.er1 >conftest.err
31430   rm -f conftest.er1
31431   cat conftest.err >&5
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); } &&
31434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31435   { (case "(($ac_try" in
31436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437   *) ac_try_echo=$ac_try;;
31438 esac
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440   (eval "$ac_try") 2>&5
31441   ac_status=$?
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); }; } &&
31444          { ac_try='test -s conftest.$ac_objext'
31445   { (case "(($ac_try" in
31446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447   *) ac_try_echo=$ac_try;;
31448 esac
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450   (eval "$ac_try") 2>&5
31451   ac_status=$?
31452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453   (exit $ac_status); }; }; then
31454   ac_cv_struct_tm=time.h
31455 else
31456   echo "$as_me: failed program was:" >&5
31457 sed 's/^/| /' conftest.$ac_ext >&5
31458
31459         ac_cv_struct_tm=sys/time.h
31460 fi
31461
31462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31463 fi
31464 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31465 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31466 if test $ac_cv_struct_tm = sys/time.h; then
31467
31468 cat >>confdefs.h <<\_ACEOF
31469 #define TM_IN_SYS_TIME 1
31470 _ACEOF
31471
31472 fi
31473
31474 { echo "$as_me:$LINENO: checking for int64_t" >&5
31475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31476 if test "${ac_cv_type_int64_t+set}" = set; then
31477   echo $ECHO_N "(cached) $ECHO_C" >&6
31478 else
31479   cat >conftest.$ac_ext <<_ACEOF
31480 /* confdefs.h.  */
31481 _ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h.  */
31485 $ac_includes_default
31486 typedef int64_t ac__type_new_;
31487 int
31488 main ()
31489 {
31490 if ((ac__type_new_ *) 0)
31491   return 0;
31492 if (sizeof (ac__type_new_))
31493   return 0;
31494   ;
31495   return 0;
31496 }
31497 _ACEOF
31498 rm -f conftest.$ac_objext
31499 if { (ac_try="$ac_compile"
31500 case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505   (eval "$ac_compile") 2>conftest.er1
31506   ac_status=$?
31507   grep -v '^ *+' conftest.er1 >conftest.err
31508   rm -f conftest.er1
31509   cat conftest.err >&5
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); } &&
31512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31513   { (case "(($ac_try" in
31514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515   *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518   (eval "$ac_try") 2>&5
31519   ac_status=$?
31520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521   (exit $ac_status); }; } &&
31522          { ac_try='test -s conftest.$ac_objext'
31523   { (case "(($ac_try" in
31524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525   *) ac_try_echo=$ac_try;;
31526 esac
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528   (eval "$ac_try") 2>&5
31529   ac_status=$?
31530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531   (exit $ac_status); }; }; then
31532   ac_cv_type_int64_t=yes
31533 else
31534   echo "$as_me: failed program was:" >&5
31535 sed 's/^/| /' conftest.$ac_ext >&5
31536
31537         ac_cv_type_int64_t=no
31538 fi
31539
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541 fi
31542 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31544 if test $ac_cv_type_int64_t = yes; then
31545
31546 cat >>confdefs.h <<_ACEOF
31547 #define HAVE_INT64_T 1
31548 _ACEOF
31549
31550
31551 else
31552   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31553 echo "$as_me: error: Type int64_t required but not found" >&2;}
31554    { (exit 1); exit 1; }; }
31555 fi
31556
31557 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31559 if test "${ac_cv_type_uint64_t+set}" = set; then
31560   echo $ECHO_N "(cached) $ECHO_C" >&6
31561 else
31562   cat >conftest.$ac_ext <<_ACEOF
31563 /* confdefs.h.  */
31564 _ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h.  */
31568 $ac_includes_default
31569 typedef uint64_t ac__type_new_;
31570 int
31571 main ()
31572 {
31573 if ((ac__type_new_ *) 0)
31574   return 0;
31575 if (sizeof (ac__type_new_))
31576   return 0;
31577   ;
31578   return 0;
31579 }
31580 _ACEOF
31581 rm -f conftest.$ac_objext
31582 if { (ac_try="$ac_compile"
31583 case "(($ac_try" in
31584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585   *) ac_try_echo=$ac_try;;
31586 esac
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588   (eval "$ac_compile") 2>conftest.er1
31589   ac_status=$?
31590   grep -v '^ *+' conftest.er1 >conftest.err
31591   rm -f conftest.er1
31592   cat conftest.err >&5
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); } &&
31595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31596   { (case "(($ac_try" in
31597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598   *) ac_try_echo=$ac_try;;
31599 esac
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601   (eval "$ac_try") 2>&5
31602   ac_status=$?
31603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604   (exit $ac_status); }; } &&
31605          { ac_try='test -s conftest.$ac_objext'
31606   { (case "(($ac_try" in
31607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608   *) ac_try_echo=$ac_try;;
31609 esac
31610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611   (eval "$ac_try") 2>&5
31612   ac_status=$?
31613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614   (exit $ac_status); }; }; then
31615   ac_cv_type_uint64_t=yes
31616 else
31617   echo "$as_me: failed program was:" >&5
31618 sed 's/^/| /' conftest.$ac_ext >&5
31619
31620         ac_cv_type_uint64_t=no
31621 fi
31622
31623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31624 fi
31625 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31626 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31627 if test $ac_cv_type_uint64_t = yes; then
31628
31629 cat >>confdefs.h <<_ACEOF
31630 #define HAVE_UINT64_T 1
31631 _ACEOF
31632
31633
31634 else
31635   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31636 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31637 if test "${ac_cv_type_u_int64_t+set}" = set; then
31638   echo $ECHO_N "(cached) $ECHO_C" >&6
31639 else
31640   cat >conftest.$ac_ext <<_ACEOF
31641 /* confdefs.h.  */
31642 _ACEOF
31643 cat confdefs.h >>conftest.$ac_ext
31644 cat >>conftest.$ac_ext <<_ACEOF
31645 /* end confdefs.h.  */
31646 $ac_includes_default
31647 typedef u_int64_t ac__type_new_;
31648 int
31649 main ()
31650 {
31651 if ((ac__type_new_ *) 0)
31652   return 0;
31653 if (sizeof (ac__type_new_))
31654   return 0;
31655   ;
31656   return 0;
31657 }
31658 _ACEOF
31659 rm -f conftest.$ac_objext
31660 if { (ac_try="$ac_compile"
31661 case "(($ac_try" in
31662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663   *) ac_try_echo=$ac_try;;
31664 esac
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666   (eval "$ac_compile") 2>conftest.er1
31667   ac_status=$?
31668   grep -v '^ *+' conftest.er1 >conftest.err
31669   rm -f conftest.er1
31670   cat conftest.err >&5
31671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672   (exit $ac_status); } &&
31673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31674   { (case "(($ac_try" in
31675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676   *) ac_try_echo=$ac_try;;
31677 esac
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679   (eval "$ac_try") 2>&5
31680   ac_status=$?
31681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682   (exit $ac_status); }; } &&
31683          { ac_try='test -s conftest.$ac_objext'
31684   { (case "(($ac_try" in
31685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686   *) ac_try_echo=$ac_try;;
31687 esac
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689   (eval "$ac_try") 2>&5
31690   ac_status=$?
31691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692   (exit $ac_status); }; }; then
31693   ac_cv_type_u_int64_t=yes
31694 else
31695   echo "$as_me: failed program was:" >&5
31696 sed 's/^/| /' conftest.$ac_ext >&5
31697
31698         ac_cv_type_u_int64_t=no
31699 fi
31700
31701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31702 fi
31703 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31705 if test $ac_cv_type_u_int64_t = yes; then
31706
31707 cat >>confdefs.h <<_ACEOF
31708 #define HAVE_U_INT64_T 1
31709 _ACEOF
31710
31711
31712 else
31713   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31714 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31715    { (exit 1); exit 1; }; }
31716 fi
31717
31718 fi
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31730 do
31731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31735   echo $ECHO_N "(cached) $ECHO_C" >&6
31736 else
31737   cat >conftest.$ac_ext <<_ACEOF
31738 /* confdefs.h.  */
31739 _ACEOF
31740 cat confdefs.h >>conftest.$ac_ext
31741 cat >>conftest.$ac_ext <<_ACEOF
31742 /* end confdefs.h.  */
31743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31745 #define $ac_func innocuous_$ac_func
31746
31747 /* System header to define __stub macros and hopefully few prototypes,
31748     which can conflict with char $ac_func (); below.
31749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31750     <limits.h> exists even on freestanding compilers.  */
31751
31752 #ifdef __STDC__
31753 # include <limits.h>
31754 #else
31755 # include <assert.h>
31756 #endif
31757
31758 #undef $ac_func
31759
31760 /* Override any GCC internal prototype to avoid an error.
31761    Use char because int might match the return type of a GCC
31762    builtin and then its argument prototype would still apply.  */
31763 #ifdef __cplusplus
31764 extern "C"
31765 #endif
31766 char $ac_func ();
31767 /* The GNU C library defines this for functions which it implements
31768     to always fail with ENOSYS.  Some functions are actually named
31769     something starting with __ and the normal name is an alias.  */
31770 #if defined __stub_$ac_func || defined __stub___$ac_func
31771 choke me
31772 #endif
31773
31774 int
31775 main ()
31776 {
31777 return $ac_func ();
31778   ;
31779   return 0;
31780 }
31781 _ACEOF
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (ac_try="$ac_link"
31784 case "(($ac_try" in
31785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31786   *) ac_try_echo=$ac_try;;
31787 esac
31788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31789   (eval "$ac_link") 2>conftest.er1
31790   ac_status=$?
31791   grep -v '^ *+' conftest.er1 >conftest.err
31792   rm -f conftest.er1
31793   cat conftest.err >&5
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); } &&
31796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31797   { (case "(($ac_try" in
31798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799   *) ac_try_echo=$ac_try;;
31800 esac
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802   (eval "$ac_try") 2>&5
31803   ac_status=$?
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); }; } &&
31806          { ac_try='test -s conftest$ac_exeext'
31807   { (case "(($ac_try" in
31808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809   *) ac_try_echo=$ac_try;;
31810 esac
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812   (eval "$ac_try") 2>&5
31813   ac_status=$?
31814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815   (exit $ac_status); }; }; then
31816   eval "$as_ac_var=yes"
31817 else
31818   echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31820
31821         eval "$as_ac_var=no"
31822 fi
31823
31824 rm -f core conftest.err conftest.$ac_objext \
31825       conftest$ac_exeext conftest.$ac_ext
31826 fi
31827 ac_res=`eval echo '${'$as_ac_var'}'`
31828                { echo "$as_me:$LINENO: result: $ac_res" >&5
31829 echo "${ECHO_T}$ac_res" >&6; }
31830 if test `eval echo '${'$as_ac_var'}'` = yes; then
31831   cat >>confdefs.h <<_ACEOF
31832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31833 _ACEOF
31834
31835 fi
31836 done
31837
31838
31839
31840
31841
31842 for ac_func in powf fmodf strtof round
31843 do
31844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31848   echo $ECHO_N "(cached) $ECHO_C" >&6
31849 else
31850   cat >conftest.$ac_ext <<_ACEOF
31851 /* confdefs.h.  */
31852 _ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h.  */
31856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31858 #define $ac_func innocuous_$ac_func
31859
31860 /* System header to define __stub macros and hopefully few prototypes,
31861     which can conflict with char $ac_func (); below.
31862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31863     <limits.h> exists even on freestanding compilers.  */
31864
31865 #ifdef __STDC__
31866 # include <limits.h>
31867 #else
31868 # include <assert.h>
31869 #endif
31870
31871 #undef $ac_func
31872
31873 /* Override any GCC internal prototype to avoid an error.
31874    Use char because int might match the return type of a GCC
31875    builtin and then its argument prototype would still apply.  */
31876 #ifdef __cplusplus
31877 extern "C"
31878 #endif
31879 char $ac_func ();
31880 /* The GNU C library defines this for functions which it implements
31881     to always fail with ENOSYS.  Some functions are actually named
31882     something starting with __ and the normal name is an alias.  */
31883 #if defined __stub_$ac_func || defined __stub___$ac_func
31884 choke me
31885 #endif
31886
31887 int
31888 main ()
31889 {
31890 return $ac_func ();
31891   ;
31892   return 0;
31893 }
31894 _ACEOF
31895 rm -f conftest.$ac_objext conftest$ac_exeext
31896 if { (ac_try="$ac_link"
31897 case "(($ac_try" in
31898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899   *) ac_try_echo=$ac_try;;
31900 esac
31901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902   (eval "$ac_link") 2>conftest.er1
31903   ac_status=$?
31904   grep -v '^ *+' conftest.er1 >conftest.err
31905   rm -f conftest.er1
31906   cat conftest.err >&5
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); } &&
31909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31910   { (case "(($ac_try" in
31911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912   *) ac_try_echo=$ac_try;;
31913 esac
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915   (eval "$ac_try") 2>&5
31916   ac_status=$?
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); }; } &&
31919          { ac_try='test -s conftest$ac_exeext'
31920   { (case "(($ac_try" in
31921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922   *) ac_try_echo=$ac_try;;
31923 esac
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925   (eval "$ac_try") 2>&5
31926   ac_status=$?
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); }; }; then
31929   eval "$as_ac_var=yes"
31930 else
31931   echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31933
31934         eval "$as_ac_var=no"
31935 fi
31936
31937 rm -f core conftest.err conftest.$ac_objext \
31938       conftest$ac_exeext conftest.$ac_ext
31939 fi
31940 ac_res=`eval echo '${'$as_ac_var'}'`
31941                { echo "$as_me:$LINENO: result: $ac_res" >&5
31942 echo "${ECHO_T}$ac_res" >&6; }
31943 if test `eval echo '${'$as_ac_var'}'` = yes; then
31944   cat >>confdefs.h <<_ACEOF
31945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31946 _ACEOF
31947
31948 fi
31949 done
31950
31951
31952
31953
31954
31955
31956 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31957 do
31958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31962   echo $ECHO_N "(cached) $ECHO_C" >&6
31963 else
31964   cat >conftest.$ac_ext <<_ACEOF
31965 /* confdefs.h.  */
31966 _ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h.  */
31970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31972 #define $ac_func innocuous_$ac_func
31973
31974 /* System header to define __stub macros and hopefully few prototypes,
31975     which can conflict with char $ac_func (); below.
31976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31977     <limits.h> exists even on freestanding compilers.  */
31978
31979 #ifdef __STDC__
31980 # include <limits.h>
31981 #else
31982 # include <assert.h>
31983 #endif
31984
31985 #undef $ac_func
31986
31987 /* Override any GCC internal prototype to avoid an error.
31988    Use char because int might match the return type of a GCC
31989    builtin and then its argument prototype would still apply.  */
31990 #ifdef __cplusplus
31991 extern "C"
31992 #endif
31993 char $ac_func ();
31994 /* The GNU C library defines this for functions which it implements
31995     to always fail with ENOSYS.  Some functions are actually named
31996     something starting with __ and the normal name is an alias.  */
31997 #if defined __stub_$ac_func || defined __stub___$ac_func
31998 choke me
31999 #endif
32000
32001 int
32002 main ()
32003 {
32004 return $ac_func ();
32005   ;
32006   return 0;
32007 }
32008 _ACEOF
32009 rm -f conftest.$ac_objext conftest$ac_exeext
32010 if { (ac_try="$ac_link"
32011 case "(($ac_try" in
32012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013   *) ac_try_echo=$ac_try;;
32014 esac
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016   (eval "$ac_link") 2>conftest.er1
32017   ac_status=$?
32018   grep -v '^ *+' conftest.er1 >conftest.err
32019   rm -f conftest.er1
32020   cat conftest.err >&5
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); } &&
32023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32024   { (case "(($ac_try" in
32025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026   *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029   (eval "$ac_try") 2>&5
32030   ac_status=$?
32031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); }; } &&
32033          { ac_try='test -s conftest$ac_exeext'
32034   { (case "(($ac_try" in
32035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036   *) ac_try_echo=$ac_try;;
32037 esac
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039   (eval "$ac_try") 2>&5
32040   ac_status=$?
32041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); }; }; then
32043   eval "$as_ac_var=yes"
32044 else
32045   echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32047
32048         eval "$as_ac_var=no"
32049 fi
32050
32051 rm -f core conftest.err conftest.$ac_objext \
32052       conftest$ac_exeext conftest.$ac_ext
32053 fi
32054 ac_res=`eval echo '${'$as_ac_var'}'`
32055                { echo "$as_me:$LINENO: result: $ac_res" >&5
32056 echo "${ECHO_T}$ac_res" >&6; }
32057 if test `eval echo '${'$as_ac_var'}'` = yes; then
32058   cat >>confdefs.h <<_ACEOF
32059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32060 _ACEOF
32061
32062 fi
32063 done
32064
32065
32066
32067
32068 for ac_func in isatty mkdtemp mkstemp
32069 do
32070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32074   echo $ECHO_N "(cached) $ECHO_C" >&6
32075 else
32076   cat >conftest.$ac_ext <<_ACEOF
32077 /* confdefs.h.  */
32078 _ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h.  */
32082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32084 #define $ac_func innocuous_$ac_func
32085
32086 /* System header to define __stub macros and hopefully few prototypes,
32087     which can conflict with char $ac_func (); below.
32088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32089     <limits.h> exists even on freestanding compilers.  */
32090
32091 #ifdef __STDC__
32092 # include <limits.h>
32093 #else
32094 # include <assert.h>
32095 #endif
32096
32097 #undef $ac_func
32098
32099 /* Override any GCC internal prototype to avoid an error.
32100    Use char because int might match the return type of a GCC
32101    builtin and then its argument prototype would still apply.  */
32102 #ifdef __cplusplus
32103 extern "C"
32104 #endif
32105 char $ac_func ();
32106 /* The GNU C library defines this for functions which it implements
32107     to always fail with ENOSYS.  Some functions are actually named
32108     something starting with __ and the normal name is an alias.  */
32109 #if defined __stub_$ac_func || defined __stub___$ac_func
32110 choke me
32111 #endif
32112
32113 int
32114 main ()
32115 {
32116 return $ac_func ();
32117   ;
32118   return 0;
32119 }
32120 _ACEOF
32121 rm -f conftest.$ac_objext conftest$ac_exeext
32122 if { (ac_try="$ac_link"
32123 case "(($ac_try" in
32124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125   *) ac_try_echo=$ac_try;;
32126 esac
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128   (eval "$ac_link") 2>conftest.er1
32129   ac_status=$?
32130   grep -v '^ *+' conftest.er1 >conftest.err
32131   rm -f conftest.er1
32132   cat conftest.err >&5
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); } &&
32135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32136   { (case "(($ac_try" in
32137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138   *) ac_try_echo=$ac_try;;
32139 esac
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141   (eval "$ac_try") 2>&5
32142   ac_status=$?
32143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144   (exit $ac_status); }; } &&
32145          { ac_try='test -s conftest$ac_exeext'
32146   { (case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_try") 2>&5
32152   ac_status=$?
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); }; }; then
32155   eval "$as_ac_var=yes"
32156 else
32157   echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32159
32160         eval "$as_ac_var=no"
32161 fi
32162
32163 rm -f core conftest.err conftest.$ac_objext \
32164       conftest$ac_exeext conftest.$ac_ext
32165 fi
32166 ac_res=`eval echo '${'$as_ac_var'}'`
32167                { echo "$as_me:$LINENO: result: $ac_res" >&5
32168 echo "${ECHO_T}$ac_res" >&6; }
32169 if test `eval echo '${'$as_ac_var'}'` = yes; then
32170   cat >>confdefs.h <<_ACEOF
32171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32172 _ACEOF
32173
32174 fi
32175 done
32176
32177
32178
32179
32180
32181
32182 for ac_func in mktemp realpath sbrk setrlimit strdup
32183 do
32184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32188   echo $ECHO_N "(cached) $ECHO_C" >&6
32189 else
32190   cat >conftest.$ac_ext <<_ACEOF
32191 /* confdefs.h.  */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h.  */
32196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32198 #define $ac_func innocuous_$ac_func
32199
32200 /* System header to define __stub macros and hopefully few prototypes,
32201     which can conflict with char $ac_func (); below.
32202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32203     <limits.h> exists even on freestanding compilers.  */
32204
32205 #ifdef __STDC__
32206 # include <limits.h>
32207 #else
32208 # include <assert.h>
32209 #endif
32210
32211 #undef $ac_func
32212
32213 /* Override any GCC internal prototype to avoid an error.
32214    Use char because int might match the return type of a GCC
32215    builtin and then its argument prototype would still apply.  */
32216 #ifdef __cplusplus
32217 extern "C"
32218 #endif
32219 char $ac_func ();
32220 /* The GNU C library defines this for functions which it implements
32221     to always fail with ENOSYS.  Some functions are actually named
32222     something starting with __ and the normal name is an alias.  */
32223 #if defined __stub_$ac_func || defined __stub___$ac_func
32224 choke me
32225 #endif
32226
32227 int
32228 main ()
32229 {
32230 return $ac_func ();
32231   ;
32232   return 0;
32233 }
32234 _ACEOF
32235 rm -f conftest.$ac_objext conftest$ac_exeext
32236 if { (ac_try="$ac_link"
32237 case "(($ac_try" in
32238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239   *) ac_try_echo=$ac_try;;
32240 esac
32241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242   (eval "$ac_link") 2>conftest.er1
32243   ac_status=$?
32244   grep -v '^ *+' conftest.er1 >conftest.err
32245   rm -f conftest.er1
32246   cat conftest.err >&5
32247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248   (exit $ac_status); } &&
32249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32250   { (case "(($ac_try" in
32251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252   *) ac_try_echo=$ac_try;;
32253 esac
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255   (eval "$ac_try") 2>&5
32256   ac_status=$?
32257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258   (exit $ac_status); }; } &&
32259          { ac_try='test -s conftest$ac_exeext'
32260   { (case "(($ac_try" in
32261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262   *) ac_try_echo=$ac_try;;
32263 esac
32264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265   (eval "$ac_try") 2>&5
32266   ac_status=$?
32267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268   (exit $ac_status); }; }; then
32269   eval "$as_ac_var=yes"
32270 else
32271   echo "$as_me: failed program was:" >&5
32272 sed 's/^/| /' conftest.$ac_ext >&5
32273
32274         eval "$as_ac_var=no"
32275 fi
32276
32277 rm -f core conftest.err conftest.$ac_objext \
32278       conftest$ac_exeext conftest.$ac_ext
32279 fi
32280 ac_res=`eval echo '${'$as_ac_var'}'`
32281                { echo "$as_me:$LINENO: result: $ac_res" >&5
32282 echo "${ECHO_T}$ac_res" >&6; }
32283 if test `eval echo '${'$as_ac_var'}'` = yes; then
32284   cat >>confdefs.h <<_ACEOF
32285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32286 _ACEOF
32287
32288 fi
32289 done
32290
32291
32292
32293
32294 for ac_func in strerror strerror_r strerror_s
32295 do
32296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32300   echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
32302   cat >conftest.$ac_ext <<_ACEOF
32303 /* confdefs.h.  */
32304 _ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h.  */
32308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32310 #define $ac_func innocuous_$ac_func
32311
32312 /* System header to define __stub macros and hopefully few prototypes,
32313     which can conflict with char $ac_func (); below.
32314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32315     <limits.h> exists even on freestanding compilers.  */
32316
32317 #ifdef __STDC__
32318 # include <limits.h>
32319 #else
32320 # include <assert.h>
32321 #endif
32322
32323 #undef $ac_func
32324
32325 /* Override any GCC internal prototype to avoid an error.
32326    Use char because int might match the return type of a GCC
32327    builtin and then its argument prototype would still apply.  */
32328 #ifdef __cplusplus
32329 extern "C"
32330 #endif
32331 char $ac_func ();
32332 /* The GNU C library defines this for functions which it implements
32333     to always fail with ENOSYS.  Some functions are actually named
32334     something starting with __ and the normal name is an alias.  */
32335 #if defined __stub_$ac_func || defined __stub___$ac_func
32336 choke me
32337 #endif
32338
32339 int
32340 main ()
32341 {
32342 return $ac_func ();
32343   ;
32344   return 0;
32345 }
32346 _ACEOF
32347 rm -f conftest.$ac_objext conftest$ac_exeext
32348 if { (ac_try="$ac_link"
32349 case "(($ac_try" in
32350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351   *) ac_try_echo=$ac_try;;
32352 esac
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354   (eval "$ac_link") 2>conftest.er1
32355   ac_status=$?
32356   grep -v '^ *+' conftest.er1 >conftest.err
32357   rm -f conftest.er1
32358   cat conftest.err >&5
32359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360   (exit $ac_status); } &&
32361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32362   { (case "(($ac_try" in
32363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364   *) ac_try_echo=$ac_try;;
32365 esac
32366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367   (eval "$ac_try") 2>&5
32368   ac_status=$?
32369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370   (exit $ac_status); }; } &&
32371          { ac_try='test -s conftest$ac_exeext'
32372   { (case "(($ac_try" in
32373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374   *) ac_try_echo=$ac_try;;
32375 esac
32376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377   (eval "$ac_try") 2>&5
32378   ac_status=$?
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); }; }; then
32381   eval "$as_ac_var=yes"
32382 else
32383   echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32385
32386         eval "$as_ac_var=no"
32387 fi
32388
32389 rm -f core conftest.err conftest.$ac_objext \
32390       conftest$ac_exeext conftest.$ac_ext
32391 fi
32392 ac_res=`eval echo '${'$as_ac_var'}'`
32393                { echo "$as_me:$LINENO: result: $ac_res" >&5
32394 echo "${ECHO_T}$ac_res" >&6; }
32395 if test `eval echo '${'$as_ac_var'}'` = yes; then
32396   cat >>confdefs.h <<_ACEOF
32397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32398 _ACEOF
32399
32400 fi
32401 done
32402
32403
32404
32405
32406
32407 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32408 do
32409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32413   echo $ECHO_N "(cached) $ECHO_C" >&6
32414 else
32415   cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32423 #define $ac_func innocuous_$ac_func
32424
32425 /* System header to define __stub macros and hopefully few prototypes,
32426     which can conflict with char $ac_func (); below.
32427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32428     <limits.h> exists even on freestanding compilers.  */
32429
32430 #ifdef __STDC__
32431 # include <limits.h>
32432 #else
32433 # include <assert.h>
32434 #endif
32435
32436 #undef $ac_func
32437
32438 /* Override any GCC internal prototype to avoid an error.
32439    Use char because int might match the return type of a GCC
32440    builtin and then its argument prototype would still apply.  */
32441 #ifdef __cplusplus
32442 extern "C"
32443 #endif
32444 char $ac_func ();
32445 /* The GNU C library defines this for functions which it implements
32446     to always fail with ENOSYS.  Some functions are actually named
32447     something starting with __ and the normal name is an alias.  */
32448 #if defined __stub_$ac_func || defined __stub___$ac_func
32449 choke me
32450 #endif
32451
32452 int
32453 main ()
32454 {
32455 return $ac_func ();
32456   ;
32457   return 0;
32458 }
32459 _ACEOF
32460 rm -f conftest.$ac_objext conftest$ac_exeext
32461 if { (ac_try="$ac_link"
32462 case "(($ac_try" in
32463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32464   *) ac_try_echo=$ac_try;;
32465 esac
32466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32467   (eval "$ac_link") 2>conftest.er1
32468   ac_status=$?
32469   grep -v '^ *+' conftest.er1 >conftest.err
32470   rm -f conftest.er1
32471   cat conftest.err >&5
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); } &&
32474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32475   { (case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480   (eval "$ac_try") 2>&5
32481   ac_status=$?
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); }; } &&
32484          { ac_try='test -s conftest$ac_exeext'
32485   { (case "(($ac_try" in
32486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487   *) ac_try_echo=$ac_try;;
32488 esac
32489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32490   (eval "$ac_try") 2>&5
32491   ac_status=$?
32492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493   (exit $ac_status); }; }; then
32494   eval "$as_ac_var=yes"
32495 else
32496   echo "$as_me: failed program was:" >&5
32497 sed 's/^/| /' conftest.$ac_ext >&5
32498
32499         eval "$as_ac_var=no"
32500 fi
32501
32502 rm -f core conftest.err conftest.$ac_objext \
32503       conftest$ac_exeext conftest.$ac_ext
32504 fi
32505 ac_res=`eval echo '${'$as_ac_var'}'`
32506                { echo "$as_me:$LINENO: result: $ac_res" >&5
32507 echo "${ECHO_T}$ac_res" >&6; }
32508 if test `eval echo '${'$as_ac_var'}'` = yes; then
32509   cat >>confdefs.h <<_ACEOF
32510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32511 _ACEOF
32512
32513 fi
32514 done
32515
32516
32517
32518
32519
32520 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32521 do
32522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32526   echo $ECHO_N "(cached) $ECHO_C" >&6
32527 else
32528   cat >conftest.$ac_ext <<_ACEOF
32529 /* confdefs.h.  */
32530 _ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h.  */
32534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32536 #define $ac_func innocuous_$ac_func
32537
32538 /* System header to define __stub macros and hopefully few prototypes,
32539     which can conflict with char $ac_func (); below.
32540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32541     <limits.h> exists even on freestanding compilers.  */
32542
32543 #ifdef __STDC__
32544 # include <limits.h>
32545 #else
32546 # include <assert.h>
32547 #endif
32548
32549 #undef $ac_func
32550
32551 /* Override any GCC internal prototype to avoid an error.
32552    Use char because int might match the return type of a GCC
32553    builtin and then its argument prototype would still apply.  */
32554 #ifdef __cplusplus
32555 extern "C"
32556 #endif
32557 char $ac_func ();
32558 /* The GNU C library defines this for functions which it implements
32559     to always fail with ENOSYS.  Some functions are actually named
32560     something starting with __ and the normal name is an alias.  */
32561 #if defined __stub_$ac_func || defined __stub___$ac_func
32562 choke me
32563 #endif
32564
32565 int
32566 main ()
32567 {
32568 return $ac_func ();
32569   ;
32570   return 0;
32571 }
32572 _ACEOF
32573 rm -f conftest.$ac_objext conftest$ac_exeext
32574 if { (ac_try="$ac_link"
32575 case "(($ac_try" in
32576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577   *) ac_try_echo=$ac_try;;
32578 esac
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580   (eval "$ac_link") 2>conftest.er1
32581   ac_status=$?
32582   grep -v '^ *+' conftest.er1 >conftest.err
32583   rm -f conftest.er1
32584   cat conftest.err >&5
32585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); } &&
32587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32588   { (case "(($ac_try" in
32589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590   *) ac_try_echo=$ac_try;;
32591 esac
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593   (eval "$ac_try") 2>&5
32594   ac_status=$?
32595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); }; } &&
32597          { ac_try='test -s conftest$ac_exeext'
32598   { (case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_try") 2>&5
32604   ac_status=$?
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); }; }; then
32607   eval "$as_ac_var=yes"
32608 else
32609   echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32611
32612         eval "$as_ac_var=no"
32613 fi
32614
32615 rm -f core conftest.err conftest.$ac_objext \
32616       conftest$ac_exeext conftest.$ac_ext
32617 fi
32618 ac_res=`eval echo '${'$as_ac_var'}'`
32619                { echo "$as_me:$LINENO: result: $ac_res" >&5
32620 echo "${ECHO_T}$ac_res" >&6; }
32621 if test `eval echo '${'$as_ac_var'}'` = yes; then
32622   cat >>confdefs.h <<_ACEOF
32623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32624 _ACEOF
32625
32626 fi
32627 done
32628
32629 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32630 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32631 if test "${llvm_cv_c_printf_a+set}" = set; then
32632   echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634   ac_ext=c
32635 ac_cpp='$CPP $CPPFLAGS'
32636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32639
32640  if test "$cross_compiling" = yes; then
32641   llvmac_cv_c_printf_a=no
32642 else
32643   cat >conftest.$ac_ext <<_ACEOF
32644
32645   /* confdefs.h.  */
32646 _ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h.  */
32650
32651 #include <stdio.h>
32652 #include <stdlib.h>
32653
32654 int
32655 main ()
32656 {
32657
32658 volatile double A, B;
32659 char Buffer[100];
32660 A = 1;
32661 A /= 10.0;
32662 sprintf(Buffer, "%a", A);
32663 B = atof(Buffer);
32664 if (A != B)
32665   return (1);
32666 if (A != 0x1.999999999999ap-4)
32667   return (1);
32668 return (0);
32669   ;
32670   return 0;
32671 }
32672 _ACEOF
32673 rm -f conftest$ac_exeext
32674 if { (ac_try="$ac_link"
32675 case "(($ac_try" in
32676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677   *) ac_try_echo=$ac_try;;
32678 esac
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680   (eval "$ac_link") 2>&5
32681   ac_status=$?
32682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32684   { (case "(($ac_try" in
32685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686   *) ac_try_echo=$ac_try;;
32687 esac
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689   (eval "$ac_try") 2>&5
32690   ac_status=$?
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); }; }; then
32693   llvm_cv_c_printf_a=yes
32694 else
32695   echo "$as_me: program exited with status $ac_status" >&5
32696 echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32698
32699 ( exit $ac_status )
32700 llvmac_cv_c_printf_a=no
32701 fi
32702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32703 fi
32704
32705
32706  ac_ext=c
32707 ac_cpp='$CPP $CPPFLAGS'
32708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32711
32712 fi
32713 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32714 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32715  if test "$llvm_cv_c_printf_a" = "yes"; then
32716
32717 cat >>confdefs.h <<\_ACEOF
32718 #define HAVE_PRINTF_A 1
32719 _ACEOF
32720
32721  fi
32722
32723 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32724 # for constant arguments.  Useless!
32725 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32726 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32727 if test "${ac_cv_working_alloca_h+set}" = set; then
32728   echo $ECHO_N "(cached) $ECHO_C" >&6
32729 else
32730   cat >conftest.$ac_ext <<_ACEOF
32731 /* confdefs.h.  */
32732 _ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h.  */
32736 #include <alloca.h>
32737 int
32738 main ()
32739 {
32740 char *p = (char *) alloca (2 * sizeof (int));
32741                           if (p) return 0;
32742   ;
32743   return 0;
32744 }
32745 _ACEOF
32746 rm -f conftest.$ac_objext conftest$ac_exeext
32747 if { (ac_try="$ac_link"
32748 case "(($ac_try" in
32749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750   *) ac_try_echo=$ac_try;;
32751 esac
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753   (eval "$ac_link") 2>conftest.er1
32754   ac_status=$?
32755   grep -v '^ *+' conftest.er1 >conftest.err
32756   rm -f conftest.er1
32757   cat conftest.err >&5
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); } &&
32760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32761   { (case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766   (eval "$ac_try") 2>&5
32767   ac_status=$?
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); }; } &&
32770          { ac_try='test -s conftest$ac_exeext'
32771   { (case "(($ac_try" in
32772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773   *) ac_try_echo=$ac_try;;
32774 esac
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776   (eval "$ac_try") 2>&5
32777   ac_status=$?
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); }; }; then
32780   ac_cv_working_alloca_h=yes
32781 else
32782   echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32784
32785         ac_cv_working_alloca_h=no
32786 fi
32787
32788 rm -f core conftest.err conftest.$ac_objext \
32789       conftest$ac_exeext conftest.$ac_ext
32790 fi
32791 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32792 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32793 if test $ac_cv_working_alloca_h = yes; then
32794
32795 cat >>confdefs.h <<\_ACEOF
32796 #define HAVE_ALLOCA_H 1
32797 _ACEOF
32798
32799 fi
32800
32801 { echo "$as_me:$LINENO: checking for alloca" >&5
32802 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32803 if test "${ac_cv_func_alloca_works+set}" = set; then
32804   echo $ECHO_N "(cached) $ECHO_C" >&6
32805 else
32806   cat >conftest.$ac_ext <<_ACEOF
32807 /* confdefs.h.  */
32808 _ACEOF
32809 cat confdefs.h >>conftest.$ac_ext
32810 cat >>conftest.$ac_ext <<_ACEOF
32811 /* end confdefs.h.  */
32812 #ifdef __GNUC__
32813 # define alloca __builtin_alloca
32814 #else
32815 # ifdef _MSC_VER
32816 #  include <malloc.h>
32817 #  define alloca _alloca
32818 # else
32819 #  if HAVE_ALLOCA_H
32820 #   include <alloca.h>
32821 #  else
32822 #   ifdef _AIX
32823  #pragma alloca
32824 #   else
32825 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32826 char *alloca ();
32827 #    endif
32828 #   endif
32829 #  endif
32830 # endif
32831 #endif
32832
32833 int
32834 main ()
32835 {
32836 char *p = (char *) alloca (1);
32837                                     if (p) return 0;
32838   ;
32839   return 0;
32840 }
32841 _ACEOF
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (ac_try="$ac_link"
32844 case "(($ac_try" in
32845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846   *) ac_try_echo=$ac_try;;
32847 esac
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849   (eval "$ac_link") 2>conftest.er1
32850   ac_status=$?
32851   grep -v '^ *+' conftest.er1 >conftest.err
32852   rm -f conftest.er1
32853   cat conftest.err >&5
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); } &&
32856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32857   { (case "(($ac_try" in
32858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859   *) ac_try_echo=$ac_try;;
32860 esac
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862   (eval "$ac_try") 2>&5
32863   ac_status=$?
32864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865   (exit $ac_status); }; } &&
32866          { ac_try='test -s conftest$ac_exeext'
32867   { (case "(($ac_try" in
32868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869   *) ac_try_echo=$ac_try;;
32870 esac
32871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872   (eval "$ac_try") 2>&5
32873   ac_status=$?
32874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875   (exit $ac_status); }; }; then
32876   ac_cv_func_alloca_works=yes
32877 else
32878   echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32880
32881         ac_cv_func_alloca_works=no
32882 fi
32883
32884 rm -f core conftest.err conftest.$ac_objext \
32885       conftest$ac_exeext conftest.$ac_ext
32886 fi
32887 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32888 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32889
32890 if test $ac_cv_func_alloca_works = yes; then
32891
32892 cat >>confdefs.h <<\_ACEOF
32893 #define HAVE_ALLOCA 1
32894 _ACEOF
32895
32896 else
32897   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32898 # that cause trouble.  Some versions do not even contain alloca or
32899 # contain a buggy version.  If you still want to use their alloca,
32900 # use ar to extract alloca.o from them instead of compiling alloca.c.
32901
32902 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32903
32904 cat >>confdefs.h <<\_ACEOF
32905 #define C_ALLOCA 1
32906 _ACEOF
32907
32908
32909 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32910 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32911 if test "${ac_cv_os_cray+set}" = set; then
32912   echo $ECHO_N "(cached) $ECHO_C" >&6
32913 else
32914   cat >conftest.$ac_ext <<_ACEOF
32915 /* confdefs.h.  */
32916 _ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h.  */
32920 #if defined CRAY && ! defined CRAY2
32921 webecray
32922 #else
32923 wenotbecray
32924 #endif
32925
32926 _ACEOF
32927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32928   $EGREP "webecray" >/dev/null 2>&1; then
32929   ac_cv_os_cray=yes
32930 else
32931   ac_cv_os_cray=no
32932 fi
32933 rm -f conftest*
32934
32935 fi
32936 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32937 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32938 if test $ac_cv_os_cray = yes; then
32939   for ac_func in _getb67 GETB67 getb67; do
32940     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32944   echo $ECHO_N "(cached) $ECHO_C" >&6
32945 else
32946   cat >conftest.$ac_ext <<_ACEOF
32947 /* confdefs.h.  */
32948 _ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h.  */
32952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32954 #define $ac_func innocuous_$ac_func
32955
32956 /* System header to define __stub macros and hopefully few prototypes,
32957     which can conflict with char $ac_func (); below.
32958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32959     <limits.h> exists even on freestanding compilers.  */
32960
32961 #ifdef __STDC__
32962 # include <limits.h>
32963 #else
32964 # include <assert.h>
32965 #endif
32966
32967 #undef $ac_func
32968
32969 /* Override any GCC internal prototype to avoid an error.
32970    Use char because int might match the return type of a GCC
32971    builtin and then its argument prototype would still apply.  */
32972 #ifdef __cplusplus
32973 extern "C"
32974 #endif
32975 char $ac_func ();
32976 /* The GNU C library defines this for functions which it implements
32977     to always fail with ENOSYS.  Some functions are actually named
32978     something starting with __ and the normal name is an alias.  */
32979 #if defined __stub_$ac_func || defined __stub___$ac_func
32980 choke me
32981 #endif
32982
32983 int
32984 main ()
32985 {
32986 return $ac_func ();
32987   ;
32988   return 0;
32989 }
32990 _ACEOF
32991 rm -f conftest.$ac_objext conftest$ac_exeext
32992 if { (ac_try="$ac_link"
32993 case "(($ac_try" in
32994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995   *) ac_try_echo=$ac_try;;
32996 esac
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998   (eval "$ac_link") 2>conftest.er1
32999   ac_status=$?
33000   grep -v '^ *+' conftest.er1 >conftest.err
33001   rm -f conftest.er1
33002   cat conftest.err >&5
33003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004   (exit $ac_status); } &&
33005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33006   { (case "(($ac_try" in
33007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008   *) ac_try_echo=$ac_try;;
33009 esac
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011   (eval "$ac_try") 2>&5
33012   ac_status=$?
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); }; } &&
33015          { ac_try='test -s conftest$ac_exeext'
33016   { (case "(($ac_try" in
33017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018   *) ac_try_echo=$ac_try;;
33019 esac
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021   (eval "$ac_try") 2>&5
33022   ac_status=$?
33023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024   (exit $ac_status); }; }; then
33025   eval "$as_ac_var=yes"
33026 else
33027   echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33029
33030         eval "$as_ac_var=no"
33031 fi
33032
33033 rm -f core conftest.err conftest.$ac_objext \
33034       conftest$ac_exeext conftest.$ac_ext
33035 fi
33036 ac_res=`eval echo '${'$as_ac_var'}'`
33037                { echo "$as_me:$LINENO: result: $ac_res" >&5
33038 echo "${ECHO_T}$ac_res" >&6; }
33039 if test `eval echo '${'$as_ac_var'}'` = yes; then
33040
33041 cat >>confdefs.h <<_ACEOF
33042 #define CRAY_STACKSEG_END $ac_func
33043 _ACEOF
33044
33045     break
33046 fi
33047
33048   done
33049 fi
33050
33051 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33052 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33053 if test "${ac_cv_c_stack_direction+set}" = set; then
33054   echo $ECHO_N "(cached) $ECHO_C" >&6
33055 else
33056   if test "$cross_compiling" = yes; then
33057   ac_cv_c_stack_direction=0
33058 else
33059   cat >conftest.$ac_ext <<_ACEOF
33060 /* confdefs.h.  */
33061 _ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h.  */
33065 $ac_includes_default
33066 int
33067 find_stack_direction ()
33068 {
33069   static char *addr = 0;
33070   auto char dummy;
33071   if (addr == 0)
33072     {
33073       addr = &dummy;
33074       return find_stack_direction ();
33075     }
33076   else
33077     return (&dummy > addr) ? 1 : -1;
33078 }
33079
33080 int
33081 main ()
33082 {
33083   return find_stack_direction () < 0;
33084 }
33085 _ACEOF
33086 rm -f conftest$ac_exeext
33087 if { (ac_try="$ac_link"
33088 case "(($ac_try" in
33089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090   *) ac_try_echo=$ac_try;;
33091 esac
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093   (eval "$ac_link") 2>&5
33094   ac_status=$?
33095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33097   { (case "(($ac_try" in
33098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099   *) ac_try_echo=$ac_try;;
33100 esac
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102   (eval "$ac_try") 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; }; then
33106   ac_cv_c_stack_direction=1
33107 else
33108   echo "$as_me: program exited with status $ac_status" >&5
33109 echo "$as_me: failed program was:" >&5
33110 sed 's/^/| /' conftest.$ac_ext >&5
33111
33112 ( exit $ac_status )
33113 ac_cv_c_stack_direction=-1
33114 fi
33115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33116 fi
33117
33118
33119 fi
33120 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33121 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33122
33123 cat >>confdefs.h <<_ACEOF
33124 #define STACK_DIRECTION $ac_cv_c_stack_direction
33125 _ACEOF
33126
33127
33128 fi
33129
33130
33131 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33132 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33133 if test "${ac_cv_func_rand48+set}" = set; then
33134   echo $ECHO_N "(cached) $ECHO_C" >&6
33135 else
33136   ac_ext=cpp
33137 ac_cpp='$CXXCPP $CPPFLAGS'
33138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33141
33142    cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h.  */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h.  */
33148 #include <stdlib.h>
33149 int
33150 main ()
33151 {
33152 srand48(0);lrand48();drand48();
33153   ;
33154   return 0;
33155 }
33156 _ACEOF
33157 rm -f conftest.$ac_objext
33158 if { (ac_try="$ac_compile"
33159 case "(($ac_try" in
33160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161   *) ac_try_echo=$ac_try;;
33162 esac
33163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164   (eval "$ac_compile") 2>conftest.er1
33165   ac_status=$?
33166   grep -v '^ *+' conftest.er1 >conftest.err
33167   rm -f conftest.er1
33168   cat conftest.err >&5
33169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170   (exit $ac_status); } &&
33171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33172   { (case "(($ac_try" in
33173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174   *) ac_try_echo=$ac_try;;
33175 esac
33176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177   (eval "$ac_try") 2>&5
33178   ac_status=$?
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); }; } &&
33181          { ac_try='test -s conftest.$ac_objext'
33182   { (case "(($ac_try" in
33183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184   *) ac_try_echo=$ac_try;;
33185 esac
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187   (eval "$ac_try") 2>&5
33188   ac_status=$?
33189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190   (exit $ac_status); }; }; then
33191   ac_cv_func_rand48=yes
33192 else
33193   echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33195
33196         ac_cv_func_rand48=no
33197 fi
33198
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33200   ac_ext=c
33201 ac_cpp='$CPP $CPPFLAGS'
33202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33205
33206 fi
33207 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33208 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33209
33210 if test "$ac_cv_func_rand48" = "yes" ; then
33211
33212 cat >>confdefs.h <<\_ACEOF
33213 #define HAVE_RAND48 1
33214 _ACEOF
33215
33216 fi
33217
33218
33219 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33220 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33221 if test "${ac_cv_cxx_namespaces+set}" = set; then
33222   echo $ECHO_N "(cached) $ECHO_C" >&6
33223 else
33224   ac_ext=cpp
33225 ac_cpp='$CXXCPP $CPPFLAGS'
33226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33229
33230  cat >conftest.$ac_ext <<_ACEOF
33231 /* confdefs.h.  */
33232 _ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h.  */
33236 namespace Outer { namespace Inner { int i = 0; }}
33237 int
33238 main ()
33239 {
33240 using namespace Outer::Inner; return i;
33241   ;
33242   return 0;
33243 }
33244 _ACEOF
33245 rm -f conftest.$ac_objext
33246 if { (ac_try="$ac_compile"
33247 case "(($ac_try" in
33248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249   *) ac_try_echo=$ac_try;;
33250 esac
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252   (eval "$ac_compile") 2>conftest.er1
33253   ac_status=$?
33254   grep -v '^ *+' conftest.er1 >conftest.err
33255   rm -f conftest.er1
33256   cat conftest.err >&5
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); } &&
33259          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33260   { (case "(($ac_try" in
33261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262   *) ac_try_echo=$ac_try;;
33263 esac
33264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265   (eval "$ac_try") 2>&5
33266   ac_status=$?
33267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268   (exit $ac_status); }; } &&
33269          { ac_try='test -s conftest.$ac_objext'
33270   { (case "(($ac_try" in
33271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272   *) ac_try_echo=$ac_try;;
33273 esac
33274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275   (eval "$ac_try") 2>&5
33276   ac_status=$?
33277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278   (exit $ac_status); }; }; then
33279   ac_cv_cxx_namespaces=yes
33280 else
33281   echo "$as_me: failed program was:" >&5
33282 sed 's/^/| /' conftest.$ac_ext >&5
33283
33284         ac_cv_cxx_namespaces=no
33285 fi
33286
33287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33288  ac_ext=c
33289 ac_cpp='$CPP $CPPFLAGS'
33290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33293
33294
33295 fi
33296 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33297 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33298 if test "$ac_cv_cxx_namespaces" = yes; then
33299
33300 cat >>confdefs.h <<\_ACEOF
33301 #define HAVE_NAMESPACES
33302 _ACEOF
33303
33304 fi
33305
33306 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33307 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33308 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33309   echo $ECHO_N "(cached) $ECHO_C" >&6
33310 else
33311
33312   ac_ext=cpp
33313 ac_cpp='$CXXCPP $CPPFLAGS'
33314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33317
33318   cat >conftest.$ac_ext <<_ACEOF
33319 /* confdefs.h.  */
33320 _ACEOF
33321 cat confdefs.h >>conftest.$ac_ext
33322 cat >>conftest.$ac_ext <<_ACEOF
33323 /* end confdefs.h.  */
33324 #include <iterator>
33325 #ifdef HAVE_NAMESPACES
33326 using namespace std;
33327 #endif
33328 int
33329 main ()
33330 {
33331 iterator<int,int,int> t; return 0;
33332   ;
33333   return 0;
33334 }
33335 _ACEOF
33336 rm -f conftest.$ac_objext
33337 if { (ac_try="$ac_compile"
33338 case "(($ac_try" in
33339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340   *) ac_try_echo=$ac_try;;
33341 esac
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343   (eval "$ac_compile") 2>conftest.er1
33344   ac_status=$?
33345   grep -v '^ *+' conftest.er1 >conftest.err
33346   rm -f conftest.er1
33347   cat conftest.err >&5
33348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349   (exit $ac_status); } &&
33350          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33351   { (case "(($ac_try" in
33352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353   *) ac_try_echo=$ac_try;;
33354 esac
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356   (eval "$ac_try") 2>&5
33357   ac_status=$?
33358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359   (exit $ac_status); }; } &&
33360          { ac_try='test -s conftest.$ac_objext'
33361   { (case "(($ac_try" in
33362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363   *) ac_try_echo=$ac_try;;
33364 esac
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366   (eval "$ac_try") 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; }; then
33370   ac_cv_cxx_have_std_iterator=yes
33371 else
33372   echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375         ac_cv_cxx_have_std_iterator=no
33376 fi
33377
33378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33379   ac_ext=c
33380 ac_cpp='$CPP $CPPFLAGS'
33381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33384
33385
33386 fi
33387 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33388 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33389 if test "$ac_cv_cxx_have_std_iterator" = yes
33390 then
33391
33392 cat >>confdefs.h <<\_ACEOF
33393 #define HAVE_STD_ITERATOR 1
33394 _ACEOF
33395
33396 else
33397
33398 cat >>confdefs.h <<\_ACEOF
33399 #define HAVE_STD_ITERATOR 0
33400 _ACEOF
33401
33402 fi
33403
33404 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33405 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33406 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33407   echo $ECHO_N "(cached) $ECHO_C" >&6
33408 else
33409
33410   ac_ext=cpp
33411 ac_cpp='$CXXCPP $CPPFLAGS'
33412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33415
33416   cat >conftest.$ac_ext <<_ACEOF
33417 /* confdefs.h.  */
33418 _ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h.  */
33422 #include <iterator>
33423 #ifdef HAVE_NAMESPACES
33424 using namespace std;
33425 #endif
33426 int
33427 main ()
33428 {
33429 bidirectional_iterator<int,int> t; return 0;
33430   ;
33431   return 0;
33432 }
33433 _ACEOF
33434 rm -f conftest.$ac_objext
33435 if { (ac_try="$ac_compile"
33436 case "(($ac_try" in
33437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438   *) ac_try_echo=$ac_try;;
33439 esac
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441   (eval "$ac_compile") 2>conftest.er1
33442   ac_status=$?
33443   grep -v '^ *+' conftest.er1 >conftest.err
33444   rm -f conftest.er1
33445   cat conftest.err >&5
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); } &&
33448          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33449   { (case "(($ac_try" in
33450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451   *) ac_try_echo=$ac_try;;
33452 esac
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454   (eval "$ac_try") 2>&5
33455   ac_status=$?
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; } &&
33458          { ac_try='test -s conftest.$ac_objext'
33459   { (case "(($ac_try" in
33460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461   *) ac_try_echo=$ac_try;;
33462 esac
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464   (eval "$ac_try") 2>&5
33465   ac_status=$?
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); }; }; then
33468   ac_cv_cxx_have_bi_iterator=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473         ac_cv_cxx_have_bi_iterator=no
33474 fi
33475
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33477   ac_ext=c
33478 ac_cpp='$CPP $CPPFLAGS'
33479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33482
33483
33484 fi
33485 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33486 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33487 if test "$ac_cv_cxx_have_bi_iterator" = yes
33488 then
33489
33490 cat >>confdefs.h <<\_ACEOF
33491 #define HAVE_BI_ITERATOR 1
33492 _ACEOF
33493
33494 else
33495
33496 cat >>confdefs.h <<\_ACEOF
33497 #define HAVE_BI_ITERATOR 0
33498 _ACEOF
33499
33500 fi
33501
33502 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33503 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33504 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507
33508   ac_ext=cpp
33509 ac_cpp='$CXXCPP $CPPFLAGS'
33510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33513
33514   cat >conftest.$ac_ext <<_ACEOF
33515 /* confdefs.h.  */
33516 _ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h.  */
33520 #include <iterator>
33521 #ifdef HAVE_NAMESPACES
33522 using namespace std;
33523 #endif
33524 int
33525 main ()
33526 {
33527 forward_iterator<int,int> t; return 0;
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539   (eval "$ac_compile") 2>conftest.er1
33540   ac_status=$?
33541   grep -v '^ *+' conftest.er1 >conftest.err
33542   rm -f conftest.er1
33543   cat conftest.err >&5
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } &&
33546          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33547   { (case "(($ac_try" in
33548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549   *) ac_try_echo=$ac_try;;
33550 esac
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552   (eval "$ac_try") 2>&5
33553   ac_status=$?
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); }; } &&
33556          { ac_try='test -s conftest.$ac_objext'
33557   { (case "(($ac_try" in
33558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559   *) ac_try_echo=$ac_try;;
33560 esac
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562   (eval "$ac_try") 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; }; then
33566   ac_cv_cxx_have_fwd_iterator=yes
33567 else
33568   echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571         ac_cv_cxx_have_fwd_iterator=no
33572 fi
33573
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575   ac_ext=c
33576 ac_cpp='$CPP $CPPFLAGS'
33577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33580
33581
33582 fi
33583 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33584 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33585 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33586 then
33587
33588 cat >>confdefs.h <<\_ACEOF
33589 #define HAVE_FWD_ITERATOR 1
33590 _ACEOF
33591
33592 else
33593
33594 cat >>confdefs.h <<\_ACEOF
33595 #define HAVE_FWD_ITERATOR 0
33596 _ACEOF
33597
33598 fi
33599
33600
33601 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33602 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33603 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33604   echo $ECHO_N "(cached) $ECHO_C" >&6
33605 else
33606   ac_ext=cpp
33607 ac_cpp='$CXXCPP $CPPFLAGS'
33608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33611
33612    cat >conftest.$ac_ext <<_ACEOF
33613 /* confdefs.h.  */
33614 _ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h.  */
33618 #include <math.h>
33619 int
33620 main ()
33621 {
33622 float f; isnan(f);
33623   ;
33624   return 0;
33625 }
33626 _ACEOF
33627 rm -f conftest.$ac_objext
33628 if { (ac_try="$ac_compile"
33629 case "(($ac_try" in
33630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631   *) ac_try_echo=$ac_try;;
33632 esac
33633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634   (eval "$ac_compile") 2>conftest.er1
33635   ac_status=$?
33636   grep -v '^ *+' conftest.er1 >conftest.err
33637   rm -f conftest.er1
33638   cat conftest.err >&5
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); } &&
33641          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33642   { (case "(($ac_try" in
33643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644   *) ac_try_echo=$ac_try;;
33645 esac
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647   (eval "$ac_try") 2>&5
33648   ac_status=$?
33649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650   (exit $ac_status); }; } &&
33651          { ac_try='test -s conftest.$ac_objext'
33652   { (case "(($ac_try" in
33653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654   *) ac_try_echo=$ac_try;;
33655 esac
33656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657   (eval "$ac_try") 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; }; then
33661   ac_cv_func_isnan_in_math_h=yes
33662 else
33663   echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33665
33666         ac_cv_func_isnan_in_math_h=no
33667 fi
33668
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33670   ac_ext=c
33671 ac_cpp='$CPP $CPPFLAGS'
33672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33675
33676 fi
33677 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33678 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33679
33680
33681 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33682
33683 cat >>confdefs.h <<\_ACEOF
33684 #define HAVE_ISNAN_IN_MATH_H 1
33685 _ACEOF
33686
33687 fi
33688
33689 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33690 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33691 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33692   echo $ECHO_N "(cached) $ECHO_C" >&6
33693 else
33694   ac_ext=cpp
33695 ac_cpp='$CXXCPP $CPPFLAGS'
33696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33699
33700    cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706 #include <cmath>
33707 int
33708 main ()
33709 {
33710 float f; isnan(f);
33711   ;
33712   return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest.$ac_objext
33716 if { (ac_try="$ac_compile"
33717 case "(($ac_try" in
33718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719   *) ac_try_echo=$ac_try;;
33720 esac
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722   (eval "$ac_compile") 2>conftest.er1
33723   ac_status=$?
33724   grep -v '^ *+' conftest.er1 >conftest.err
33725   rm -f conftest.er1
33726   cat conftest.err >&5
33727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); } &&
33729          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33730   { (case "(($ac_try" in
33731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33732   *) ac_try_echo=$ac_try;;
33733 esac
33734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33735   (eval "$ac_try") 2>&5
33736   ac_status=$?
33737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738   (exit $ac_status); }; } &&
33739          { ac_try='test -s conftest.$ac_objext'
33740   { (case "(($ac_try" in
33741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742   *) ac_try_echo=$ac_try;;
33743 esac
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745   (eval "$ac_try") 2>&5
33746   ac_status=$?
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); }; }; then
33749   ac_cv_func_isnan_in_cmath=yes
33750 else
33751   echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33753
33754         ac_cv_func_isnan_in_cmath=no
33755 fi
33756
33757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33758   ac_ext=c
33759 ac_cpp='$CPP $CPPFLAGS'
33760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33763
33764 fi
33765 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33766 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33767
33768 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33769
33770 cat >>confdefs.h <<\_ACEOF
33771 #define HAVE_ISNAN_IN_CMATH 1
33772 _ACEOF
33773
33774 fi
33775
33776 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33777 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33778 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33779   echo $ECHO_N "(cached) $ECHO_C" >&6
33780 else
33781   ac_ext=cpp
33782 ac_cpp='$CXXCPP $CPPFLAGS'
33783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33786
33787    cat >conftest.$ac_ext <<_ACEOF
33788 /* confdefs.h.  */
33789 _ACEOF
33790 cat confdefs.h >>conftest.$ac_ext
33791 cat >>conftest.$ac_ext <<_ACEOF
33792 /* end confdefs.h.  */
33793 #include <cmath>
33794 int
33795 main ()
33796 {
33797 float f; std::isnan(f);
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809   (eval "$ac_compile") 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } &&
33816          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33817   { (case "(($ac_try" in
33818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819   *) ac_try_echo=$ac_try;;
33820 esac
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822   (eval "$ac_try") 2>&5
33823   ac_status=$?
33824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825   (exit $ac_status); }; } &&
33826          { ac_try='test -s conftest.$ac_objext'
33827   { (case "(($ac_try" in
33828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829   *) ac_try_echo=$ac_try;;
33830 esac
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832   (eval "$ac_try") 2>&5
33833   ac_status=$?
33834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835   (exit $ac_status); }; }; then
33836   ac_cv_func_std_isnan_in_cmath=yes
33837 else
33838   echo "$as_me: failed program was:" >&5
33839 sed 's/^/| /' conftest.$ac_ext >&5
33840
33841         ac_cv_func_std_isnan_in_cmath=no
33842 fi
33843
33844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33845   ac_ext=c
33846 ac_cpp='$CPP $CPPFLAGS'
33847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33850
33851 fi
33852 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33853 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33854
33855 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33856
33857 cat >>confdefs.h <<\_ACEOF
33858 #define HAVE_STD_ISNAN_IN_CMATH 1
33859 _ACEOF
33860
33861 fi
33862
33863
33864 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33865 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33866 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33867   echo $ECHO_N "(cached) $ECHO_C" >&6
33868 else
33869   ac_ext=cpp
33870 ac_cpp='$CXXCPP $CPPFLAGS'
33871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33874
33875    cat >conftest.$ac_ext <<_ACEOF
33876 /* confdefs.h.  */
33877 _ACEOF
33878 cat confdefs.h >>conftest.$ac_ext
33879 cat >>conftest.$ac_ext <<_ACEOF
33880 /* end confdefs.h.  */
33881 #include <math.h>
33882 int
33883 main ()
33884 {
33885 float f; isinf(f);
33886   ;
33887   return 0;
33888 }
33889 _ACEOF
33890 rm -f conftest.$ac_objext
33891 if { (ac_try="$ac_compile"
33892 case "(($ac_try" in
33893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894   *) ac_try_echo=$ac_try;;
33895 esac
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897   (eval "$ac_compile") 2>conftest.er1
33898   ac_status=$?
33899   grep -v '^ *+' conftest.er1 >conftest.err
33900   rm -f conftest.er1
33901   cat conftest.err >&5
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } &&
33904          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33905   { (case "(($ac_try" in
33906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907   *) ac_try_echo=$ac_try;;
33908 esac
33909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910   (eval "$ac_try") 2>&5
33911   ac_status=$?
33912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913   (exit $ac_status); }; } &&
33914          { ac_try='test -s conftest.$ac_objext'
33915   { (case "(($ac_try" in
33916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33917   *) ac_try_echo=$ac_try;;
33918 esac
33919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33920   (eval "$ac_try") 2>&5
33921   ac_status=$?
33922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923   (exit $ac_status); }; }; then
33924   ac_cv_func_isinf_in_math_h=yes
33925 else
33926   echo "$as_me: failed program was:" >&5
33927 sed 's/^/| /' conftest.$ac_ext >&5
33928
33929         ac_cv_func_isinf_in_math_h=no
33930 fi
33931
33932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33933   ac_ext=c
33934 ac_cpp='$CPP $CPPFLAGS'
33935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33938
33939 fi
33940 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33941 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33942
33943 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33944
33945 cat >>confdefs.h <<\_ACEOF
33946 #define HAVE_ISINF_IN_MATH_H 1
33947 _ACEOF
33948
33949 fi
33950
33951 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33952 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33953 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33954   echo $ECHO_N "(cached) $ECHO_C" >&6
33955 else
33956   ac_ext=cpp
33957 ac_cpp='$CXXCPP $CPPFLAGS'
33958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33961
33962    cat >conftest.$ac_ext <<_ACEOF
33963 /* confdefs.h.  */
33964 _ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h.  */
33968 #include <cmath>
33969 int
33970 main ()
33971 {
33972 float f; isinf(f);
33973   ;
33974   return 0;
33975 }
33976 _ACEOF
33977 rm -f conftest.$ac_objext
33978 if { (ac_try="$ac_compile"
33979 case "(($ac_try" in
33980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981   *) ac_try_echo=$ac_try;;
33982 esac
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984   (eval "$ac_compile") 2>conftest.er1
33985   ac_status=$?
33986   grep -v '^ *+' conftest.er1 >conftest.err
33987   rm -f conftest.er1
33988   cat conftest.err >&5
33989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990   (exit $ac_status); } &&
33991          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33992   { (case "(($ac_try" in
33993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994   *) ac_try_echo=$ac_try;;
33995 esac
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997   (eval "$ac_try") 2>&5
33998   ac_status=$?
33999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000   (exit $ac_status); }; } &&
34001          { ac_try='test -s conftest.$ac_objext'
34002   { (case "(($ac_try" in
34003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34004   *) ac_try_echo=$ac_try;;
34005 esac
34006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34007   (eval "$ac_try") 2>&5
34008   ac_status=$?
34009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010   (exit $ac_status); }; }; then
34011   ac_cv_func_isinf_in_cmath=yes
34012 else
34013   echo "$as_me: failed program was:" >&5
34014 sed 's/^/| /' conftest.$ac_ext >&5
34015
34016         ac_cv_func_isinf_in_cmath=no
34017 fi
34018
34019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34020   ac_ext=c
34021 ac_cpp='$CPP $CPPFLAGS'
34022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34025
34026 fi
34027 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34028 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34029
34030 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34031
34032 cat >>confdefs.h <<\_ACEOF
34033 #define HAVE_ISINF_IN_CMATH 1
34034 _ACEOF
34035
34036 fi
34037
34038 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34039 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34040 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34041   echo $ECHO_N "(cached) $ECHO_C" >&6
34042 else
34043   ac_ext=cpp
34044 ac_cpp='$CXXCPP $CPPFLAGS'
34045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34048
34049    cat >conftest.$ac_ext <<_ACEOF
34050 /* confdefs.h.  */
34051 _ACEOF
34052 cat confdefs.h >>conftest.$ac_ext
34053 cat >>conftest.$ac_ext <<_ACEOF
34054 /* end confdefs.h.  */
34055 #include <cmath>
34056 int
34057 main ()
34058 {
34059 float f; std::isinf(f)}
34060   ;
34061   return 0;
34062 }
34063 _ACEOF
34064 rm -f conftest.$ac_objext
34065 if { (ac_try="$ac_compile"
34066 case "(($ac_try" in
34067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34068   *) ac_try_echo=$ac_try;;
34069 esac
34070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34071   (eval "$ac_compile") 2>conftest.er1
34072   ac_status=$?
34073   grep -v '^ *+' conftest.er1 >conftest.err
34074   rm -f conftest.er1
34075   cat conftest.err >&5
34076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077   (exit $ac_status); } &&
34078          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34079   { (case "(($ac_try" in
34080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081   *) ac_try_echo=$ac_try;;
34082 esac
34083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084   (eval "$ac_try") 2>&5
34085   ac_status=$?
34086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087   (exit $ac_status); }; } &&
34088          { ac_try='test -s conftest.$ac_objext'
34089   { (case "(($ac_try" in
34090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34091   *) ac_try_echo=$ac_try;;
34092 esac
34093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34094   (eval "$ac_try") 2>&5
34095   ac_status=$?
34096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097   (exit $ac_status); }; }; then
34098   ac_cv_func_std_isinf_in_cmath=yes
34099 else
34100   echo "$as_me: failed program was:" >&5
34101 sed 's/^/| /' conftest.$ac_ext >&5
34102
34103         ac_cv_func_std_isinf_in_cmath=no
34104 fi
34105
34106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34107   ac_ext=c
34108 ac_cpp='$CPP $CPPFLAGS'
34109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34112
34113 fi
34114 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34115 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34116
34117 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34118
34119 cat >>confdefs.h <<\_ACEOF
34120 #define HAVE_STD_ISINF_IN_CMATH 1
34121 _ACEOF
34122
34123 fi
34124
34125 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34126 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34127 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130   ac_ext=cpp
34131 ac_cpp='$CXXCPP $CPPFLAGS'
34132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34135
34136    cat >conftest.$ac_ext <<_ACEOF
34137 /* confdefs.h.  */
34138 _ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h.  */
34142 #include <ieeefp.h>
34143 int
34144 main ()
34145 {
34146 float f; finite(f);
34147   ;
34148   return 0;
34149 }
34150 _ACEOF
34151 rm -f conftest.$ac_objext
34152 if { (ac_try="$ac_compile"
34153 case "(($ac_try" in
34154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155   *) ac_try_echo=$ac_try;;
34156 esac
34157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158   (eval "$ac_compile") 2>conftest.er1
34159   ac_status=$?
34160   grep -v '^ *+' conftest.er1 >conftest.err
34161   rm -f conftest.er1
34162   cat conftest.err >&5
34163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164   (exit $ac_status); } &&
34165          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34166   { (case "(($ac_try" in
34167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34168   *) ac_try_echo=$ac_try;;
34169 esac
34170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34171   (eval "$ac_try") 2>&5
34172   ac_status=$?
34173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174   (exit $ac_status); }; } &&
34175          { ac_try='test -s conftest.$ac_objext'
34176   { (case "(($ac_try" in
34177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178   *) ac_try_echo=$ac_try;;
34179 esac
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181   (eval "$ac_try") 2>&5
34182   ac_status=$?
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); }; }; then
34185   ac_cv_func_finite_in_ieeefp_h=yes
34186 else
34187   echo "$as_me: failed program was:" >&5
34188 sed 's/^/| /' conftest.$ac_ext >&5
34189
34190         ac_cv_func_finite_in_ieeefp_h=no
34191 fi
34192
34193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34194   ac_ext=c
34195 ac_cpp='$CPP $CPPFLAGS'
34196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34199
34200 fi
34201 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34202 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34203
34204 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34205
34206 cat >>confdefs.h <<\_ACEOF
34207 #define HAVE_FINITE_IN_IEEEFP_H 1
34208 _ACEOF
34209
34210 fi
34211
34212
34213
34214 if test "$llvm_cv_platform_type" = "Unix" ; then
34215
34216
34217 for ac_header in stdlib.h unistd.h
34218 do
34219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34224   echo $ECHO_N "(cached) $ECHO_C" >&6
34225 fi
34226 ac_res=`eval echo '${'$as_ac_Header'}'`
34227                { echo "$as_me:$LINENO: result: $ac_res" >&5
34228 echo "${ECHO_T}$ac_res" >&6; }
34229 else
34230   # Is the header compilable?
34231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34233 cat >conftest.$ac_ext <<_ACEOF
34234 /* confdefs.h.  */
34235 _ACEOF
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h.  */
34239 $ac_includes_default
34240 #include <$ac_header>
34241 _ACEOF
34242 rm -f conftest.$ac_objext
34243 if { (ac_try="$ac_compile"
34244 case "(($ac_try" in
34245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34246   *) ac_try_echo=$ac_try;;
34247 esac
34248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34249   (eval "$ac_compile") 2>conftest.er1
34250   ac_status=$?
34251   grep -v '^ *+' conftest.er1 >conftest.err
34252   rm -f conftest.er1
34253   cat conftest.err >&5
34254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255   (exit $ac_status); } &&
34256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34257   { (case "(($ac_try" in
34258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259   *) ac_try_echo=$ac_try;;
34260 esac
34261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262   (eval "$ac_try") 2>&5
34263   ac_status=$?
34264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265   (exit $ac_status); }; } &&
34266          { ac_try='test -s conftest.$ac_objext'
34267   { (case "(($ac_try" in
34268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34269   *) ac_try_echo=$ac_try;;
34270 esac
34271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34272   (eval "$ac_try") 2>&5
34273   ac_status=$?
34274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275   (exit $ac_status); }; }; then
34276   ac_header_compiler=yes
34277 else
34278   echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34280
34281         ac_header_compiler=no
34282 fi
34283
34284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34286 echo "${ECHO_T}$ac_header_compiler" >&6; }
34287
34288 # Is the header present?
34289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34291 cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h.  */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h.  */
34297 #include <$ac_header>
34298 _ACEOF
34299 if { (ac_try="$ac_cpp conftest.$ac_ext"
34300 case "(($ac_try" in
34301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302   *) ac_try_echo=$ac_try;;
34303 esac
34304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34306   ac_status=$?
34307   grep -v '^ *+' conftest.er1 >conftest.err
34308   rm -f conftest.er1
34309   cat conftest.err >&5
34310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311   (exit $ac_status); } >/dev/null; then
34312   if test -s conftest.err; then
34313     ac_cpp_err=$ac_c_preproc_warn_flag
34314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34315   else
34316     ac_cpp_err=
34317   fi
34318 else
34319   ac_cpp_err=yes
34320 fi
34321 if test -z "$ac_cpp_err"; then
34322   ac_header_preproc=yes
34323 else
34324   echo "$as_me: failed program was:" >&5
34325 sed 's/^/| /' conftest.$ac_ext >&5
34326
34327   ac_header_preproc=no
34328 fi
34329
34330 rm -f conftest.err conftest.$ac_ext
34331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34332 echo "${ECHO_T}$ac_header_preproc" >&6; }
34333
34334 # So?  What about this header?
34335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34336   yes:no: )
34337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34341     ac_header_preproc=yes
34342     ;;
34343   no:yes:* )
34344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34356     ( cat <<\_ASBOX
34357 ## ----------------------------------- ##
34358 ## Report this to llvmbugs@cs.uiuc.edu ##
34359 ## ----------------------------------- ##
34360 _ASBOX
34361      ) | sed "s/^/$as_me: WARNING:     /" >&2
34362     ;;
34363 esac
34364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34367   echo $ECHO_N "(cached) $ECHO_C" >&6
34368 else
34369   eval "$as_ac_Header=\$ac_header_preproc"
34370 fi
34371 ac_res=`eval echo '${'$as_ac_Header'}'`
34372                { echo "$as_me:$LINENO: result: $ac_res" >&5
34373 echo "${ECHO_T}$ac_res" >&6; }
34374
34375 fi
34376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34377   cat >>confdefs.h <<_ACEOF
34378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34379 _ACEOF
34380
34381 fi
34382
34383 done
34384
34385
34386 for ac_func in getpagesize
34387 do
34388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34392   echo $ECHO_N "(cached) $ECHO_C" >&6
34393 else
34394   cat >conftest.$ac_ext <<_ACEOF
34395 /* confdefs.h.  */
34396 _ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h.  */
34400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34402 #define $ac_func innocuous_$ac_func
34403
34404 /* System header to define __stub macros and hopefully few prototypes,
34405     which can conflict with char $ac_func (); below.
34406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34407     <limits.h> exists even on freestanding compilers.  */
34408
34409 #ifdef __STDC__
34410 # include <limits.h>
34411 #else
34412 # include <assert.h>
34413 #endif
34414
34415 #undef $ac_func
34416
34417 /* Override any GCC internal prototype to avoid an error.
34418    Use char because int might match the return type of a GCC
34419    builtin and then its argument prototype would still apply.  */
34420 #ifdef __cplusplus
34421 extern "C"
34422 #endif
34423 char $ac_func ();
34424 /* The GNU C library defines this for functions which it implements
34425     to always fail with ENOSYS.  Some functions are actually named
34426     something starting with __ and the normal name is an alias.  */
34427 #if defined __stub_$ac_func || defined __stub___$ac_func
34428 choke me
34429 #endif
34430
34431 int
34432 main ()
34433 {
34434 return $ac_func ();
34435   ;
34436   return 0;
34437 }
34438 _ACEOF
34439 rm -f conftest.$ac_objext conftest$ac_exeext
34440 if { (ac_try="$ac_link"
34441 case "(($ac_try" in
34442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443   *) ac_try_echo=$ac_try;;
34444 esac
34445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446   (eval "$ac_link") 2>conftest.er1
34447   ac_status=$?
34448   grep -v '^ *+' conftest.er1 >conftest.err
34449   rm -f conftest.er1
34450   cat conftest.err >&5
34451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452   (exit $ac_status); } &&
34453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34454   { (case "(($ac_try" in
34455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456   *) ac_try_echo=$ac_try;;
34457 esac
34458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459   (eval "$ac_try") 2>&5
34460   ac_status=$?
34461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462   (exit $ac_status); }; } &&
34463          { ac_try='test -s conftest$ac_exeext'
34464   { (case "(($ac_try" in
34465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34466   *) ac_try_echo=$ac_try;;
34467 esac
34468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34469   (eval "$ac_try") 2>&5
34470   ac_status=$?
34471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472   (exit $ac_status); }; }; then
34473   eval "$as_ac_var=yes"
34474 else
34475   echo "$as_me: failed program was:" >&5
34476 sed 's/^/| /' conftest.$ac_ext >&5
34477
34478         eval "$as_ac_var=no"
34479 fi
34480
34481 rm -f core conftest.err conftest.$ac_objext \
34482       conftest$ac_exeext conftest.$ac_ext
34483 fi
34484 ac_res=`eval echo '${'$as_ac_var'}'`
34485                { echo "$as_me:$LINENO: result: $ac_res" >&5
34486 echo "${ECHO_T}$ac_res" >&6; }
34487 if test `eval echo '${'$as_ac_var'}'` = yes; then
34488   cat >>confdefs.h <<_ACEOF
34489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34490 _ACEOF
34491
34492 fi
34493 done
34494
34495 { echo "$as_me:$LINENO: checking for working mmap" >&5
34496 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34497 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34498   echo $ECHO_N "(cached) $ECHO_C" >&6
34499 else
34500   if test "$cross_compiling" = yes; then
34501   ac_cv_func_mmap_fixed_mapped=no
34502 else
34503   cat >conftest.$ac_ext <<_ACEOF
34504 /* confdefs.h.  */
34505 _ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h.  */
34509 $ac_includes_default
34510 /* malloc might have been renamed as rpl_malloc. */
34511 #undef malloc
34512
34513 /* Thanks to Mike Haertel and Jim Avera for this test.
34514    Here is a matrix of mmap possibilities:
34515         mmap private not fixed
34516         mmap private fixed at somewhere currently unmapped
34517         mmap private fixed at somewhere already mapped
34518         mmap shared not fixed
34519         mmap shared fixed at somewhere currently unmapped
34520         mmap shared fixed at somewhere already mapped
34521    For private mappings, we should verify that changes cannot be read()
34522    back from the file, nor mmap's back from the file at a different
34523    address.  (There have been systems where private was not correctly
34524    implemented like the infamous i386 svr4.0, and systems where the
34525    VM page cache was not coherent with the file system buffer cache
34526    like early versions of FreeBSD and possibly contemporary NetBSD.)
34527    For shared mappings, we should conversely verify that changes get
34528    propagated back to all the places they're supposed to be.
34529
34530    Grep wants private fixed already mapped.
34531    The main things grep needs to know about mmap are:
34532    * does it exist and is it safe to write into the mmap'd area
34533    * how to use it (BSD variants)  */
34534
34535 #include <fcntl.h>
34536 #include <sys/mman.h>
34537
34538 #if !STDC_HEADERS && !HAVE_STDLIB_H
34539 char *malloc ();
34540 #endif
34541
34542 /* This mess was copied from the GNU getpagesize.h.  */
34543 #if !HAVE_GETPAGESIZE
34544 /* Assume that all systems that can run configure have sys/param.h.  */
34545 # if !HAVE_SYS_PARAM_H
34546 #  define HAVE_SYS_PARAM_H 1
34547 # endif
34548
34549 # ifdef _SC_PAGESIZE
34550 #  define getpagesize() sysconf(_SC_PAGESIZE)
34551 # else /* no _SC_PAGESIZE */
34552 #  if HAVE_SYS_PARAM_H
34553 #   include <sys/param.h>
34554 #   ifdef EXEC_PAGESIZE
34555 #    define getpagesize() EXEC_PAGESIZE
34556 #   else /* no EXEC_PAGESIZE */
34557 #    ifdef NBPG
34558 #     define getpagesize() NBPG * CLSIZE
34559 #     ifndef CLSIZE
34560 #      define CLSIZE 1
34561 #     endif /* no CLSIZE */
34562 #    else /* no NBPG */
34563 #     ifdef NBPC
34564 #      define getpagesize() NBPC
34565 #     else /* no NBPC */
34566 #      ifdef PAGESIZE
34567 #       define getpagesize() PAGESIZE
34568 #      endif /* PAGESIZE */
34569 #     endif /* no NBPC */
34570 #    endif /* no NBPG */
34571 #   endif /* no EXEC_PAGESIZE */
34572 #  else /* no HAVE_SYS_PARAM_H */
34573 #   define getpagesize() 8192   /* punt totally */
34574 #  endif /* no HAVE_SYS_PARAM_H */
34575 # endif /* no _SC_PAGESIZE */
34576
34577 #endif /* no HAVE_GETPAGESIZE */
34578
34579 int
34580 main ()
34581 {
34582   char *data, *data2, *data3;
34583   int i, pagesize;
34584   int fd;
34585
34586   pagesize = getpagesize ();
34587
34588   /* First, make a file with some known garbage in it. */
34589   data = (char *) malloc (pagesize);
34590   if (!data)
34591     return 1;
34592   for (i = 0; i < pagesize; ++i)
34593     *(data + i) = rand ();
34594   umask (0);
34595   fd = creat ("conftest.mmap", 0600);
34596   if (fd < 0)
34597     return 1;
34598   if (write (fd, data, pagesize) != pagesize)
34599     return 1;
34600   close (fd);
34601
34602   /* Next, try to mmap the file at a fixed address which already has
34603      something else allocated at it.  If we can, also make sure that
34604      we see the same garbage.  */
34605   fd = open ("conftest.mmap", O_RDWR);
34606   if (fd < 0)
34607     return 1;
34608   data2 = (char *) malloc (2 * pagesize);
34609   if (!data2)
34610     return 1;
34611   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34612   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34613                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34614     return 1;
34615   for (i = 0; i < pagesize; ++i)
34616     if (*(data + i) != *(data2 + i))
34617       return 1;
34618
34619   /* Finally, make sure that changes to the mapped area do not
34620      percolate back to the file as seen by read().  (This is a bug on
34621      some variants of i386 svr4.0.)  */
34622   for (i = 0; i < pagesize; ++i)
34623     *(data2 + i) = *(data2 + i) + 1;
34624   data3 = (char *) malloc (pagesize);
34625   if (!data3)
34626     return 1;
34627   if (read (fd, data3, pagesize) != pagesize)
34628     return 1;
34629   for (i = 0; i < pagesize; ++i)
34630     if (*(data + i) != *(data3 + i))
34631       return 1;
34632   close (fd);
34633   return 0;
34634 }
34635 _ACEOF
34636 rm -f conftest$ac_exeext
34637 if { (ac_try="$ac_link"
34638 case "(($ac_try" in
34639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34640   *) ac_try_echo=$ac_try;;
34641 esac
34642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34643   (eval "$ac_link") 2>&5
34644   ac_status=$?
34645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34647   { (case "(($ac_try" in
34648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649   *) ac_try_echo=$ac_try;;
34650 esac
34651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652   (eval "$ac_try") 2>&5
34653   ac_status=$?
34654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655   (exit $ac_status); }; }; then
34656   ac_cv_func_mmap_fixed_mapped=yes
34657 else
34658   echo "$as_me: program exited with status $ac_status" >&5
34659 echo "$as_me: failed program was:" >&5
34660 sed 's/^/| /' conftest.$ac_ext >&5
34661
34662 ( exit $ac_status )
34663 ac_cv_func_mmap_fixed_mapped=no
34664 fi
34665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34666 fi
34667
34668
34669 fi
34670 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34671 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34672 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34673
34674 cat >>confdefs.h <<\_ACEOF
34675 #define HAVE_MMAP 1
34676 _ACEOF
34677
34678 fi
34679 rm -f conftest.mmap
34680
34681   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34682 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34683 if test "${ac_cv_func_mmap_file+set}" = set; then
34684   echo $ECHO_N "(cached) $ECHO_C" >&6
34685 else
34686    ac_ext=c
34687 ac_cpp='$CPP $CPPFLAGS'
34688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34691
34692   if test "$cross_compiling" = yes; then
34693   ac_cv_func_mmap_file=no
34694 else
34695   cat >conftest.$ac_ext <<_ACEOF
34696
34697     /* confdefs.h.  */
34698 _ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h.  */
34702
34703 #include <sys/types.h>
34704 #include <sys/mman.h>
34705 #include <fcntl.h>
34706
34707 int
34708 main ()
34709 {
34710
34711   int fd;
34712   fd = creat ("foo",0777);
34713   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34714   unlink ("foo");
34715   return (fd != (int) MAP_FAILED);
34716   ;
34717   return 0;
34718 }
34719 _ACEOF
34720 rm -f conftest$ac_exeext
34721 if { (ac_try="$ac_link"
34722 case "(($ac_try" in
34723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34724   *) ac_try_echo=$ac_try;;
34725 esac
34726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34727   (eval "$ac_link") 2>&5
34728   ac_status=$?
34729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34731   { (case "(($ac_try" in
34732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34733   *) ac_try_echo=$ac_try;;
34734 esac
34735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34736   (eval "$ac_try") 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); }; }; then
34740   ac_cv_func_mmap_file=yes
34741 else
34742   echo "$as_me: program exited with status $ac_status" >&5
34743 echo "$as_me: failed program was:" >&5
34744 sed 's/^/| /' conftest.$ac_ext >&5
34745
34746 ( exit $ac_status )
34747 ac_cv_func_mmap_file=no
34748 fi
34749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34750 fi
34751
34752
34753   ac_ext=c
34754 ac_cpp='$CPP $CPPFLAGS'
34755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34758
34759
34760 fi
34761 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34762 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34763 if test "$ac_cv_func_mmap_file" = yes; then
34764
34765 cat >>confdefs.h <<\_ACEOF
34766 #define HAVE_MMAP_FILE
34767 _ACEOF
34768
34769    MMAP_FILE=yes
34770
34771 fi
34772
34773   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34774 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34775 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34776   echo $ECHO_N "(cached) $ECHO_C" >&6
34777 else
34778   if test "$llvm_cv_os_type" = "Interix" ; then
34779    ac_cv_need_dev_zero_for_mmap=yes
34780  else
34781    ac_cv_need_dev_zero_for_mmap=no
34782  fi
34783
34784 fi
34785 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34786 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34787 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34788
34789 cat >>confdefs.h <<\_ACEOF
34790 #define NEED_DEV_ZERO_FOR_MMAP 1
34791 _ACEOF
34792
34793 fi
34794
34795   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34796   then
34797     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34798 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34799   fi
34800   if test "$ac_cv_func_mmap_file" = "no"
34801   then
34802     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34803 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34804   fi
34805 fi
34806
34807 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34808 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34809 cat >conftest.$ac_ext <<_ACEOF
34810 /* confdefs.h.  */
34811 _ACEOF
34812 cat confdefs.h >>conftest.$ac_ext
34813 cat >>conftest.$ac_ext <<_ACEOF
34814 /* end confdefs.h.  */
34815 int main() {
34816         volatile unsigned long val = 1;
34817         __sync_synchronize();
34818         __sync_val_compare_and_swap(&val, 1, 0);
34819         __sync_add_and_fetch(&val, 1);
34820         __sync_sub_and_fetch(&val, 1);
34821         return 0;
34822       }
34823
34824 _ACEOF
34825 rm -f conftest.$ac_objext conftest$ac_exeext
34826 if { (ac_try="$ac_link"
34827 case "(($ac_try" in
34828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34829   *) ac_try_echo=$ac_try;;
34830 esac
34831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34832   (eval "$ac_link") 2>conftest.er1
34833   ac_status=$?
34834   grep -v '^ *+' conftest.er1 >conftest.err
34835   rm -f conftest.er1
34836   cat conftest.err >&5
34837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838   (exit $ac_status); } &&
34839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34840   { (case "(($ac_try" in
34841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842   *) ac_try_echo=$ac_try;;
34843 esac
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845   (eval "$ac_try") 2>&5
34846   ac_status=$?
34847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848   (exit $ac_status); }; } &&
34849          { ac_try='test -s conftest$ac_exeext'
34850   { (case "(($ac_try" in
34851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852   *) ac_try_echo=$ac_try;;
34853 esac
34854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34855   (eval "$ac_try") 2>&5
34856   ac_status=$?
34857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858   (exit $ac_status); }; }; then
34859   { echo "$as_me:$LINENO: result: yes" >&5
34860 echo "${ECHO_T}yes" >&6; }
34861
34862 cat >>confdefs.h <<\_ACEOF
34863 #define LLVM_MULTITHREADED 1
34864 _ACEOF
34865
34866 else
34867   echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34869
34870         { echo "$as_me:$LINENO: result: no" >&5
34871 echo "${ECHO_T}no" >&6; }
34872
34873 cat >>confdefs.h <<\_ACEOF
34874 #define LLVM_MULTITHREADED 0
34875 _ACEOF
34876
34877   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34878 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34879 fi
34880
34881 rm -f core conftest.err conftest.$ac_objext \
34882       conftest$ac_exeext conftest.$ac_ext
34883
34884
34885
34886
34887 for ac_func in __dso_handle
34888 do
34889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34893   echo $ECHO_N "(cached) $ECHO_C" >&6
34894 else
34895   cat >conftest.$ac_ext <<_ACEOF
34896 /* confdefs.h.  */
34897 _ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h.  */
34901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34903 #define $ac_func innocuous_$ac_func
34904
34905 /* System header to define __stub macros and hopefully few prototypes,
34906     which can conflict with char $ac_func (); below.
34907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34908     <limits.h> exists even on freestanding compilers.  */
34909
34910 #ifdef __STDC__
34911 # include <limits.h>
34912 #else
34913 # include <assert.h>
34914 #endif
34915
34916 #undef $ac_func
34917
34918 /* Override any GCC internal prototype to avoid an error.
34919    Use char because int might match the return type of a GCC
34920    builtin and then its argument prototype would still apply.  */
34921 #ifdef __cplusplus
34922 extern "C"
34923 #endif
34924 char $ac_func ();
34925 /* The GNU C library defines this for functions which it implements
34926     to always fail with ENOSYS.  Some functions are actually named
34927     something starting with __ and the normal name is an alias.  */
34928 #if defined __stub_$ac_func || defined __stub___$ac_func
34929 choke me
34930 #endif
34931
34932 int
34933 main ()
34934 {
34935 return $ac_func ();
34936   ;
34937   return 0;
34938 }
34939 _ACEOF
34940 rm -f conftest.$ac_objext conftest$ac_exeext
34941 if { (ac_try="$ac_link"
34942 case "(($ac_try" in
34943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944   *) ac_try_echo=$ac_try;;
34945 esac
34946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34947   (eval "$ac_link") 2>conftest.er1
34948   ac_status=$?
34949   grep -v '^ *+' conftest.er1 >conftest.err
34950   rm -f conftest.er1
34951   cat conftest.err >&5
34952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953   (exit $ac_status); } &&
34954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34955   { (case "(($ac_try" in
34956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957   *) ac_try_echo=$ac_try;;
34958 esac
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960   (eval "$ac_try") 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); }; } &&
34964          { ac_try='test -s conftest$ac_exeext'
34965   { (case "(($ac_try" in
34966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34967   *) ac_try_echo=$ac_try;;
34968 esac
34969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34970   (eval "$ac_try") 2>&5
34971   ac_status=$?
34972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973   (exit $ac_status); }; }; then
34974   eval "$as_ac_var=yes"
34975 else
34976   echo "$as_me: failed program was:" >&5
34977 sed 's/^/| /' conftest.$ac_ext >&5
34978
34979         eval "$as_ac_var=no"
34980 fi
34981
34982 rm -f core conftest.err conftest.$ac_objext \
34983       conftest$ac_exeext conftest.$ac_ext
34984 fi
34985 ac_res=`eval echo '${'$as_ac_var'}'`
34986                { echo "$as_me:$LINENO: result: $ac_res" >&5
34987 echo "${ECHO_T}$ac_res" >&6; }
34988 if test `eval echo '${'$as_ac_var'}'` = yes; then
34989   cat >>confdefs.h <<_ACEOF
34990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34991 _ACEOF
34992
34993 fi
34994 done
34995
34996
34997 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34998 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34999 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35000   echo $ECHO_N "(cached) $ECHO_C" >&6
35001 else
35002   llvm_cv_llvmgcc_sanity="no"
35003 if test -x "$LLVMGCC" ; then
35004   cp /dev/null conftest.c
35005   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35006       grep 'target datalayout =' > /dev/null 2>&1
35007   if test $? -eq 0 ; then
35008     llvm_cv_llvmgcc_sanity="yes"
35009   fi
35010   rm conftest.c
35011 fi
35012 fi
35013 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35014 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35015
35016 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35017   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35018 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35019   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35020   LLVMCC1=$llvmcc1path
35021
35022   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35023   LLVMCC1PLUS=$llvmcc1pluspath
35024
35025   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35026   LLVMGCCDIR=$llvmgccdir
35027
35028   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35029   LLVMGCCLIBEXEC=$llvmgcclibexec
35030
35031   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35032   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35033   LLVMGCC_VERSION=$llvmgccversion
35034
35035   LLVMGCC_MAJVERS=$llvmgccmajvers
35036
35037   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35038   LLVMGCC_LANGS=$llvmgcclangs
35039
35040   { echo "$as_me:$LINENO: result: ok" >&5
35041 echo "${ECHO_T}ok" >&6; }
35042 fi
35043
35044 SHLIBEXT=$libltdl_cv_shlibext
35045
35046
35047 # Translate the various configuration directories and other basic
35048 # information into substitutions that will end up in Makefile.config.in
35049 # that these configured values can be used by the makefiles
35050 if test "${prefix}" = "NONE" ; then
35051   prefix="/usr/local"
35052 fi
35053 eval LLVM_PREFIX="${prefix}";
35054 eval LLVM_BINDIR="${prefix}/bin";
35055 eval LLVM_LIBDIR="${prefix}/lib";
35056 eval LLVM_DATADIR="${prefix}/share/llvm";
35057 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35058 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35059 eval LLVM_INCLUDEDIR="${prefix}/include";
35060 eval LLVM_INFODIR="${prefix}/info";
35061 eval LLVM_MANDIR="${prefix}/man";
35062 LLVM_CONFIGTIME=`date`
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074 # Place the various directores into the config.h file as #defines so that we
35075 # can know about the installation paths within LLVM.
35076
35077 cat >>confdefs.h <<_ACEOF
35078 #define LLVM_PREFIX "$LLVM_PREFIX"
35079 _ACEOF
35080
35081
35082 cat >>confdefs.h <<_ACEOF
35083 #define LLVM_BINDIR "$LLVM_BINDIR"
35084 _ACEOF
35085
35086
35087 cat >>confdefs.h <<_ACEOF
35088 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35089 _ACEOF
35090
35091
35092 cat >>confdefs.h <<_ACEOF
35093 #define LLVM_DATADIR "$LLVM_DATADIR"
35094 _ACEOF
35095
35096
35097 cat >>confdefs.h <<_ACEOF
35098 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35099 _ACEOF
35100
35101
35102 cat >>confdefs.h <<_ACEOF
35103 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35104 _ACEOF
35105
35106
35107 cat >>confdefs.h <<_ACEOF
35108 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35109 _ACEOF
35110
35111
35112 cat >>confdefs.h <<_ACEOF
35113 #define LLVM_INFODIR "$LLVM_INFODIR"
35114 _ACEOF
35115
35116
35117 cat >>confdefs.h <<_ACEOF
35118 #define LLVM_MANDIR "$LLVM_MANDIR"
35119 _ACEOF
35120
35121
35122 cat >>confdefs.h <<_ACEOF
35123 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35124 _ACEOF
35125
35126
35127 cat >>confdefs.h <<_ACEOF
35128 #define LLVM_HOSTTRIPLE "$host"
35129 _ACEOF
35130
35131
35132 # Determine which bindings to build.
35133 if test "$BINDINGS_TO_BUILD" = auto ; then
35134   BINDINGS_TO_BUILD=""
35135   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35136     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35137   fi
35138 fi
35139 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35140
35141
35142 # This isn't really configurey, but it avoids having to repeat the list in
35143 # other files.
35144 ALL_BINDINGS=ocaml
35145
35146
35147 # Do any work necessary to ensure that bindings have what they need.
35148 binding_prereqs_failed=0
35149 for a_binding in $BINDINGS_TO_BUILD ; do
35150   case "$a_binding" in
35151   ocaml)
35152     if test "x$OCAMLC" = x ; then
35153       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35154 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35155       binding_prereqs_failed=1
35156     fi
35157     if test "x$OCAMLDEP" = x ; then
35158       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35159 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35160       binding_prereqs_failed=1
35161     fi
35162     if test "x$OCAMLOPT" = x ; then
35163       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35164 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35165           fi
35166     if test "x$with_ocaml_libdir" != xauto ; then
35167       OCAML_LIBDIR=$with_ocaml_libdir
35168
35169     else
35170       ocaml_stdlib="`"$OCAMLC" -where`"
35171       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35172       then
35173         # ocaml stdlib is beneath our prefix; use stdlib
35174         OCAML_LIBDIR=$ocaml_stdlib
35175
35176       else
35177         # ocaml stdlib is outside our prefix; use libdir/ocaml
35178         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35179
35180       fi
35181     fi
35182     ;;
35183   esac
35184 done
35185 if test "$binding_prereqs_failed" = 1 ; then
35186   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35187 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35188    { (exit 1); exit 1; }; }
35189 fi
35190
35191 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35192 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35193 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35194   echo $ECHO_N "(cached) $ECHO_C" >&6
35195 else
35196    ac_ext=cpp
35197 ac_cpp='$CXXCPP $CPPFLAGS'
35198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35201
35202   oldcxxflags="$CXXFLAGS"
35203   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35204   cat >conftest.$ac_ext <<_ACEOF
35205 /* confdefs.h.  */
35206 _ACEOF
35207 cat confdefs.h >>conftest.$ac_ext
35208 cat >>conftest.$ac_ext <<_ACEOF
35209 /* end confdefs.h.  */
35210
35211 int
35212 main ()
35213 {
35214
35215   ;
35216   return 0;
35217 }
35218 _ACEOF
35219 rm -f conftest.$ac_objext
35220 if { (ac_try="$ac_compile"
35221 case "(($ac_try" in
35222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35223   *) ac_try_echo=$ac_try;;
35224 esac
35225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35226   (eval "$ac_compile") 2>conftest.er1
35227   ac_status=$?
35228   grep -v '^ *+' conftest.er1 >conftest.err
35229   rm -f conftest.er1
35230   cat conftest.err >&5
35231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232   (exit $ac_status); } &&
35233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35234   { (case "(($ac_try" in
35235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35236   *) ac_try_echo=$ac_try;;
35237 esac
35238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35239   (eval "$ac_try") 2>&5
35240   ac_status=$?
35241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242   (exit $ac_status); }; } &&
35243          { ac_try='test -s conftest.$ac_objext'
35244   { (case "(($ac_try" in
35245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35246   *) ac_try_echo=$ac_try;;
35247 esac
35248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35249   (eval "$ac_try") 2>&5
35250   ac_status=$?
35251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252   (exit $ac_status); }; }; then
35253   llvm_cv_cxx_visibility_inlines_hidden=yes
35254 else
35255   echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.$ac_ext >&5
35257
35258         llvm_cv_cxx_visibility_inlines_hidden=no
35259 fi
35260
35261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262   CXXFLAGS="$oldcxxflags"
35263   ac_ext=c
35264 ac_cpp='$CPP $CPPFLAGS'
35265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35268
35269
35270 fi
35271 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35272 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35273 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35274   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35275
35276 else
35277   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35278
35279 fi
35280
35281
35282 if test "$llvm_cv_link_use_r" = "yes" ; then
35283   RPATH="-Wl,-R"
35284 else
35285   RPATH="-Wl,-rpath"
35286 fi
35287
35288
35289 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35290   RDYNAMIC="-Wl,-export-dynamic"
35291 else
35292   RDYNAMIC=""
35293 fi
35294
35295
35296
35297 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35298
35299 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35300
35301 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35302
35303 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35304
35305 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35306
35307
35308 ac_config_files="$ac_config_files Makefile.config"
35309
35310
35311 ac_config_files="$ac_config_files llvm.spec"
35312
35313
35314 ac_config_files="$ac_config_files docs/doxygen.cfg"
35315
35316
35317 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35318
35319
35320 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35321
35322
35323 ac_config_commands="$ac_config_commands setup"
35324
35325 ac_config_commands="$ac_config_commands Makefile"
35326
35327
35328 ac_config_commands="$ac_config_commands Makefile.common"
35329
35330
35331 ac_config_commands="$ac_config_commands examples/Makefile"
35332
35333
35334 ac_config_commands="$ac_config_commands lib/Makefile"
35335
35336
35337 ac_config_commands="$ac_config_commands runtime/Makefile"
35338
35339
35340 ac_config_commands="$ac_config_commands test/Makefile"
35341
35342
35343 ac_config_commands="$ac_config_commands test/Makefile.tests"
35344
35345
35346 ac_config_commands="$ac_config_commands unittests/Makefile"
35347
35348
35349 ac_config_commands="$ac_config_commands tools/Makefile"
35350
35351
35352 ac_config_commands="$ac_config_commands utils/Makefile"
35353
35354
35355 ac_config_commands="$ac_config_commands projects/Makefile"
35356
35357
35358 ac_config_commands="$ac_config_commands bindings/Makefile"
35359
35360
35361 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35362
35363
35364
35365 cat >confcache <<\_ACEOF
35366 # This file is a shell script that caches the results of configure
35367 # tests run on this system so they can be shared between configure
35368 # scripts and configure runs, see configure's option --config-cache.
35369 # It is not useful on other systems.  If it contains results you don't
35370 # want to keep, you may remove or edit it.
35371 #
35372 # config.status only pays attention to the cache file if you give it
35373 # the --recheck option to rerun configure.
35374 #
35375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35377 # following values.
35378
35379 _ACEOF
35380
35381 # The following way of writing the cache mishandles newlines in values,
35382 # but we know of no workaround that is simple, portable, and efficient.
35383 # So, we kill variables containing newlines.
35384 # Ultrix sh set writes to stderr and can't be redirected directly,
35385 # and sets the high bit in the cache file unless we assign to the vars.
35386 (
35387   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35388     eval ac_val=\$$ac_var
35389     case $ac_val in #(
35390     *${as_nl}*)
35391       case $ac_var in #(
35392       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35393 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35394       esac
35395       case $ac_var in #(
35396       _ | IFS | as_nl) ;; #(
35397       *) $as_unset $ac_var ;;
35398       esac ;;
35399     esac
35400   done
35401
35402   (set) 2>&1 |
35403     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35404     *${as_nl}ac_space=\ *)
35405       # `set' does not quote correctly, so add quotes (double-quote
35406       # substitution turns \\\\ into \\, and sed turns \\ into \).
35407       sed -n \
35408         "s/'/'\\\\''/g;
35409           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35410       ;; #(
35411     *)
35412       # `set' quotes correctly as required by POSIX, so do not add quotes.
35413       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35414       ;;
35415     esac |
35416     sort
35417 ) |
35418   sed '
35419      /^ac_cv_env_/b end
35420      t clear
35421      :clear
35422      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35423      t end
35424      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35425      :end' >>confcache
35426 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35427   if test -w "$cache_file"; then
35428     test "x$cache_file" != "x/dev/null" &&
35429       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35430 echo "$as_me: updating cache $cache_file" >&6;}
35431     cat confcache >$cache_file
35432   else
35433     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35434 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35435   fi
35436 fi
35437 rm -f confcache
35438
35439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35440 # Let make expand exec_prefix.
35441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35442
35443 DEFS=-DHAVE_CONFIG_H
35444
35445 ac_libobjs=
35446 ac_ltlibobjs=
35447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35448   # 1. Remove the extension, and $U if already installed.
35449   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35450   ac_i=`echo "$ac_i" | sed "$ac_script"`
35451   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35452   #    will be set to the directory where LIBOBJS objects are built.
35453   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35454   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35455 done
35456 LIBOBJS=$ac_libobjs
35457
35458 LTLIBOBJS=$ac_ltlibobjs
35459
35460
35461 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35462   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35463 Usually this means the macro was only invoked conditionally." >&5
35464 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35465 Usually this means the macro was only invoked conditionally." >&2;}
35466    { (exit 1); exit 1; }; }
35467 fi
35468 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35469   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35470 Usually this means the macro was only invoked conditionally." >&5
35471 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35472 Usually this means the macro was only invoked conditionally." >&2;}
35473    { (exit 1); exit 1; }; }
35474 fi
35475
35476 : ${CONFIG_STATUS=./config.status}
35477 ac_clean_files_save=$ac_clean_files
35478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35481 cat >$CONFIG_STATUS <<_ACEOF
35482 #! $SHELL
35483 # Generated by $as_me.
35484 # Run this file to recreate the current configuration.
35485 # Compiler output produced by configure, useful for debugging
35486 # configure, is in config.log if it exists.
35487
35488 debug=false
35489 ac_cs_recheck=false
35490 ac_cs_silent=false
35491 SHELL=\${CONFIG_SHELL-$SHELL}
35492 _ACEOF
35493
35494 cat >>$CONFIG_STATUS <<\_ACEOF
35495 ## --------------------- ##
35496 ## M4sh Initialization.  ##
35497 ## --------------------- ##
35498
35499 # Be Bourne compatible
35500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35501   emulate sh
35502   NULLCMD=:
35503   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35504   # is contrary to our usage.  Disable this feature.
35505   alias -g '${1+"$@"}'='"$@"'
35506   setopt NO_GLOB_SUBST
35507 else
35508   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35509 fi
35510 BIN_SH=xpg4; export BIN_SH # for Tru64
35511 DUALCASE=1; export DUALCASE # for MKS sh
35512
35513
35514 # PATH needs CR
35515 # Avoid depending upon Character Ranges.
35516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35519 as_cr_digits='0123456789'
35520 as_cr_alnum=$as_cr_Letters$as_cr_digits
35521
35522 # The user is always right.
35523 if test "${PATH_SEPARATOR+set}" != set; then
35524   echo "#! /bin/sh" >conf$$.sh
35525   echo  "exit 0"   >>conf$$.sh
35526   chmod +x conf$$.sh
35527   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35528     PATH_SEPARATOR=';'
35529   else
35530     PATH_SEPARATOR=:
35531   fi
35532   rm -f conf$$.sh
35533 fi
35534
35535 # Support unset when possible.
35536 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35537   as_unset=unset
35538 else
35539   as_unset=false
35540 fi
35541
35542
35543 # IFS
35544 # We need space, tab and new line, in precisely that order.  Quoting is
35545 # there to prevent editors from complaining about space-tab.
35546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35547 # splitting by setting IFS to empty value.)
35548 as_nl='
35549 '
35550 IFS=" ""        $as_nl"
35551
35552 # Find who we are.  Look in the path if we contain no directory separator.
35553 case $0 in
35554   *[\\/]* ) as_myself=$0 ;;
35555   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35556 for as_dir in $PATH
35557 do
35558   IFS=$as_save_IFS
35559   test -z "$as_dir" && as_dir=.
35560   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35561 done
35562 IFS=$as_save_IFS
35563
35564      ;;
35565 esac
35566 # We did not find ourselves, most probably we were run as `sh COMMAND'
35567 # in which case we are not to be found in the path.
35568 if test "x$as_myself" = x; then
35569   as_myself=$0
35570 fi
35571 if test ! -f "$as_myself"; then
35572   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35573   { (exit 1); exit 1; }
35574 fi
35575
35576 # Work around bugs in pre-3.0 UWIN ksh.
35577 for as_var in ENV MAIL MAILPATH
35578 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35579 done
35580 PS1='$ '
35581 PS2='> '
35582 PS4='+ '
35583
35584 # NLS nuisances.
35585 for as_var in \
35586   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35587   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35588   LC_TELEPHONE LC_TIME
35589 do
35590   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35591     eval $as_var=C; export $as_var
35592   else
35593     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35594   fi
35595 done
35596
35597 # Required to use basename.
35598 if expr a : '\(a\)' >/dev/null 2>&1 &&
35599    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35600   as_expr=expr
35601 else
35602   as_expr=false
35603 fi
35604
35605 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35606   as_basename=basename
35607 else
35608   as_basename=false
35609 fi
35610
35611
35612 # Name of the executable.
35613 as_me=`$as_basename -- "$0" ||
35614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35615          X"$0" : 'X\(//\)$' \| \
35616          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35617 echo X/"$0" |
35618     sed '/^.*\/\([^/][^/]*\)\/*$/{
35619             s//\1/
35620             q
35621           }
35622           /^X\/\(\/\/\)$/{
35623             s//\1/
35624             q
35625           }
35626           /^X\/\(\/\).*/{
35627             s//\1/
35628             q
35629           }
35630           s/.*/./; q'`
35631
35632 # CDPATH.
35633 $as_unset CDPATH
35634
35635
35636
35637   as_lineno_1=$LINENO
35638   as_lineno_2=$LINENO
35639   test "x$as_lineno_1" != "x$as_lineno_2" &&
35640   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35641
35642   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35643   # uniformly replaced by the line number.  The first 'sed' inserts a
35644   # line-number line after each line using $LINENO; the second 'sed'
35645   # does the real work.  The second script uses 'N' to pair each
35646   # line-number line with the line containing $LINENO, and appends
35647   # trailing '-' during substitution so that $LINENO is not a special
35648   # case at line end.
35649   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35650   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35651   # E. McMahon (1931-1989) for sed's syntax.  :-)
35652   sed -n '
35653     p
35654     /[$]LINENO/=
35655   ' <$as_myself |
35656     sed '
35657       s/[$]LINENO.*/&-/
35658       t lineno
35659       b
35660       :lineno
35661       N
35662       :loop
35663       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35664       t loop
35665       s/-\n.*//
35666     ' >$as_me.lineno &&
35667   chmod +x "$as_me.lineno" ||
35668     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35669    { (exit 1); exit 1; }; }
35670
35671   # Don't try to exec as it changes $[0], causing all sort of problems
35672   # (the dirname of $[0] is not the place where we might find the
35673   # original and so on.  Autoconf is especially sensitive to this).
35674   . "./$as_me.lineno"
35675   # Exit status is that of the last command.
35676   exit
35677 }
35678
35679
35680 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35681   as_dirname=dirname
35682 else
35683   as_dirname=false
35684 fi
35685
35686 ECHO_C= ECHO_N= ECHO_T=
35687 case `echo -n x` in
35688 -n*)
35689   case `echo 'x\c'` in
35690   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35691   *)   ECHO_C='\c';;
35692   esac;;
35693 *)
35694   ECHO_N='-n';;
35695 esac
35696
35697 if expr a : '\(a\)' >/dev/null 2>&1 &&
35698    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35699   as_expr=expr
35700 else
35701   as_expr=false
35702 fi
35703
35704 rm -f conf$$ conf$$.exe conf$$.file
35705 if test -d conf$$.dir; then
35706   rm -f conf$$.dir/conf$$.file
35707 else
35708   rm -f conf$$.dir
35709   mkdir conf$$.dir
35710 fi
35711 echo >conf$$.file
35712 if ln -s conf$$.file conf$$ 2>/dev/null; then
35713   as_ln_s='ln -s'
35714   # ... but there are two gotchas:
35715   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35716   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35717   # In both cases, we have to default to `cp -p'.
35718   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35719     as_ln_s='cp -p'
35720 elif ln conf$$.file conf$$ 2>/dev/null; then
35721   as_ln_s=ln
35722 else
35723   as_ln_s='cp -p'
35724 fi
35725 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35726 rmdir conf$$.dir 2>/dev/null
35727
35728 if mkdir -p . 2>/dev/null; then
35729   as_mkdir_p=:
35730 else
35731   test -d ./-p && rmdir ./-p
35732   as_mkdir_p=false
35733 fi
35734
35735 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35736 # systems may use methods other than mode bits to determine executability.
35737 cat >conf$$.file <<_ASEOF
35738 #! /bin/sh
35739 exit 0
35740 _ASEOF
35741 chmod +x conf$$.file
35742 if test -x conf$$.file >/dev/null 2>&1; then
35743   as_executable_p="test -x"
35744 else
35745   as_executable_p=:
35746 fi
35747 rm -f conf$$.file
35748
35749 # Sed expression to map a string onto a valid CPP name.
35750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35751
35752 # Sed expression to map a string onto a valid variable name.
35753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35754
35755
35756 exec 6>&1
35757
35758 # Save the log message, to keep $[0] and so on meaningful, and to
35759 # report actual input values of CONFIG_FILES etc. instead of their
35760 # values after options handling.
35761 ac_log="
35762 This file was extended by llvm $as_me 2.7svn, which was
35763 generated by GNU Autoconf 2.60.  Invocation command line was
35764
35765   CONFIG_FILES    = $CONFIG_FILES
35766   CONFIG_HEADERS  = $CONFIG_HEADERS
35767   CONFIG_LINKS    = $CONFIG_LINKS
35768   CONFIG_COMMANDS = $CONFIG_COMMANDS
35769   $ $0 $@
35770
35771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35772 "
35773
35774 _ACEOF
35775
35776 cat >>$CONFIG_STATUS <<_ACEOF
35777 # Files that config.status was made for.
35778 config_files="$ac_config_files"
35779 config_headers="$ac_config_headers"
35780 config_commands="$ac_config_commands"
35781
35782 _ACEOF
35783
35784 cat >>$CONFIG_STATUS <<\_ACEOF
35785 ac_cs_usage="\
35786 \`$as_me' instantiates files from templates according to the
35787 current configuration.
35788
35789 Usage: $0 [OPTIONS] [FILE]...
35790
35791   -h, --help       print this help, then exit
35792   -V, --version    print version number, then exit
35793   -q, --quiet      do not print progress messages
35794   -d, --debug      don't remove temporary files
35795       --recheck    update $as_me by reconfiguring in the same conditions
35796   --file=FILE[:TEMPLATE]
35797                    instantiate the configuration file FILE
35798   --header=FILE[:TEMPLATE]
35799                    instantiate the configuration header FILE
35800
35801 Configuration files:
35802 $config_files
35803
35804 Configuration headers:
35805 $config_headers
35806
35807 Configuration commands:
35808 $config_commands
35809
35810 Report bugs to <bug-autoconf@gnu.org>."
35811
35812 _ACEOF
35813 cat >>$CONFIG_STATUS <<_ACEOF
35814 ac_cs_version="\\
35815 llvm config.status 2.7svn
35816 configured by $0, generated by GNU Autoconf 2.60,
35817   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35818
35819 Copyright (C) 2006 Free Software Foundation, Inc.
35820 This config.status script is free software; the Free Software Foundation
35821 gives unlimited permission to copy, distribute and modify it."
35822
35823 ac_pwd='$ac_pwd'
35824 srcdir='$srcdir'
35825 INSTALL='$INSTALL'
35826 _ACEOF
35827
35828 cat >>$CONFIG_STATUS <<\_ACEOF
35829 # If no file are specified by the user, then we need to provide default
35830 # value.  By we need to know if files were specified by the user.
35831 ac_need_defaults=:
35832 while test $# != 0
35833 do
35834   case $1 in
35835   --*=*)
35836     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35837     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35838     ac_shift=:
35839     ;;
35840   *)
35841     ac_option=$1
35842     ac_optarg=$2
35843     ac_shift=shift
35844     ;;
35845   esac
35846
35847   case $ac_option in
35848   # Handling of the options.
35849   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35850     ac_cs_recheck=: ;;
35851   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35852     echo "$ac_cs_version"; exit ;;
35853   --debug | --debu | --deb | --de | --d | -d )
35854     debug=: ;;
35855   --file | --fil | --fi | --f )
35856     $ac_shift
35857     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35858     ac_need_defaults=false;;
35859   --header | --heade | --head | --hea )
35860     $ac_shift
35861     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35862     ac_need_defaults=false;;
35863   --he | --h)
35864     # Conflict between --help and --header
35865     { echo "$as_me: error: ambiguous option: $1
35866 Try \`$0 --help' for more information." >&2
35867    { (exit 1); exit 1; }; };;
35868   --help | --hel | -h )
35869     echo "$ac_cs_usage"; exit ;;
35870   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35871   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35872     ac_cs_silent=: ;;
35873
35874   # This is an error.
35875   -*) { echo "$as_me: error: unrecognized option: $1
35876 Try \`$0 --help' for more information." >&2
35877    { (exit 1); exit 1; }; } ;;
35878
35879   *) ac_config_targets="$ac_config_targets $1"
35880      ac_need_defaults=false ;;
35881
35882   esac
35883   shift
35884 done
35885
35886 ac_configure_extra_args=
35887
35888 if $ac_cs_silent; then
35889   exec 6>/dev/null
35890   ac_configure_extra_args="$ac_configure_extra_args --silent"
35891 fi
35892
35893 _ACEOF
35894 cat >>$CONFIG_STATUS <<_ACEOF
35895 if \$ac_cs_recheck; then
35896   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35897   CONFIG_SHELL=$SHELL
35898   export CONFIG_SHELL
35899   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35900 fi
35901
35902 _ACEOF
35903 cat >>$CONFIG_STATUS <<\_ACEOF
35904 exec 5>>config.log
35905 {
35906   echo
35907   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35908 ## Running $as_me. ##
35909 _ASBOX
35910   echo "$ac_log"
35911 } >&5
35912
35913 _ACEOF
35914 cat >>$CONFIG_STATUS <<_ACEOF
35915 #
35916 # INIT-COMMANDS
35917 #
35918 llvm_src="${srcdir}"
35919
35920 _ACEOF
35921
35922 cat >>$CONFIG_STATUS <<\_ACEOF
35923
35924 # Handling of arguments.
35925 for ac_config_target in $ac_config_targets
35926 do
35927   case $ac_config_target in
35928     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35929     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35930     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35931     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35932     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35933     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35934     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35935     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35936     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35937     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35938     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35939     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35940     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35941     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35942     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35943     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35944     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35945     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35946     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35947     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35948     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35949     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35950     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35951     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35952
35953   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35955    { (exit 1); exit 1; }; };;
35956   esac
35957 done
35958
35959
35960 # If the user did not use the arguments to specify the items to instantiate,
35961 # then the envvar interface is used.  Set only those that are not.
35962 # We use the long form for the default assignment because of an extremely
35963 # bizarre bug on SunOS 4.1.3.
35964 if $ac_need_defaults; then
35965   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35966   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35967   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35968 fi
35969
35970 # Have a temporary directory for convenience.  Make it in the build tree
35971 # simply because there is no reason against having it here, and in addition,
35972 # creating and moving files from /tmp can sometimes cause problems.
35973 # Hook for its removal unless debugging.
35974 # Note that there is a small window in which the directory will not be cleaned:
35975 # after its creation but before its name has been assigned to `$tmp'.
35976 $debug ||
35977 {
35978   tmp=
35979   trap 'exit_status=$?
35980   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35981 ' 0
35982   trap '{ (exit 1); exit 1; }' 1 2 13 15
35983 }
35984 # Create a (secure) tmp directory for tmp files.
35985
35986 {
35987   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35988   test -n "$tmp" && test -d "$tmp"
35989 }  ||
35990 {
35991   tmp=./conf$$-$RANDOM
35992   (umask 077 && mkdir "$tmp")
35993 } ||
35994 {
35995    echo "$me: cannot create a temporary directory in ." >&2
35996    { (exit 1); exit 1; }
35997 }
35998
35999 #
36000 # Set up the sed scripts for CONFIG_FILES section.
36001 #
36002
36003 # No need to generate the scripts if there are no CONFIG_FILES.
36004 # This happens for instance when ./config.status config.h
36005 if test -n "$CONFIG_FILES"; then
36006
36007 _ACEOF
36008
36009
36010
36011 ac_delim='%!_!# '
36012 for ac_last_try in false false false false false :; do
36013   cat >conf$$subs.sed <<_ACEOF
36014 SHELL!$SHELL$ac_delim
36015 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36016 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36017 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36018 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36019 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36020 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36021 exec_prefix!$exec_prefix$ac_delim
36022 prefix!$prefix$ac_delim
36023 program_transform_name!$program_transform_name$ac_delim
36024 bindir!$bindir$ac_delim
36025 sbindir!$sbindir$ac_delim
36026 libexecdir!$libexecdir$ac_delim
36027 datarootdir!$datarootdir$ac_delim
36028 datadir!$datadir$ac_delim
36029 sysconfdir!$sysconfdir$ac_delim
36030 sharedstatedir!$sharedstatedir$ac_delim
36031 localstatedir!$localstatedir$ac_delim
36032 includedir!$includedir$ac_delim
36033 oldincludedir!$oldincludedir$ac_delim
36034 docdir!$docdir$ac_delim
36035 infodir!$infodir$ac_delim
36036 htmldir!$htmldir$ac_delim
36037 dvidir!$dvidir$ac_delim
36038 pdfdir!$pdfdir$ac_delim
36039 psdir!$psdir$ac_delim
36040 libdir!$libdir$ac_delim
36041 localedir!$localedir$ac_delim
36042 mandir!$mandir$ac_delim
36043 DEFS!$DEFS$ac_delim
36044 ECHO_C!$ECHO_C$ac_delim
36045 ECHO_N!$ECHO_N$ac_delim
36046 ECHO_T!$ECHO_T$ac_delim
36047 LIBS!$LIBS$ac_delim
36048 build_alias!$build_alias$ac_delim
36049 host_alias!$host_alias$ac_delim
36050 target_alias!$target_alias$ac_delim
36051 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36052 subdirs!$subdirs$ac_delim
36053 build!$build$ac_delim
36054 build_cpu!$build_cpu$ac_delim
36055 build_vendor!$build_vendor$ac_delim
36056 build_os!$build_os$ac_delim
36057 host!$host$ac_delim
36058 host_cpu!$host_cpu$ac_delim
36059 host_vendor!$host_vendor$ac_delim
36060 host_os!$host_os$ac_delim
36061 target!$target$ac_delim
36062 target_cpu!$target_cpu$ac_delim
36063 target_vendor!$target_vendor$ac_delim
36064 target_os!$target_os$ac_delim
36065 OS!$OS$ac_delim
36066 HOST_OS!$HOST_OS$ac_delim
36067 TARGET_OS!$TARGET_OS$ac_delim
36068 LINKALL!$LINKALL$ac_delim
36069 NOLINKALL!$NOLINKALL$ac_delim
36070 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36071 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36072 ARCH!$ARCH$ac_delim
36073 ENDIAN!$ENDIAN$ac_delim
36074 CC!$CC$ac_delim
36075 CFLAGS!$CFLAGS$ac_delim
36076 LDFLAGS!$LDFLAGS$ac_delim
36077 CPPFLAGS!$CPPFLAGS$ac_delim
36078 ac_ct_CC!$ac_ct_CC$ac_delim
36079 EXEEXT!$EXEEXT$ac_delim
36080 OBJEXT!$OBJEXT$ac_delim
36081 CPP!$CPP$ac_delim
36082 GREP!$GREP$ac_delim
36083 EGREP!$EGREP$ac_delim
36084 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36085 BUILD_CC!$BUILD_CC$ac_delim
36086 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36087 BUILD_CXX!$BUILD_CXX$ac_delim
36088 CVSBUILD!$CVSBUILD$ac_delim
36089 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36090 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36091 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36092 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36093 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36094 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36095 JIT!$JIT$ac_delim
36096 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36097 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36098 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36099 ENABLE_PIC!$ENABLE_PIC$ac_delim
36100 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36101 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36102 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36103 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36104 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36105 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36106 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36107 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36108 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36109 CXX!$CXX$ac_delim
36110 CXXFLAGS!$CXXFLAGS$ac_delim
36111 _ACEOF
36112
36113   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36114     break
36115   elif $ac_last_try; then
36116     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36118    { (exit 1); exit 1; }; }
36119   else
36120     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36121   fi
36122 done
36123
36124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36125 if test -n "$ac_eof"; then
36126   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36127   ac_eof=`expr $ac_eof + 1`
36128 fi
36129
36130 cat >>$CONFIG_STATUS <<_ACEOF
36131 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36133 _ACEOF
36134 sed '
36135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36136 s/^/s,@/; s/!/@,|#_!!_#|/
36137 :n
36138 t n
36139 s/'"$ac_delim"'$/,g/; t
36140 s/$/\\/; p
36141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36142 ' >>$CONFIG_STATUS <conf$$subs.sed
36143 rm -f conf$$subs.sed
36144 cat >>$CONFIG_STATUS <<_ACEOF
36145 CEOF$ac_eof
36146 _ACEOF
36147
36148
36149 ac_delim='%!_!# '
36150 for ac_last_try in false false false false false :; do
36151   cat >conf$$subs.sed <<_ACEOF
36152 ac_ct_CXX!$ac_ct_CXX$ac_delim
36153 NM!$NM$ac_delim
36154 ifGNUmake!$ifGNUmake$ac_delim
36155 LN_S!$LN_S$ac_delim
36156 CMP!$CMP$ac_delim
36157 CP!$CP$ac_delim
36158 DATE!$DATE$ac_delim
36159 FIND!$FIND$ac_delim
36160 MKDIR!$MKDIR$ac_delim
36161 MV!$MV$ac_delim
36162 RANLIB!$RANLIB$ac_delim
36163 RM!$RM$ac_delim
36164 SED!$SED$ac_delim
36165 TAR!$TAR$ac_delim
36166 BINPWD!$BINPWD$ac_delim
36167 GRAPHVIZ!$GRAPHVIZ$ac_delim
36168 DOT!$DOT$ac_delim
36169 FDP!$FDP$ac_delim
36170 NEATO!$NEATO$ac_delim
36171 TWOPI!$TWOPI$ac_delim
36172 CIRCO!$CIRCO$ac_delim
36173 GV!$GV$ac_delim
36174 DOTTY!$DOTTY$ac_delim
36175 PERL!$PERL$ac_delim
36176 HAVE_PERL!$HAVE_PERL$ac_delim
36177 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36178 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36179 INSTALL_DATA!$INSTALL_DATA$ac_delim
36180 BZIP2!$BZIP2$ac_delim
36181 DOXYGEN!$DOXYGEN$ac_delim
36182 GROFF!$GROFF$ac_delim
36183 GZIP!$GZIP$ac_delim
36184 POD2HTML!$POD2HTML$ac_delim
36185 POD2MAN!$POD2MAN$ac_delim
36186 RUNTEST!$RUNTEST$ac_delim
36187 TCLSH!$TCLSH$ac_delim
36188 ZIP!$ZIP$ac_delim
36189 OCAMLC!$OCAMLC$ac_delim
36190 OCAMLOPT!$OCAMLOPT$ac_delim
36191 OCAMLDEP!$OCAMLDEP$ac_delim
36192 OCAMLDOC!$OCAMLDOC$ac_delim
36193 GAS!$GAS$ac_delim
36194 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36195 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36196 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36197 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36198 LIBADD_DL!$LIBADD_DL$ac_delim
36199 ECHO!$ECHO$ac_delim
36200 AR!$AR$ac_delim
36201 STRIP!$STRIP$ac_delim
36202 CXXCPP!$CXXCPP$ac_delim
36203 F77!$F77$ac_delim
36204 FFLAGS!$FFLAGS$ac_delim
36205 ac_ct_F77!$ac_ct_F77$ac_delim
36206 LIBTOOL!$LIBTOOL$ac_delim
36207 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36208 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36209 LLVMGCC!$LLVMGCC$ac_delim
36210 LLVMGXX!$LLVMGXX$ac_delim
36211 USE_UDIS86!$USE_UDIS86$ac_delim
36212 USE_OPROFILE!$USE_OPROFILE$ac_delim
36213 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36214 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36215 ALLOCA!$ALLOCA$ac_delim
36216 MMAP_FILE!$MMAP_FILE$ac_delim
36217 LLVMCC1!$LLVMCC1$ac_delim
36218 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36219 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36220 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36221 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36222 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36223 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36224 SHLIBEXT!$SHLIBEXT$ac_delim
36225 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36226 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36227 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36228 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36229 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36230 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36231 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36232 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36233 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36234 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36235 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36236 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36237 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36238 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36239 RPATH!$RPATH$ac_delim
36240 RDYNAMIC!$RDYNAMIC$ac_delim
36241 LIBOBJS!$LIBOBJS$ac_delim
36242 LTLIBOBJS!$LTLIBOBJS$ac_delim
36243 _ACEOF
36244
36245   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
36246     break
36247   elif $ac_last_try; then
36248     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36249 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36250    { (exit 1); exit 1; }; }
36251   else
36252     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36253   fi
36254 done
36255
36256 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36257 if test -n "$ac_eof"; then
36258   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36259   ac_eof=`expr $ac_eof + 1`
36260 fi
36261
36262 cat >>$CONFIG_STATUS <<_ACEOF
36263 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36265 _ACEOF
36266 sed '
36267 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36268 s/^/s,@/; s/!/@,|#_!!_#|/
36269 :n
36270 t n
36271 s/'"$ac_delim"'$/,g/; t
36272 s/$/\\/; p
36273 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36274 ' >>$CONFIG_STATUS <conf$$subs.sed
36275 rm -f conf$$subs.sed
36276 cat >>$CONFIG_STATUS <<_ACEOF
36277 :end
36278 s/|#_!!_#|//g
36279 CEOF$ac_eof
36280 _ACEOF
36281
36282
36283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36285 # trailing colons and then remove the whole line if VPATH becomes empty
36286 # (actually we leave an empty line to preserve line numbers).
36287 if test "x$srcdir" = x.; then
36288   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36289 s/:*\$(srcdir):*/:/
36290 s/:*\${srcdir}:*/:/
36291 s/:*@srcdir@:*/:/
36292 s/^\([^=]*=[     ]*\):*/\1/
36293 s/:*$//
36294 s/^[^=]*=[       ]*$//
36295 }'
36296 fi
36297
36298 cat >>$CONFIG_STATUS <<\_ACEOF
36299 fi # test -n "$CONFIG_FILES"
36300
36301
36302 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36303 do
36304   case $ac_tag in
36305   :[FHLC]) ac_mode=$ac_tag; continue;;
36306   esac
36307   case $ac_mode$ac_tag in
36308   :[FHL]*:*);;
36309   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36310 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36311    { (exit 1); exit 1; }; };;
36312   :[FH]-) ac_tag=-:-;;
36313   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36314   esac
36315   ac_save_IFS=$IFS
36316   IFS=:
36317   set x $ac_tag
36318   IFS=$ac_save_IFS
36319   shift
36320   ac_file=$1
36321   shift
36322
36323   case $ac_mode in
36324   :L) ac_source=$1;;
36325   :[FH])
36326     ac_file_inputs=
36327     for ac_f
36328     do
36329       case $ac_f in
36330       -) ac_f="$tmp/stdin";;
36331       *) # Look for the file first in the build tree, then in the source tree
36332          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36333          # because $ac_f cannot contain `:'.
36334          test -f "$ac_f" ||
36335            case $ac_f in
36336            [\\/$]*) false;;
36337            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36338            esac ||
36339            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36340 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36341    { (exit 1); exit 1; }; };;
36342       esac
36343       ac_file_inputs="$ac_file_inputs $ac_f"
36344     done
36345
36346     # Let's still pretend it is `configure' which instantiates (i.e., don't
36347     # use $as_me), people would be surprised to read:
36348     #    /* config.h.  Generated by config.status.  */
36349     configure_input="Generated from "`IFS=:
36350           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36351     if test x"$ac_file" != x-; then
36352       configure_input="$ac_file.  $configure_input"
36353       { echo "$as_me:$LINENO: creating $ac_file" >&5
36354 echo "$as_me: creating $ac_file" >&6;}
36355     fi
36356
36357     case $ac_tag in
36358     *:-:* | *:-) cat >"$tmp/stdin";;
36359     esac
36360     ;;
36361   esac
36362
36363   ac_dir=`$as_dirname -- "$ac_file" ||
36364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36365          X"$ac_file" : 'X\(//\)[^/]' \| \
36366          X"$ac_file" : 'X\(//\)$' \| \
36367          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36368 echo X"$ac_file" |
36369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36370             s//\1/
36371             q
36372           }
36373           /^X\(\/\/\)[^/].*/{
36374             s//\1/
36375             q
36376           }
36377           /^X\(\/\/\)$/{
36378             s//\1/
36379             q
36380           }
36381           /^X\(\/\).*/{
36382             s//\1/
36383             q
36384           }
36385           s/.*/./; q'`
36386   { as_dir="$ac_dir"
36387   case $as_dir in #(
36388   -*) as_dir=./$as_dir;;
36389   esac
36390   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36391     as_dirs=
36392     while :; do
36393       case $as_dir in #(
36394       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36395       *) as_qdir=$as_dir;;
36396       esac
36397       as_dirs="'$as_qdir' $as_dirs"
36398       as_dir=`$as_dirname -- "$as_dir" ||
36399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36400          X"$as_dir" : 'X\(//\)[^/]' \| \
36401          X"$as_dir" : 'X\(//\)$' \| \
36402          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36403 echo X"$as_dir" |
36404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36405             s//\1/
36406             q
36407           }
36408           /^X\(\/\/\)[^/].*/{
36409             s//\1/
36410             q
36411           }
36412           /^X\(\/\/\)$/{
36413             s//\1/
36414             q
36415           }
36416           /^X\(\/\).*/{
36417             s//\1/
36418             q
36419           }
36420           s/.*/./; q'`
36421       test -d "$as_dir" && break
36422     done
36423     test -z "$as_dirs" || eval "mkdir $as_dirs"
36424   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36425 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36426    { (exit 1); exit 1; }; }; }
36427   ac_builddir=.
36428
36429 case "$ac_dir" in
36430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36431 *)
36432   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36433   # A ".." for each directory in $ac_dir_suffix.
36434   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36435   case $ac_top_builddir_sub in
36436   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36437   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36438   esac ;;
36439 esac
36440 ac_abs_top_builddir=$ac_pwd
36441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36442 # for backward compatibility:
36443 ac_top_builddir=$ac_top_build_prefix
36444
36445 case $srcdir in
36446   .)  # We are building in place.
36447     ac_srcdir=.
36448     ac_top_srcdir=$ac_top_builddir_sub
36449     ac_abs_top_srcdir=$ac_pwd ;;
36450   [\\/]* | ?:[\\/]* )  # Absolute name.
36451     ac_srcdir=$srcdir$ac_dir_suffix;
36452     ac_top_srcdir=$srcdir
36453     ac_abs_top_srcdir=$srcdir ;;
36454   *) # Relative name.
36455     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36456     ac_top_srcdir=$ac_top_build_prefix$srcdir
36457     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36458 esac
36459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36460
36461
36462   case $ac_mode in
36463   :F)
36464   #
36465   # CONFIG_FILE
36466   #
36467
36468   case $INSTALL in
36469   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36470   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36471   esac
36472 _ACEOF
36473
36474 cat >>$CONFIG_STATUS <<\_ACEOF
36475 # If the template does not know about datarootdir, expand it.
36476 # FIXME: This hack should be removed a few years after 2.60.
36477 ac_datarootdir_hack=; ac_datarootdir_seen=
36478
36479 case `sed -n '/datarootdir/ {
36480   p
36481   q
36482 }
36483 /@datadir@/p
36484 /@docdir@/p
36485 /@infodir@/p
36486 /@localedir@/p
36487 /@mandir@/p
36488 ' $ac_file_inputs` in
36489 *datarootdir*) ac_datarootdir_seen=yes;;
36490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36491   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36492 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36493 _ACEOF
36494 cat >>$CONFIG_STATUS <<_ACEOF
36495   ac_datarootdir_hack='
36496   s&@datadir@&$datadir&g
36497   s&@docdir@&$docdir&g
36498   s&@infodir@&$infodir&g
36499   s&@localedir@&$localedir&g
36500   s&@mandir@&$mandir&g
36501     s&\\\${datarootdir}&$datarootdir&g' ;;
36502 esac
36503 _ACEOF
36504
36505 # Neutralize VPATH when `$srcdir' = `.'.
36506 # Shell code in configure.ac might set extrasub.
36507 # FIXME: do we really want to maintain this feature?
36508 cat >>$CONFIG_STATUS <<_ACEOF
36509   sed "$ac_vpsub
36510 $extrasub
36511 _ACEOF
36512 cat >>$CONFIG_STATUS <<\_ACEOF
36513 :t
36514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36515 s&@configure_input@&$configure_input&;t t
36516 s&@top_builddir@&$ac_top_builddir_sub&;t t
36517 s&@srcdir@&$ac_srcdir&;t t
36518 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36519 s&@top_srcdir@&$ac_top_srcdir&;t t
36520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36521 s&@builddir@&$ac_builddir&;t t
36522 s&@abs_builddir@&$ac_abs_builddir&;t t
36523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36524 s&@INSTALL@&$ac_INSTALL&;t t
36525 $ac_datarootdir_hack
36526 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36527
36528 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36529   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36530   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36531   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36532 which seems to be undefined.  Please make sure it is defined." >&5
36533 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36534 which seems to be undefined.  Please make sure it is defined." >&2;}
36535
36536   rm -f "$tmp/stdin"
36537   case $ac_file in
36538   -) cat "$tmp/out"; rm -f "$tmp/out";;
36539   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36540   esac
36541  ;;
36542   :H)
36543   #
36544   # CONFIG_HEADER
36545   #
36546 _ACEOF
36547
36548 # Transform confdefs.h into a sed script `conftest.defines', that
36549 # substitutes the proper values into config.h.in to produce config.h.
36550 rm -f conftest.defines conftest.tail
36551 # First, append a space to every undef/define line, to ease matching.
36552 echo 's/$/ /' >conftest.defines
36553 # Then, protect against being on the right side of a sed subst, or in
36554 # an unquoted here document, in config.status.  If some macros were
36555 # called several times there might be several #defines for the same
36556 # symbol, which is useless.  But do not sort them, since the last
36557 # AC_DEFINE must be honored.
36558 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36559 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36560 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36561 # PARAMS is the parameter list in the macro definition--in most cases, it's
36562 # just an empty string.
36563 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36564 ac_dB='\\)[      (].*,\\1define\\2'
36565 ac_dC=' '
36566 ac_dD=' ,'
36567
36568 uniq confdefs.h |
36569   sed -n '
36570         t rset
36571         :rset
36572         s/^[     ]*#[    ]*define[       ][      ]*//
36573         t ok
36574         d
36575         :ok
36576         s/[\\&,]/\\&/g
36577         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36578         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36579   ' >>conftest.defines
36580
36581 # Remove the space that was appended to ease matching.
36582 # Then replace #undef with comments.  This is necessary, for
36583 # example, in the case of _POSIX_SOURCE, which is predefined and required
36584 # on some systems where configure will not decide to define it.
36585 # (The regexp can be short, since the line contains either #define or #undef.)
36586 echo 's/ $//
36587 s,^[     #]*u.*,/* & */,' >>conftest.defines
36588
36589 # Break up conftest.defines:
36590 ac_max_sed_lines=50
36591
36592 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36593 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36594 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36595 # et cetera.
36596 ac_in='$ac_file_inputs'
36597 ac_out='"$tmp/out1"'
36598 ac_nxt='"$tmp/out2"'
36599
36600 while :
36601 do
36602   # Write a here document:
36603     cat >>$CONFIG_STATUS <<_ACEOF
36604     # First, check the format of the line:
36605     cat >"\$tmp/defines.sed" <<\\CEOF
36606 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36607 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36608 b
36609 :def
36610 _ACEOF
36611   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36612   echo 'CEOF
36613     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36614   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36615   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36616   grep . conftest.tail >/dev/null || break
36617   rm -f conftest.defines
36618   mv conftest.tail conftest.defines
36619 done
36620 rm -f conftest.defines conftest.tail
36621
36622 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36623 cat >>$CONFIG_STATUS <<\_ACEOF
36624   if test x"$ac_file" != x-; then
36625     echo "/* $configure_input  */" >"$tmp/config.h"
36626     cat "$ac_result" >>"$tmp/config.h"
36627     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36628       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36629 echo "$as_me: $ac_file is unchanged" >&6;}
36630     else
36631       rm -f $ac_file
36632       mv "$tmp/config.h" $ac_file
36633     fi
36634   else
36635     echo "/* $configure_input  */"
36636     cat "$ac_result"
36637   fi
36638   rm -f "$tmp/out12"
36639  ;;
36640
36641   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36642 echo "$as_me: executing $ac_file commands" >&6;}
36643  ;;
36644   esac
36645
36646
36647   case $ac_file$ac_mode in
36648     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36649    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36650     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36651    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36652     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36653    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36654     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36655    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36656     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36657    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36658     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36659    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36660     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36661    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36662     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36663    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36664     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36665    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36666     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36667    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36668     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36669    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36670     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36671    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36672     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36673    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36674
36675   esac
36676 done # for ac_tag
36677
36678
36679 { (exit 0); exit 0; }
36680 _ACEOF
36681 chmod +x $CONFIG_STATUS
36682 ac_clean_files=$ac_clean_files_save
36683
36684
36685 # configure is writing to config.log, and then calls config.status.
36686 # config.status does its own redirection, appending to config.log.
36687 # Unfortunately, on DOS this fails, as config.log is still kept open
36688 # by configure, so config.status won't be able to write to it; its
36689 # output is simply discarded.  So we exec the FD to /dev/null,
36690 # effectively closing config.log, so it can be properly (re)opened and
36691 # appended to by config.status.  When coming back to configure, we
36692 # need to make the FD available again.
36693 if test "$no_create" != yes; then
36694   ac_cs_success=:
36695   ac_config_status_args=
36696   test "$silent" = yes &&
36697     ac_config_status_args="$ac_config_status_args --quiet"
36698   exec 5>/dev/null
36699   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36700   exec 5>>config.log
36701   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36702   # would make configure fail if this is the last instruction.
36703   $ac_cs_success || { (exit 1); exit 1; }
36704 fi
36705
36706 #
36707 # CONFIG_SUBDIRS section.
36708 #
36709 if test "$no_recursion" != yes; then
36710
36711   # Remove --cache-file and --srcdir arguments so they do not pile up.
36712   ac_sub_configure_args=
36713   ac_prev=
36714   eval "set x $ac_configure_args"
36715   shift
36716   for ac_arg
36717   do
36718     if test -n "$ac_prev"; then
36719       ac_prev=
36720       continue
36721     fi
36722     case $ac_arg in
36723     -cache-file | --cache-file | --cache-fil | --cache-fi \
36724     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36725       ac_prev=cache_file ;;
36726     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36727     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36728     | --c=*)
36729       ;;
36730     --config-cache | -C)
36731       ;;
36732     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36733       ac_prev=srcdir ;;
36734     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36735       ;;
36736     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36737       ac_prev=prefix ;;
36738     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36739       ;;
36740     *)
36741       case $ac_arg in
36742       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36743       esac
36744       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36745     esac
36746   done
36747
36748   # Always prepend --prefix to ensure using the same prefix
36749   # in subdir configurations.
36750   ac_arg="--prefix=$prefix"
36751   case $ac_arg in
36752   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36753   esac
36754   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36755
36756   ac_popdir=`pwd`
36757   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36758
36759     # Do not complain, so a configure script can configure whichever
36760     # parts of a large source tree are present.
36761     test -d "$srcdir/$ac_dir" || continue
36762
36763     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36764     echo "$as_me:$LINENO: $ac_msg" >&5
36765     echo "$ac_msg" >&6
36766     { as_dir="$ac_dir"
36767   case $as_dir in #(
36768   -*) as_dir=./$as_dir;;
36769   esac
36770   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36771     as_dirs=
36772     while :; do
36773       case $as_dir in #(
36774       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36775       *) as_qdir=$as_dir;;
36776       esac
36777       as_dirs="'$as_qdir' $as_dirs"
36778       as_dir=`$as_dirname -- "$as_dir" ||
36779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36780          X"$as_dir" : 'X\(//\)[^/]' \| \
36781          X"$as_dir" : 'X\(//\)$' \| \
36782          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36783 echo X"$as_dir" |
36784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36785             s//\1/
36786             q
36787           }
36788           /^X\(\/\/\)[^/].*/{
36789             s//\1/
36790             q
36791           }
36792           /^X\(\/\/\)$/{
36793             s//\1/
36794             q
36795           }
36796           /^X\(\/\).*/{
36797             s//\1/
36798             q
36799           }
36800           s/.*/./; q'`
36801       test -d "$as_dir" && break
36802     done
36803     test -z "$as_dirs" || eval "mkdir $as_dirs"
36804   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36805 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36806    { (exit 1); exit 1; }; }; }
36807     ac_builddir=.
36808
36809 case "$ac_dir" in
36810 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36811 *)
36812   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36813   # A ".." for each directory in $ac_dir_suffix.
36814   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36815   case $ac_top_builddir_sub in
36816   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36817   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36818   esac ;;
36819 esac
36820 ac_abs_top_builddir=$ac_pwd
36821 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36822 # for backward compatibility:
36823 ac_top_builddir=$ac_top_build_prefix
36824
36825 case $srcdir in
36826   .)  # We are building in place.
36827     ac_srcdir=.
36828     ac_top_srcdir=$ac_top_builddir_sub
36829     ac_abs_top_srcdir=$ac_pwd ;;
36830   [\\/]* | ?:[\\/]* )  # Absolute name.
36831     ac_srcdir=$srcdir$ac_dir_suffix;
36832     ac_top_srcdir=$srcdir
36833     ac_abs_top_srcdir=$srcdir ;;
36834   *) # Relative name.
36835     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36836     ac_top_srcdir=$ac_top_build_prefix$srcdir
36837     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36838 esac
36839 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36840
36841
36842     cd "$ac_dir"
36843
36844     # Check for guested configure; otherwise get Cygnus style configure.
36845     if test -f "$ac_srcdir/configure.gnu"; then
36846       ac_sub_configure=$ac_srcdir/configure.gnu
36847     elif test -f "$ac_srcdir/configure"; then
36848       ac_sub_configure=$ac_srcdir/configure
36849     elif test -f "$ac_srcdir/configure.in"; then
36850       # This should be Cygnus configure.
36851       ac_sub_configure=$ac_aux_dir/configure
36852     else
36853       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36854 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36855       ac_sub_configure=
36856     fi
36857
36858     # The recursion is here.
36859     if test -n "$ac_sub_configure"; then
36860       # Make the cache file name correct relative to the subdirectory.
36861       case $cache_file in
36862       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36863       *) # Relative name.
36864         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36865       esac
36866
36867       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36868 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36869       # The eval makes quoting arguments work.
36870       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36871            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36872         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36873 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36874    { (exit 1); exit 1; }; }
36875     fi
36876
36877     cd "$ac_popdir"
36878   done
36879 fi
36880