Let's start another backend :)
[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.6svn.
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-2008 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.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
838 JIT
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 LLVM_ENUM_TARGETS
845 LLVM_ENUM_ASM_PRINTERS
846 ENABLE_CBE_PRINTF_A
847 EXTRA_OPTIONS
848 BINUTILS_INCDIR
849 ENABLE_LLVMC_DYNAMIC
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
851 CXX
852 CXXFLAGS
853 ac_ct_CXX
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 FDP
871 NEATO
872 TWOPI
873 CIRCO
874 GV
875 DOTTY
876 PERL
877 HAVE_PERL
878 INSTALL_PROGRAM
879 INSTALL_SCRIPT
880 INSTALL_DATA
881 BZIP2
882 DOXYGEN
883 GROFF
884 GZIP
885 POD2HTML
886 POD2MAN
887 RUNTEST
888 TCLSH
889 ZIP
890 OCAMLC
891 OCAMLOPT
892 OCAMLDEP
893 OCAMLDOC
894 GAS
895 INSTALL_LTDL_TRUE
896 INSTALL_LTDL_FALSE
897 CONVENIENCE_LTDL_TRUE
898 CONVENIENCE_LTDL_FALSE
899 LIBADD_DL
900 ECHO
901 AR
902 STRIP
903 CXXCPP
904 F77
905 FFLAGS
906 ac_ct_F77
907 LIBTOOL
908 LLVMGCCCOMMAND
909 LLVMGXXCOMMAND
910 LLVMGCC
911 LLVMGXX
912 USE_UDIS86
913 USE_OPROFILE
914 HAVE_PTHREAD
915 HUGE_VAL_SANITY
916 ALLOCA
917 MMAP_FILE
918 LLVMCC1
919 LLVMCC1PLUS
920 LLVMGCCDIR
921 LLVMGCCLIBEXEC
922 LLVMGCC_VERSION
923 LLVMGCC_MAJVERS
924 LLVMGCC_LANGS
925 SHLIBEXT
926 LLVM_PREFIX
927 LLVM_BINDIR
928 LLVM_LIBDIR
929 LLVM_DATADIR
930 LLVM_DOCSDIR
931 LLVM_ETCDIR
932 LLVM_INCLUDEDIR
933 LLVM_INFODIR
934 LLVM_MANDIR
935 LLVM_CONFIGTIME
936 BINDINGS_TO_BUILD
937 ALL_BINDINGS
938 OCAML_LIBDIR
939 ENABLE_VISIBILITY_INLINES_HIDDEN
940 RPATH
941 RDYNAMIC
942 LIBOBJS
943 LTLIBOBJS'
944 ac_subst_files=''
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 CPPFLAGS
952 CPP
953 CXX
954 CXXFLAGS
955 CCC
956 CXXCPP
957 F77
958 FFLAGS'
959 ac_subdirs_all='projects/sample
960 projects/privbracket
961 projects/llvm-stacker
962 projects/llvm-test
963 projects/test-suite
964 projects/llvm-reopt
965 projects/llvm-gcc
966 projects/llvm-java
967 projects/llvm-tv
968 projects/llvm-poolalloc
969 projects/poolalloc
970 projects/llvm-kernel'
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package| sed 's/-/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/-/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 System types:
1530   --build=BUILD     configure for building on BUILD [guessed]
1531   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1532   --target=TARGET   configure for building compilers for TARGET [HOST]
1533 _ACEOF
1534 fi
1535
1536 if test -n "$ac_init_help"; then
1537   case $ac_init_help in
1538      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1539    esac
1540   cat <<\_ACEOF
1541
1542 Optional Features:
1543   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1544   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1545   --enable-optimized      Compile with optimizations enabled (default is NO)
1546   --enable-profiling      Compile with profiling enabled (default is NO)
1547   --enable-assertions     Compile with assertion checks enabled (default is
1548                           YES)
1549   --enable-expensive-checks
1550                           Compile with expensive debug checks enabled (default
1551                           is NO)
1552   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1553                           NO)
1554   --enable-jit            Enable Just In Time Compiling (default is YES)
1555   --enable-doxygen        Build doxygen documentation (default is NO)
1556   --enable-threads        Use threads if available (default is YES)
1557   --enable-pic            Build LLVM with Position Independent Code (default
1558                           is YES)
1559   --enable-targets        Build specific host targets:
1560                           all,host-only,{target-name} (default=all)
1561   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1562                           %a (default is YES)
1563   --enable-bindings       Build specific language bindings:
1564                           all,auto,none,{binding-name} (default=auto)
1565   --enable-libffi         Check for the presence of libffi (default is YES)
1566   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1567                           Win32)
1568   --enable-llvmc-dynamic-plugins
1569                           Enable dynamic LLVMC plugins (default is YES)
1570   --enable-ltdl-install   install libltdl
1571   --enable-shared[=PKGS]  build shared libraries
1572                           [default=yes]
1573   --enable-static[=PKGS]  build static libraries
1574                           [default=yes]
1575   --enable-fast-install[=PKGS]
1576                           optimize for fast installation
1577                           [default=yes]
1578   --disable-libtool-lock  avoid locking (might break parallel builds)
1579
1580 Optional Packages:
1581   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1582   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1583   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1584                           searches PATH)
1585   --with-llvmgcc          Specify location of llvm-gcc driver (default
1586                           searches PATH)
1587   --with-llvmgxx          Specify location of llvm-g++ driver (default
1588                           searches PATH)
1589   --with-extra-options    Specify additional options to compile LLVM with
1590   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1591                           is stdlib)
1592   --with-binutils-include Specify path to binutils/include/ containing
1593                           plugin-api.h file for gold plugin.
1594   --with-tclinclude       directory where tcl headers are
1595   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1596   --with-pic              try to use only PIC/non-PIC objects [default=use
1597                           both]
1598   --with-tags[=TAGS]      include additional configurations [automatic]
1599   --with-udis86=<path>    Use udis86 external x86 disassembler library
1600   --with-oprofile=<prefix>
1601                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1602
1603 Some influential environment variables:
1604   CC          C compiler command
1605   CFLAGS      C compiler flags
1606   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1607               nonstandard directory <lib dir>
1608   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609               you have headers in a nonstandard directory <include dir>
1610   CPP         C preprocessor
1611   CXX         C++ compiler command
1612   CXXFLAGS    C++ compiler flags
1613   CXXCPP      C++ preprocessor
1614   F77         Fortran 77 compiler command
1615   FFLAGS      Fortran 77 compiler flags
1616
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1619
1620 Report bugs to <llvmbugs@cs.uiuc.edu>.
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626   # If there are subdirs, report their specific --help.
1627   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628     test -d "$ac_dir" || continue
1629     ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 llvm configure 2.6svn
1682 generated by GNU Autoconf 2.60
1683
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688
1689 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1690 _ACEOF
1691   exit
1692 fi
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1696
1697 It was created by llvm $as_me 2.6svn, which was
1698 generated by GNU Autoconf 2.60.  Invocation command line was
1699
1700   $ $0 $@
1701
1702 _ACEOF
1703 exec 5>>config.log
1704 {
1705 cat <<_ASUNAME
1706 ## --------- ##
1707 ## Platform. ##
1708 ## --------- ##
1709
1710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715
1716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1718
1719 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1720 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1723 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1724 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1725 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1726
1727 _ASUNAME
1728
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732   IFS=$as_save_IFS
1733   test -z "$as_dir" && as_dir=.
1734   echo "PATH: $as_dir"
1735 done
1736 IFS=$as_save_IFS
1737
1738 } >&5
1739
1740 cat >&5 <<_ACEOF
1741
1742
1743 ## ----------- ##
1744 ## Core tests. ##
1745 ## ----------- ##
1746
1747 _ACEOF
1748
1749
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1755 ac_configure_args=
1756 ac_configure_args0=
1757 ac_configure_args1=
1758 ac_must_keep_next=false
1759 for ac_pass in 1 2
1760 do
1761   for ac_arg
1762   do
1763     case $ac_arg in
1764     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766     | -silent | --silent | --silen | --sile | --sil)
1767       continue ;;
1768     *\'*)
1769       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770     esac
1771     case $ac_pass in
1772     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773     2)
1774       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775       if test $ac_must_keep_next = true; then
1776         ac_must_keep_next=false # Got value, back to normal.
1777       else
1778         case $ac_arg in
1779           *=* | --config-cache | -C | -disable-* | --disable-* \
1780           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782           | -with-* | --with-* | -without-* | --without-* | --x)
1783             case "$ac_configure_args0 " in
1784               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785             esac
1786             ;;
1787           -* ) ac_must_keep_next=true ;;
1788         esac
1789       fi
1790       ac_configure_args="$ac_configure_args '$ac_arg'"
1791       ;;
1792     esac
1793   done
1794 done
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1797
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log.  We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804   # Save into config.log some information that might help in debugging.
1805   {
1806     echo
1807
1808     cat <<\_ASBOX
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1812 _ASBOX
1813     echo
1814     # The following way of writing the cache mishandles newlines in values,
1815 (
1816   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817     eval ac_val=\$$ac_var
1818     case $ac_val in #(
1819     *${as_nl}*)
1820       case $ac_var in #(
1821       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823       esac
1824       case $ac_var in #(
1825       _ | IFS | as_nl) ;; #(
1826       *) $as_unset $ac_var ;;
1827       esac ;;
1828     esac
1829   done
1830   (set) 2>&1 |
1831     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832     *${as_nl}ac_space=\ *)
1833       sed -n \
1834         "s/'\''/'\''\\\\'\'''\''/g;
1835           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836       ;; #(
1837     *)
1838       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1839       ;;
1840     esac |
1841     sort
1842 )
1843     echo
1844
1845     cat <<\_ASBOX
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1849 _ASBOX
1850     echo
1851     for ac_var in $ac_subst_vars
1852     do
1853       eval ac_val=\$$ac_var
1854       case $ac_val in
1855       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856       esac
1857       echo "$ac_var='\''$ac_val'\''"
1858     done | sort
1859     echo
1860
1861     if test -n "$ac_subst_files"; then
1862       cat <<\_ASBOX
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1866 _ASBOX
1867       echo
1868       for ac_var in $ac_subst_files
1869       do
1870         eval ac_val=\$$ac_var
1871         case $ac_val in
1872         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873         esac
1874         echo "$ac_var='\''$ac_val'\''"
1875       done | sort
1876       echo
1877     fi
1878
1879     if test -s confdefs.h; then
1880       cat <<\_ASBOX
1881 ## ----------- ##
1882 ## confdefs.h. ##
1883 ## ----------- ##
1884 _ASBOX
1885       echo
1886       cat confdefs.h
1887       echo
1888     fi
1889     test "$ac_signal" != 0 &&
1890       echo "$as_me: caught signal $ac_signal"
1891     echo "$as_me: exit $exit_status"
1892   } >&5
1893   rm -f core *.core core.conftest.* &&
1894     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895     exit $exit_status
1896 ' 0
1897 for ac_signal in 1 2 13 15; do
1898   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899 done
1900 ac_signal=0
1901
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1904
1905 # Predefined preprocessor variables.
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929 _ACEOF
1930
1931
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer explicitly selected file to automatically selected ones.
1934 if test -n "$CONFIG_SITE"; then
1935   set x "$CONFIG_SITE"
1936 elif test "x$prefix" != xNONE; then
1937   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1938 else
1939   set x "$ac_default_prefix/share/config.site" \
1940         "$ac_default_prefix/etc/config.site"
1941 fi
1942 shift
1943 for ac_site_file
1944 do
1945   if test -r "$ac_site_file"; then
1946     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 echo "$as_me: loading site script $ac_site_file" >&6;}
1948     sed 's/^/| /' "$ac_site_file" >&5
1949     . "$ac_site_file"
1950   fi
1951 done
1952
1953 if test -r "$cache_file"; then
1954   # Some versions of bash will fail to source /dev/null (special
1955   # files actually), so we avoid doing that.
1956   if test -f "$cache_file"; then
1957     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 echo "$as_me: loading cache $cache_file" >&6;}
1959     case $cache_file in
1960       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961       *)                      . "./$cache_file";;
1962     esac
1963   fi
1964 else
1965   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 echo "$as_me: creating cache $cache_file" >&6;}
1967   >$cache_file
1968 fi
1969
1970 # Check that the precious variables saved in the cache have kept the same
1971 # value.
1972 ac_cache_corrupted=false
1973 for ac_var in $ac_precious_vars; do
1974   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975   eval ac_new_set=\$ac_env_${ac_var}_set
1976   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977   eval ac_new_val=\$ac_env_${ac_var}_value
1978   case $ac_old_set,$ac_new_set in
1979     set,)
1980       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982       ac_cache_corrupted=: ;;
1983     ,set)
1984       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986       ac_cache_corrupted=: ;;
1987     ,);;
1988     *)
1989       if test "x$ac_old_val" != "x$ac_new_val"; then
1990         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1993 echo "$as_me:   former value:  $ac_old_val" >&2;}
1994         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1995 echo "$as_me:   current value: $ac_new_val" >&2;}
1996         ac_cache_corrupted=:
1997       fi;;
1998   esac
1999   # Pass precious variables to config.status.
2000   if test "$ac_new_set" = set; then
2001     case $ac_new_val in
2002     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2003     *) ac_arg=$ac_var=$ac_new_val ;;
2004     esac
2005     case " $ac_configure_args " in
2006       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2007       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008     esac
2009   fi
2010 done
2011 if $ac_cache_corrupted; then
2012   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
2051 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2052
2053
2054
2055
2056
2057
2058
2059 ac_aux_dir=
2060 for ac_dir in autoconf "$srcdir"/autoconf; do
2061   if test -f "$ac_dir/install-sh"; then
2062     ac_aux_dir=$ac_dir
2063     ac_install_sh="$ac_aux_dir/install-sh -c"
2064     break
2065   elif test -f "$ac_dir/install.sh"; then
2066     ac_aux_dir=$ac_dir
2067     ac_install_sh="$ac_aux_dir/install.sh -c"
2068     break
2069   elif test -f "$ac_dir/shtool"; then
2070     ac_aux_dir=$ac_dir
2071     ac_install_sh="$ac_aux_dir/shtool install -c"
2072     break
2073   fi
2074 done
2075 if test -z "$ac_aux_dir"; then
2076   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2088
2089
2090
2091 if test ${srcdir} != "." ; then
2092   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2094 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095    { (exit 1); exit 1; }; }
2096   fi
2097 fi
2098
2099 for i in `ls ${srcdir}/projects`
2100 do
2101   if test -d ${srcdir}/projects/${i} ; then
2102     case ${i} in
2103       CVS) ;;
2104       sample)       subdirs="$subdirs projects/sample"
2105     ;;
2106       privbracket)  subdirs="$subdirs projects/privbracket"
2107  ;;
2108       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2109  ;;
2110       # llvm-test is the old name of the test-suite, kept here for backwards
2111       # compatibility
2112       llvm-test)    subdirs="$subdirs projects/llvm-test"
2113  ;;
2114       test-suite)   subdirs="$subdirs projects/test-suite"
2115  ;;
2116       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2117 ;;
2118       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2119   ;;
2120       llvm-java)    subdirs="$subdirs projects/llvm-java"
2121  ;;
2122       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2123    ;;
2124       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2125  ;;
2126       poolalloc)    subdirs="$subdirs projects/poolalloc"
2127  ;;
2128       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2129  ;;
2130       *)
2131         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2133         ;;
2134     esac
2135   fi
2136 done
2137
2138
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 { echo "$as_me:$LINENO: checking build system type" >&5
2146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156    { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161
2162 fi
2163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 echo "${ECHO_T}$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2166 *-*-*) ;;
2167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 echo "$as_me: error: invalid value of canonical build" >&2;}
2169    { (exit 1); exit 1; }; };;
2170 esac
2171 build=$ac_cv_build
2172 ac_save_IFS=$IFS; IFS='-'
2173 set x $ac_cv_build
2174 shift
2175 build_cpu=$1
2176 build_vendor=$2
2177 shift; shift
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2180 build_os=$*
2181 IFS=$ac_save_IFS
2182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2183
2184
2185 { echo "$as_me:$LINENO: checking host system type" >&5
2186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test "x$host_alias" = x; then
2191   ac_cv_host=$ac_cv_build
2192 else
2193   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196    { (exit 1); exit 1; }; }
2197 fi
2198
2199 fi
2200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 echo "${ECHO_T}$ac_cv_host" >&6; }
2202 case $ac_cv_host in
2203 *-*-*) ;;
2204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 echo "$as_me: error: invalid value of canonical host" >&2;}
2206    { (exit 1); exit 1; }; };;
2207 esac
2208 host=$ac_cv_host
2209 ac_save_IFS=$IFS; IFS='-'
2210 set x $ac_cv_host
2211 shift
2212 host_cpu=$1
2213 host_vendor=$2
2214 shift; shift
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2217 host_os=$*
2218 IFS=$ac_save_IFS
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222 { echo "$as_me:$LINENO: checking target system type" >&5
2223 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   if test "x$target_alias" = x; then
2228   ac_cv_target=$ac_cv_host
2229 else
2230   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233    { (exit 1); exit 1; }; }
2234 fi
2235
2236 fi
2237 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 echo "${ECHO_T}$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2240 *-*-*) ;;
2241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 echo "$as_me: error: invalid value of canonical target" >&2;}
2243    { (exit 1); exit 1; }; };;
2244 esac
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2247 set x $ac_cv_target
2248 shift
2249 target_cpu=$1
2250 target_vendor=$2
2251 shift; shift
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2254 target_os=$*
2255 IFS=$ac_save_IFS
2256 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2257
2258
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262   test "$program_prefix$program_suffix$program_transform_name" = \
2263     NONENONEs,x,x, &&
2264   program_prefix=${target_alias}-
2265
2266 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2268 if test "${llvm_cv_os_type+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   case $host in
2272   *-*-aix*)
2273     llvm_cv_link_all_option="-Wl,--whole-archive"
2274     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275     llvm_cv_os_type="AIX"
2276     llvm_cv_platform_type="Unix" ;;
2277   *-*-irix*)
2278     llvm_cv_link_all_option="-Wl,--whole-archive"
2279     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280     llvm_cv_os_type="IRIX"
2281     llvm_cv_platform_type="Unix" ;;
2282   *-*-cygwin*)
2283     llvm_cv_link_all_option="-Wl,--whole-archive"
2284     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285     llvm_cv_os_type="Cygwin"
2286     llvm_cv_platform_type="Unix" ;;
2287   *-*-darwin*)
2288     llvm_cv_link_all_option="-Wl,-all_load"
2289     llvm_cv_no_link_all_option="-Wl,-noall_load"
2290     llvm_cv_os_type="Darwin"
2291     llvm_cv_platform_type="Unix" ;;
2292   *-*-freebsd*)
2293     llvm_cv_link_all_option="-Wl,--whole-archive"
2294     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295     llvm_cv_os_type="FreeBSD"
2296     llvm_cv_platform_type="Unix" ;;
2297   *-*-openbsd*)
2298     llvm_cv_link_all_option="-Wl,--whole-archive"
2299     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300     llvm_cv_os_type="OpenBSD"
2301     llvm_cv_platform_type="Unix" ;;
2302   *-*-netbsd*)
2303     llvm_cv_link_all_option="-Wl,--whole-archive"
2304     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305     llvm_cv_os_type="NetBSD"
2306     llvm_cv_platform_type="Unix" ;;
2307   *-*-dragonfly*)
2308     llvm_cv_link_all_option="-Wl,--whole-archive"
2309     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310     llvm_cv_os_type="DragonFly"
2311     llvm_cv_platform_type="Unix" ;;
2312   *-*-hpux*)
2313     llvm_cv_link_all_option="-Wl,--whole-archive"
2314     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315     llvm_cv_os_type="HP-UX"
2316     llvm_cv_platform_type="Unix" ;;
2317   *-*-interix*)
2318     llvm_cv_link_all_option="-Wl,--whole-archive"
2319     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320     llvm_cv_os_type="Interix"
2321     llvm_cv_platform_type="Unix" ;;
2322   *-*-linux*)
2323     llvm_cv_link_all_option="-Wl,--whole-archive"
2324     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325     llvm_cv_os_type="Linux"
2326     llvm_cv_platform_type="Unix" ;;
2327   *-*-solaris*)
2328     llvm_cv_link_all_option="-Wl,-z,allextract"
2329     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2330     llvm_cv_os_type="SunOS"
2331     llvm_cv_platform_type="Unix" ;;
2332   *-*-win32*)
2333     llvm_cv_link_all_option="-Wl,--whole-archive"
2334     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2335     llvm_cv_os_type="Win32"
2336     llvm_cv_platform_type="Win32" ;;
2337   *-*-mingw*)
2338     llvm_cv_link_all_option="-Wl,--whole-archive"
2339     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2340     llvm_cv_os_type="MingW"
2341     llvm_cv_platform_type="Win32" ;;
2342   *)
2343     llvm_cv_link_all_option=""
2344     llvm_cv_no_link_all_option=""
2345     llvm_cv_os_type="Unknown"
2346     llvm_cv_platform_type="Unknown" ;;
2347 esac
2348 fi
2349 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2351
2352 if test "$llvm_cv_os_type" = "Unknown" ; then
2353   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2355    { (exit 1); exit 1; }; }
2356 fi
2357
2358 OS=$llvm_cv_os_type
2359
2360
2361 LINKALL=$llvm_cv_link_all_option
2362
2363 NOLINKALL=$llvm_cv_no_link_all_option
2364
2365
2366 case $llvm_cv_platform_type in
2367   Unix)
2368
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_UNIX 1
2371 _ACEOF
2372
2373     LLVM_ON_UNIX=1
2374
2375     LLVM_ON_WIN32=0
2376
2377     ;;
2378   Win32)
2379
2380 cat >>confdefs.h <<\_ACEOF
2381 #define LLVM_ON_WIN32 1
2382 _ACEOF
2383
2384     LLVM_ON_UNIX=0
2385
2386     LLVM_ON_WIN32=1
2387
2388     ;;
2389 esac
2390
2391 { echo "$as_me:$LINENO: checking target architecture" >&5
2392 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2393 if test "${llvm_cv_target_arch+set}" = set; then
2394   echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396   case $target in
2397   i?86-*)                 llvm_cv_target_arch="x86" ;;
2398   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2399   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2400   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2401   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2402   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2403   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2404   mips-*)                 llvm_cv_target_arch="Mips" ;;
2405   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2406   xcore-*)                llvm_cv_target_arch="XCore" ;;
2407   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2408   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2409   *)                      llvm_cv_target_arch="Unknown" ;;
2410 esac
2411 fi
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2414
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2418 fi
2419
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422     x86)     LLVM_NATIVE_ARCH="X86" ;;
2423     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2424     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425 esac
2426
2427 ARCH=$llvm_cv_target_arch
2428
2429
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$CC"; then
2444   ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465   { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_CC"; then
2475   ac_ct_CC=$CC
2476   # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$ac_ct_CC"; then
2484   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_ac_ct_CC="gcc"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512   if test "x$ac_ct_CC" = x; then
2513     CC=""
2514   else
2515     case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet.  If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet.  If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525     CC=$ac_ct_CC
2526   fi
2527 else
2528   CC="$ac_cv_prog_CC"
2529 fi
2530
2531 if test -z "$CC"; then
2532           if test -n "$ac_tool_prefix"; then
2533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_CC="${ac_tool_prefix}cc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570   fi
2571 fi
2572 if test -z "$CC"; then
2573   # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   if test -n "$CC"; then
2581   ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583   ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587   IFS=$as_save_IFS
2588   test -z "$as_dir" && as_dir=.
2589   for ac_exec_ext in '' $ac_executable_extensions; do
2590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592        ac_prog_rejected=yes
2593        continue
2594      fi
2595     ac_cv_prog_CC="cc"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 if test $ac_prog_rejected = yes; then
2604   # We found a bogon in the path, so make sure we never use it.
2605   set dummy $ac_cv_prog_CC
2606   shift
2607   if test $# != 0; then
2608     # We chose a different compiler from the bogus one.
2609     # However, it has the same basename, so the bogon will be chosen
2610     # first if we set CC to just the basename; use the full file name.
2611     shift
2612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613   fi
2614 fi
2615 fi
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619   { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622   { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626
2627 fi
2628 if test -z "$CC"; then
2629   if test -n "$ac_tool_prefix"; then
2630   for ac_prog in cl.exe
2631   do
2632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669     test -n "$CC" && break
2670   done
2671 fi
2672 if test -z "$CC"; then
2673   ac_ct_CC=$CC
2674   for ac_prog in cl.exe
2675 do
2676   # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -n "$ac_ct_CC"; then
2684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_ac_ct_CC="$ac_prog"
2694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708   { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713   test -n "$ac_ct_CC" && break
2714 done
2715
2716   if test "x$ac_ct_CC" = x; then
2717     CC=""
2718   else
2719     case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet.  If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet.  If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     CC=$ac_ct_CC
2730   fi
2731 fi
2732
2733 fi
2734
2735
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740    { (exit 1); exit 1; }; }
2741
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_compiler --version >&5") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_compiler -v >&5") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_compiler -V >&5") 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }
2775
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782
2783 int
2784 main ()
2785 {
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 #
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort.  b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 #
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions.  Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2810 do
2811   case $ac_file in
2812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814   esac
2815 done
2816 rm -f $ac_rmfiles
2817
2818 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; then
2828   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files
2834 do
2835   test -f "$ac_file" || continue
2836   case $ac_file in
2837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2838         ;;
2839     [ab].out )
2840         # We found the default executable, but exeext='' is most
2841         # certainly right.
2842         break;;
2843     *.* )
2844         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845         then :; else
2846            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847         fi
2848         # We set ac_cv_exeext here because the later test for it is not
2849         # safe: cross compilers may not add the suffix if given an `-o'
2850         # argument, so we may need to know it at that point already.
2851         # Even if this section looks crufty: it has the advantage of
2852         # actually working.
2853         break;;
2854     * )
2855         break;;
2856   esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868    { (exit 77); exit 77; }; }
2869 fi
2870
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2874
2875 # Check that the compiler produces executables we can run.  If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882   if { ac_try='./$ac_file'
2883   { (case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_try") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; }; then
2892     cross_compiling=no
2893   else
2894     if test "$cross_compiling" = maybe; then
2895         cross_compiling=yes
2896     else
2897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&2;}
2903    { (exit 1); exit 1; }; }
2904     fi
2905   fi
2906 fi
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2909
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run.  If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2918
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_link") 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; then
2931   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936   test -f "$ac_file" || continue
2937   case $ac_file in
2938     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940           break;;
2941     * ) break;;
2942   esac
2943 done
2944 else
2945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949    { (exit 1); exit 1; }; }
2950 fi
2951
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2955
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2958 ac_exeext=$EXEEXT
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; then
2990   for ac_file in conftest.o conftest.obj conftest.*; do
2991   test -f "$ac_file" || continue;
2992   case $ac_file in
2993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995        break;;
2996   esac
2997 done
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006    { (exit 1); exit 1; }; }
3007 fi
3008
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 fi
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3014 ac_objext=$OBJEXT
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030 #ifndef __GNUC__
3031        choke me
3032 #endif
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053   { (case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_try") 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_try") 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072   ac_compiler_gnu=yes
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_compiler_gnu=no
3078 fi
3079
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3082
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   ac_save_c_werror_flag=$ac_c_werror_flag
3095    ac_c_werror_flag=yes
3096    ac_cv_prog_cc_g=no
3097    CFLAGS="-g"
3098    cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } &&
3127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; } &&
3137          { ac_try='test -s conftest.$ac_objext'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_prog_cc_g=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152         CFLAGS=""
3153       cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159
3160 int
3161 main ()
3162 {
3163
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_compile") 2>conftest.er1
3176   ac_status=$?
3177   grep -v '^ *+' conftest.er1 >conftest.err
3178   rm -f conftest.er1
3179   cat conftest.err >&5
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } &&
3182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183   { (case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_try") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; } &&
3192          { ac_try='test -s conftest.$ac_objext'
3193   { (case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_try") 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; }; then
3202   :
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207         ac_c_werror_flag=$ac_save_c_werror_flag
3208          CFLAGS="-g"
3209          cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215
3216 int
3217 main ()
3218 {
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_compile") 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } &&
3238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239   { (case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_try") 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }; } &&
3248          { ac_try='test -s conftest.$ac_objext'
3249   { (case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_try") 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv_prog_cc_g=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273    ac_c_werror_flag=$ac_save_c_werror_flag
3274 fi
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278   CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280   if test "$GCC" = yes; then
3281     CFLAGS="-g -O2"
3282   else
3283     CFLAGS="-g"
3284   fi
3285 else
3286   if test "$GCC" = yes; then
3287     CFLAGS="-O2"
3288   else
3289     CFLAGS=
3290   fi
3291 fi
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   ac_cv_prog_cc_c89=no
3298 ac_save_CC=$CC
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 #include <stdarg.h>
3306 #include <stdio.h>
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3313      char **p;
3314      int i;
3315 {
3316   return p[i];
3317 }
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3319 {
3320   char *s;
3321   va_list v;
3322   va_start (v,p);
3323   s = g (p, va_arg (v,int));
3324   va_end (v);
3325   return s;
3326 }
3327
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3329    function prototypes and stuff, but not '\xHH' hex character constants.
3330    These don't provoke an error unfortunately, instead are silently treated
3331    as 'x'.  The following induces an error, until -std is added to get
3332    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3333    array size at least.  It's necessary to write '\x00'==0 to get something
3334    that's true only with -std.  */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338    inside strings and character constants.  */
3339 #define FOO(x) 'x'
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 int argc;
3347 char **argv;
3348 int
3349 main ()
3350 {
3351 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358 do
3359   CC="$ac_save_CC $ac_arg"
3360   rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_compile") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } &&
3374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375   { (case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_try") 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); }; } &&
3384          { ac_try='test -s conftest.$ac_objext'
3385   { (case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_try") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; }; then
3394   ac_cv_prog_cc_c89=$ac_arg
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext
3403   test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 done
3405 rm -f conftest.$ac_ext
3406 CC=$ac_save_CC
3407
3408 fi
3409 # AC_CACHE_VAL
3410 case "x$ac_cv_prog_cc_c89" in
3411   x)
3412     { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3414   xno)
3415     { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3417   *)
3418     CC="$CC $ac_cv_prog_cc_c89"
3419     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 esac
3422
3423
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3440   CPP=
3441 fi
3442 if test -z "$CPP"; then
3443   if test "${ac_cv_prog_CPP+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446       # Double quotes because CPP needs to be expanded
3447     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448     do
3449       ac_preproc_ok=false
3450 for ac_c_preproc_warn_flag in '' yes
3451 do
3452   # Use a header file that comes with gcc, so configuring glibc
3453   # with a fresh cross-compiler works.
3454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455   # <limits.h> exists even on freestanding compilers.
3456   # On the NeXT, cc -E runs the code through the compiler's parser,
3457   # not just through cpp. "Syntax error" is here to catch this case.
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #ifdef __STDC__
3465 # include <limits.h>
3466 #else
3467 # include <assert.h>
3468 #endif
3469                      Syntax error
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null; then
3484   if test -s conftest.err; then
3485     ac_cpp_err=$ac_c_preproc_warn_flag
3486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487   else
3488     ac_cpp_err=
3489   fi
3490 else
3491   ac_cpp_err=yes
3492 fi
3493 if test -z "$ac_cpp_err"; then
3494   :
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499   # Broken: fails on valid input.
3500 continue
3501 fi
3502
3503 rm -f conftest.err conftest.$ac_ext
3504
3505   # OK, works on sane cases.  Now check whether nonexistent headers
3506   # can be detected and how.
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522   ac_status=$?
3523   grep -v '^ *+' conftest.er1 >conftest.err
3524   rm -f conftest.er1
3525   cat conftest.err >&5
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); } >/dev/null; then
3528   if test -s conftest.err; then
3529     ac_cpp_err=$ac_c_preproc_warn_flag
3530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531   else
3532     ac_cpp_err=
3533   fi
3534 else
3535   ac_cpp_err=yes
3536 fi
3537 if test -z "$ac_cpp_err"; then
3538   # Broken: success on invalid input.
3539 continue
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544   # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3547 fi
3548
3549 rm -f conftest.err conftest.$ac_ext
3550
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555   break
3556 fi
3557
3558     done
3559     ac_cv_prog_CPP=$CPP
3560
3561 fi
3562   CPP=$ac_cv_prog_CPP
3563 else
3564   ac_cv_prog_CPP=$CPP
3565 fi
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3570 do
3571   # Use a header file that comes with gcc, so configuring glibc
3572   # with a fresh cross-compiler works.
3573   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574   # <limits.h> exists even on freestanding compilers.
3575   # On the NeXT, cc -E runs the code through the compiler's parser,
3576   # not just through cpp. "Syntax error" is here to catch this case.
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588                      Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } >/dev/null; then
3603   if test -s conftest.err; then
3604     ac_cpp_err=$ac_c_preproc_warn_flag
3605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606   else
3607     ac_cpp_err=
3608   fi
3609 else
3610   ac_cpp_err=yes
3611 fi
3612 if test -z "$ac_cpp_err"; then
3613   :
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618   # Broken: fails on valid input.
3619 continue
3620 fi
3621
3622 rm -f conftest.err conftest.$ac_ext
3623
3624   # OK, works on sane cases.  Now check whether nonexistent headers
3625   # can be detected and how.
3626   cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } >/dev/null; then
3647   if test -s conftest.err; then
3648     ac_cpp_err=$ac_c_preproc_warn_flag
3649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650   else
3651     ac_cpp_err=
3652   fi
3653 else
3654   ac_cpp_err=yes
3655 fi
3656 if test -z "$ac_cpp_err"; then
3657   # Broken: success on invalid input.
3658 continue
3659 else
3660   echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663   # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3666 fi
3667
3668 rm -f conftest.err conftest.$ac_ext
3669
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3674   :
3675 else
3676   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680    { (exit 1); exit 1; }; }
3681 fi
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708   for ac_prog in grep ggrep; do
3709   for ac_exec_ext in '' $ac_executable_extensions; do
3710     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712     # Check for GNU ac_path_GREP and select it if it is found.
3713   # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3715 *GNU*)
3716   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717 *)
3718   ac_count=0
3719   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720   while :
3721   do
3722     cat "conftest.in" "conftest.in" >"conftest.tmp"
3723     mv "conftest.tmp" "conftest.in"
3724     cp "conftest.in" "conftest.nl"
3725     echo 'GREP' >> "conftest.nl"
3726     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728     ac_count=`expr $ac_count + 1`
3729     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730       # Best one so far, save it but keep looking for a better one
3731       ac_cv_path_GREP="$ac_path_GREP"
3732       ac_path_GREP_max=$ac_count
3733     fi
3734     # 10*(2^10) chars as input seems more than enough
3735     test $ac_count -gt 10 && break
3736   done
3737   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 esac
3739
3740
3741     $ac_path_GREP_found && break 3
3742   done
3743 done
3744
3745 done
3746 IFS=$as_save_IFS
3747
3748
3749 fi
3750
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755    { (exit 1); exit 1; }; }
3756 fi
3757
3758 else
3759   ac_cv_path_GREP=$GREP
3760 fi
3761
3762
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766  GREP="$ac_cv_path_GREP"
3767
3768
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775    then ac_cv_path_EGREP="$GREP -E"
3776    else
3777      # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 do
3788   IFS=$as_save_IFS
3789   test -z "$as_dir" && as_dir=.
3790   for ac_prog in egrep; do
3791   for ac_exec_ext in '' $ac_executable_extensions; do
3792     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794     # Check for GNU ac_path_EGREP and select it if it is found.
3795   # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799 *)
3800   ac_count=0
3801   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802   while :
3803   do
3804     cat "conftest.in" "conftest.in" >"conftest.tmp"
3805     mv "conftest.tmp" "conftest.in"
3806     cp "conftest.in" "conftest.nl"
3807     echo 'EGREP' >> "conftest.nl"
3808     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810     ac_count=`expr $ac_count + 1`
3811     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812       # Best one so far, save it but keep looking for a better one
3813       ac_cv_path_EGREP="$ac_path_EGREP"
3814       ac_path_EGREP_max=$ac_count
3815     fi
3816     # 10*(2^10) chars as input seems more than enough
3817     test $ac_count -gt 10 && break
3818   done
3819   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3821
3822
3823     $ac_path_EGREP_found && break 3
3824   done
3825 done
3826
3827 done
3828 IFS=$as_save_IFS
3829
3830
3831 fi
3832
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837    { (exit 1); exit 1; }; }
3838 fi
3839
3840 else
3841   ac_cv_path_EGREP=$EGREP
3842 fi
3843
3844
3845    fi
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849  EGREP="$ac_cv_path_EGREP"
3850
3851
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863 #include <stdlib.h>
3864 #include <stdarg.h>
3865 #include <string.h>
3866 #include <float.h>
3867
3868 int
3869 main ()
3870 {
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880   *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883   (eval "$ac_compile") 2>conftest.er1
3884   ac_status=$?
3885   grep -v '^ *+' conftest.er1 >conftest.err
3886   rm -f conftest.er1
3887   cat conftest.err >&5
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); } &&
3890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891   { (case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_try") 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; } &&
3900          { ac_try='test -s conftest.$ac_objext'
3901   { (case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_try") 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }; }; then
3910   ac_cv_header_stdc=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         ac_cv_header_stdc=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 if test $ac_cv_header_stdc = yes; then
3921   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <string.h>
3929
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932   $EGREP "memchr" >/dev/null 2>&1; then
3933   :
3934 else
3935   ac_cv_header_stdc=no
3936 fi
3937 rm -f conftest*
3938
3939 fi
3940
3941 if test $ac_cv_header_stdc = yes; then
3942   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <stdlib.h>
3950
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953   $EGREP "free" >/dev/null 2>&1; then
3954   :
3955 else
3956   ac_cv_header_stdc=no
3957 fi
3958 rm -f conftest*
3959
3960 fi
3961
3962 if test $ac_cv_header_stdc = yes; then
3963   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964   if test "$cross_compiling" = yes; then
3965   :
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980                    (('a' <= (c) && (c) <= 'i') \
3981                      || ('j' <= (c) && (c) <= 'r') \
3982                      || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3985
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987 int
3988 main ()
3989 {
3990   int i;
3991   for (i = 0; i < 256; i++)
3992     if (XOR (islower (i), ISLOWER (i))
3993         || toupper (i) != TOUPPER (i))
3994       return 2;
3995   return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_link") 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009   { (case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_try") 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); }; }; then
4018   :
4019 else
4020   echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 ( exit $ac_status )
4025 ac_cv_header_stdc=no
4026 fi
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4028 fi
4029
4030
4031 fi
4032 fi
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4036
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4039 _ACEOF
4040
4041 fi
4042
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054                   inttypes.h stdint.h unistd.h
4055 do
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 $ac_includes_default
4069
4070 #include <$ac_header>
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087   { (case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_try") 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_try") 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   eval "$as_ac_Header=yes"
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111         eval "$as_ac_Header=no"
4112 fi
4113
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117                { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120   cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4123
4124 fi
4125
4126 done
4127
4128
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4143
4144 int
4145 main ()
4146 {
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148  bogus endian macros
4149 #endif
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4157 case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162   (eval "$ac_compile") 2>conftest.er1
4163   ac_status=$?
4164   grep -v '^ *+' conftest.er1 >conftest.err
4165   rm -f conftest.er1
4166   cat conftest.err >&5
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; } &&
4179          { ac_try='test -s conftest.$ac_objext'
4180   { (case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_try") 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; }; then
4189   # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4198
4199 int
4200 main ()
4201 {
4202 #if BYTE_ORDER != BIG_ENDIAN
4203  not big endian
4204 #endif
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217   (eval "$ac_compile") 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225   { (case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230   (eval "$ac_try") 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest.$ac_objext'
4235   { (case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_try") 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_cv_c_bigendian=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         ac_cv_c_bigendian=no
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257         # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259   # try to guess the endianness by grepping values into an object file
4260   ac_cv_c_bigendian=unknown
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4273 int
4274 main ()
4275 {
4276  _ascii (); _ebcdic ();
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_compile") 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296   { (case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_try") 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; }; then
4315   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316   ac_cv_c_bigendian=yes
4317 fi
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319   if test "$ac_cv_c_bigendian" = unknown; then
4320     ac_cv_c_bigendian=no
4321   else
4322     # finding both strings is unlikely to happen, but who knows?
4323     ac_cv_c_bigendian=unknown
4324   fi
4325 fi
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330
4331 fi
4332
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 else
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 $ac_includes_default
4342 int
4343 main ()
4344 {
4345
4346   /* Are we little or big endian?  From Harbison&Steele.  */
4347   union
4348   {
4349     long int l;
4350     char c[sizeof (long int)];
4351   } u;
4352   u.l = 1;
4353   return u.c[sizeof (long int) - 1] == 1;
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363   *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366   (eval "$ac_link") 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370   { (case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375   (eval "$ac_try") 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   ac_cv_c_bigendian=no
4380 else
4381   echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ( exit $ac_status )
4386 ac_cv_c_bigendian=yes
4387 fi
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4389 fi
4390
4391
4392 fi
4393
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 fi
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4399   yes)
4400     ENDIAN=big
4401  ;;
4402   no)
4403     ENDIAN=little
4404  ;;
4405   *)
4406     { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410    { (exit 1); exit 1; }; } ;;
4411 esac
4412
4413
4414 if test "$cross_compiling" = yes; then
4415   LLVM_CROSS_COMPILING=1
4416
4417
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424   ac_cv_build_exeext=.exe
4425 else
4426   ac_build_prefix=${build_alias}-
4427
4428   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CC"; then
4436   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465   if test -z "$BUILD_CC"; then
4466      # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CC"; then
4474   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483     ac_cv_prog_BUILD_CC="gcc"
4484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 fi
4492 fi
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 else
4498   { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4500 fi
4501
4502
4503      if test -z "$BUILD_CC"; then
4504        # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   if test -n "$BUILD_CC"; then
4512   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513 else
4514   ac_prog_rejected=no
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520   for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523        ac_prog_rejected=yes
4524        continue
4525      fi
4526     ac_cv_prog_BUILD_CC="cc"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 if test $ac_prog_rejected = yes; then
4535   # We found a bogon in the path, so make sure we never use it.
4536   set dummy $ac_cv_prog_BUILD_CC
4537   shift
4538   if test $# != 0; then
4539     # We chose a different compiler from the bogus one.
4540     # However, it has the same basename, so the bogon will be chosen
4541     # first if we set BUILD_CC to just the basename; use the full file name.
4542     shift
4543     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4544   fi
4545 fi
4546 fi
4547 fi
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558      fi
4559   fi
4560   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562    { (exit 1); exit 1; }; }
4563   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564   rm -f conftest*
4565   echo 'int main () { return 0; }' > conftest.$ac_ext
4566   ac_cv_build_exeext=
4567   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568   (eval $ac_build_link) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; then
4572     for file in conftest.*; do
4573       case $file in
4574       *.c | *.o | *.obj | *.dSYM) ;;
4575       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576       esac
4577     done
4578   else
4579     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581    { (exit 1); exit 1; }; }
4582   fi
4583   rm -f conftest*
4584   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4585 fi
4586 fi
4587
4588 BUILD_EXEEXT=""
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4593
4594   ac_build_prefix=${build_alias}-
4595   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   if test -n "$BUILD_CXX"; then
4603   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610   for ac_exec_ext in '' $ac_executable_extensions; do
4611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614     break 2
4615   fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627   { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4629 fi
4630
4631
4632   if test -z "$BUILD_CXX"; then
4633      # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   if test -n "$BUILD_CXX"; then
4641   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648   for ac_exec_ext in '' $ac_executable_extensions; do
4649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650     ac_cv_prog_BUILD_CXX="g++"
4651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 else
4665   { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667 fi
4668
4669
4670      if test -z "$BUILD_CXX"; then
4671        # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   if test -n "$BUILD_CXX"; then
4679   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680 else
4681   ac_prog_rejected=no
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690        ac_prog_rejected=yes
4691        continue
4692      fi
4693     ac_cv_prog_BUILD_CXX="c++"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 if test $ac_prog_rejected = yes; then
4702   # We found a bogon in the path, so make sure we never use it.
4703   set dummy $ac_cv_prog_BUILD_CXX
4704   shift
4705   if test $# != 0; then
4706     # We chose a different compiler from the bogus one.
4707     # However, it has the same basename, so the bogon will be chosen
4708     # first if we set BUILD_CXX to just the basename; use the full file name.
4709     shift
4710     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4711   fi
4712 fi
4713 fi
4714 fi
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725      fi
4726   fi
4727 else
4728   LLVM_CROSS_COMPILING=0
4729
4730 fi
4731
4732 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4733   cvsbuild="yes"
4734   optimize="no"
4735   CVSBUILD=CVSBUILD=1
4736
4737 else
4738   cvsbuild="no"
4739   optimize="yes"
4740 fi
4741
4742
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745   enableval=$enable_optimized;
4746 else
4747   enableval=$optimize
4748 fi
4749
4750 if test ${enableval} = "no" ; then
4751   ENABLE_OPTIMIZED=
4752
4753 else
4754   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4755
4756 fi
4757
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760   enableval=$enable_profiling;
4761 else
4762   enableval="no"
4763 fi
4764
4765 if test ${enableval} = "no" ; then
4766   ENABLE_PROFILING=
4767
4768 else
4769   ENABLE_PROFILING=ENABLE_PROFILING=1
4770
4771 fi
4772
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775   enableval=$enable_assertions;
4776 else
4777   enableval="yes"
4778 fi
4779
4780 if test ${enableval} = "yes" ; then
4781   DISABLE_ASSERTIONS=
4782
4783 else
4784   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4785
4786 fi
4787
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790   enableval=$enable_expensive_checks;
4791 else
4792   enableval="no"
4793 fi
4794
4795 if test ${enableval} = "yes" ; then
4796   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797
4798   EXPENSIVE_CHECKS=yes
4799
4800 else
4801   ENABLE_EXPENSIVE_CHECKS=
4802
4803   EXPENSIVE_CHECKS=no
4804
4805 fi
4806
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809   enableval=$enable_debug_runtime;
4810 else
4811   enableval=no
4812 fi
4813
4814 if test ${enableval} = "no" ; then
4815   DEBUG_RUNTIME=
4816
4817 else
4818   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4819
4820 fi
4821
4822 # Check whether --enable-jit was given.
4823 if test "${enable_jit+set}" = set; then
4824   enableval=$enable_jit;
4825 else
4826   enableval=default
4827 fi
4828
4829 if test ${enableval} = "no"
4830 then
4831   JIT=
4832
4833 else
4834   case "$llvm_cv_target_arch" in
4835     x86)     TARGET_HAS_JIT=1
4836  ;;
4837     Sparc)   TARGET_HAS_JIT=0
4838  ;;
4839     PowerPC) TARGET_HAS_JIT=1
4840  ;;
4841     x86_64)  TARGET_HAS_JIT=1
4842  ;;
4843     Alpha)   TARGET_HAS_JIT=1
4844  ;;
4845     IA64)    TARGET_HAS_JIT=0
4846  ;;
4847     ARM)     TARGET_HAS_JIT=0
4848  ;;
4849     Mips)    TARGET_HAS_JIT=0
4850  ;;
4851     PIC16)   TARGET_HAS_JIT=0
4852  ;;
4853     XCore)   TARGET_HAS_JIT=0
4854  ;;
4855     MSP430)  TARGET_HAS_JIT=0
4856  ;;
4857     SystemZ) TARGET_HAS_JIT=0
4858  ;;
4859     *)       TARGET_HAS_JIT=0
4860  ;;
4861   esac
4862 fi
4863
4864 # Check whether --enable-doxygen was given.
4865 if test "${enable_doxygen+set}" = set; then
4866   enableval=$enable_doxygen;
4867 else
4868   enableval=default
4869 fi
4870
4871 case "$enableval" in
4872   yes) ENABLE_DOXYGEN=1
4873  ;;
4874   no)  ENABLE_DOXYGEN=0
4875  ;;
4876   default) ENABLE_DOXYGEN=0
4877  ;;
4878   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4879 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4880    { (exit 1); exit 1; }; } ;;
4881 esac
4882
4883 # Check whether --enable-threads was given.
4884 if test "${enable_threads+set}" = set; then
4885   enableval=$enable_threads;
4886 else
4887   enableval=default
4888 fi
4889
4890 case "$enableval" in
4891   yes) ENABLE_THREADS=1
4892  ;;
4893   no)  ENABLE_THREADS=0
4894  ;;
4895   default) ENABLE_THREADS=1
4896  ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_THREADS $ENABLE_THREADS
4904 _ACEOF
4905
4906
4907 # Check whether --enable-pic was given.
4908 if test "${enable_pic+set}" = set; then
4909   enableval=$enable_pic;
4910 else
4911   enableval=default
4912 fi
4913
4914 case "$enableval" in
4915   yes) ENABLE_PIC=1
4916  ;;
4917   no)  ENABLE_PIC=0
4918  ;;
4919   default) ENABLE_PIC=1
4920  ;;
4921   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4923    { (exit 1); exit 1; }; } ;;
4924 esac
4925
4926 cat >>confdefs.h <<_ACEOF
4927 #define ENABLE_PIC $ENABLE_PIC
4928 _ACEOF
4929
4930
4931 TARGETS_TO_BUILD=""
4932 # Check whether --enable-targets was given.
4933 if test "${enable_targets+set}" = set; then
4934   enableval=$enable_targets;
4935 else
4936   enableval=all
4937 fi
4938
4939 case "$enableval" in
4940   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;;
4941   host-only)
4942     case "$llvm_cv_target_arch" in
4943       x86)     TARGETS_TO_BUILD="X86" ;;
4944       x86_64)  TARGETS_TO_BUILD="X86" ;;
4945       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4946       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4947       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4948       IA64)    TARGETS_TO_BUILD="IA64" ;;
4949       ARM)     TARGETS_TO_BUILD="ARM" ;;
4950       Mips)    TARGETS_TO_BUILD="Mips" ;;
4951       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4952       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4953       XCore)   TARGETS_TO_BUILD="XCore" ;;
4954       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4955       SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4956       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4957 echo "$as_me: error: Can not set target to build" >&2;}
4958    { (exit 1); exit 1; }; } ;;
4959     esac
4960     ;;
4961   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4962       case "$a_target" in
4963         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4966         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4967         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4968         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4969         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975         systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4977         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4978         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4980 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4981    { (exit 1); exit 1; }; } ;;
4982       esac
4983   done
4984   ;;
4985 esac
4986 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4987
4988
4989 # Determine whether we are building LLVM support for the native architecture.
4990 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4991 for a_target in $TARGETS_TO_BUILD; do
4992   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4993     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4994
4995 cat >>confdefs.h <<_ACEOF
4996 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4997 _ACEOF
4998
4999   fi
5000 done
5001
5002 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5003 # Targets.def and AsmPrinters.def.
5004 LLVM_ENUM_TARGETS=""
5005 LLVM_ENUM_ASM_PRINTERS=""
5006 for target_to_build in $TARGETS_TO_BUILD; do
5007   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5008   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5009     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5010   fi
5011 done
5012
5013
5014
5015 # Check whether --enable-cbe-printf-a was given.
5016 if test "${enable_cbe_printf_a+set}" = set; then
5017   enableval=$enable_cbe_printf_a;
5018 else
5019   enableval=default
5020 fi
5021
5022 case "$enableval" in
5023   yes) ENABLE_CBE_PRINTF_A=1
5024  ;;
5025   no)  ENABLE_CBE_PRINTF_A=0
5026  ;;
5027   default)  ENABLE_CBE_PRINTF_A=1
5028  ;;
5029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5031    { (exit 1); exit 1; }; } ;;
5032 esac
5033
5034 cat >>confdefs.h <<_ACEOF
5035 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5036 _ACEOF
5037
5038
5039
5040 # Check whether --with-llvmgccdir was given.
5041 if test "${with_llvmgccdir+set}" = set; then
5042   withval=$with_llvmgccdir;
5043 else
5044   withval=default
5045 fi
5046
5047 case "$withval" in
5048   default) WITH_LLVMGCCDIR=default ;;
5049   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5050   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5051 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5052    { (exit 1); exit 1; }; } ;;
5053 esac
5054
5055
5056 # Check whether --with-llvmgcc was given.
5057 if test "${with_llvmgcc+set}" = set; then
5058   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5059       WITH_LLVMGCCDIR=""
5060 fi
5061
5062
5063
5064 # Check whether --with-llvmgxx was given.
5065 if test "${with_llvmgxx+set}" = set; then
5066   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5067     WITH_LLVMGCCDIR=""
5068 fi
5069
5070
5071 if test -n "$LLVMGCC"; then
5072    LLVMGCCCOMMAND="$LLVMGCC"
5073 fi
5074
5075 if test -n "$LLVMGXX"; then
5076    LLVMGXXCOMMAND="$LLVMGXX"
5077 fi
5078
5079 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5080    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5081 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5082    { (exit 1); exit 1; }; };
5083 fi
5084
5085 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5086    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5087 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5088    { (exit 1); exit 1; }; };
5089 fi
5090
5091
5092 # Check whether --with-extra-options was given.
5093 if test "${with_extra_options+set}" = set; then
5094   withval=$with_extra_options;
5095 else
5096   withval=default
5097 fi
5098
5099 case "$withval" in
5100   default) EXTRA_OPTIONS= ;;
5101   *) EXTRA_OPTIONS=$withval ;;
5102 esac
5103 EXTRA_OPTIONS=$EXTRA_OPTIONS
5104
5105
5106 # Check whether --enable-bindings was given.
5107 if test "${enable_bindings+set}" = set; then
5108   enableval=$enable_bindings;
5109 else
5110   enableval=default
5111 fi
5112
5113 BINDINGS_TO_BUILD=""
5114 case "$enableval" in
5115   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5116   all ) BINDINGS_TO_BUILD="ocaml" ;;
5117   none | no) BINDINGS_TO_BUILD="" ;;
5118   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5119       case "$a_binding" in
5120         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5121         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5122 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5123    { (exit 1); exit 1; }; } ;;
5124       esac
5125   done
5126   ;;
5127 esac
5128
5129
5130 # Check whether --with-ocaml-libdir was given.
5131 if test "${with_ocaml_libdir+set}" = set; then
5132   withval=$with_ocaml_libdir;
5133 else
5134   withval=auto
5135 fi
5136
5137 case "$withval" in
5138   auto) with_ocaml_libdir="$withval" ;;
5139   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5140   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5141 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5142    { (exit 1); exit 1; }; } ;;
5143 esac
5144
5145
5146 # Check whether --with-binutils-include was given.
5147 if test "${with_binutils_include+set}" = set; then
5148   withval=$with_binutils_include;
5149 else
5150   withval=default
5151 fi
5152
5153 case "$withval" in
5154   default) WITH_BINUTILS_INCDIR=default ;;
5155   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5156   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5157 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5158    { (exit 1); exit 1; }; } ;;
5159 esac
5160 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5161   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5162
5163   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5164      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5165      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5166 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5167    { (exit 1); exit 1; }; };
5168   fi
5169 fi
5170
5171 # Check whether --enable-libffi was given.
5172 if test "${enable_libffi+set}" = set; then
5173   enableval=$enable_libffi;
5174 else
5175   enableval=yes
5176 fi
5177
5178 case "$enableval" in
5179   yes) llvm_cv_enable_libffi="yes" ;;
5180   no)  llvm_cv_enable_libffi="no"  ;;
5181   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5183    { (exit 1); exit 1; }; } ;;
5184 esac
5185
5186 if test "$llvm_cv_os_type" = "Win32" ; then
5187    llvmc_dynamic="yes"
5188 else
5189    llvmc_dynamic="no"
5190 fi
5191
5192 # Check whether --enable-llvmc-dynamic was given.
5193 if test "${enable_llvmc_dynamic+set}" = set; then
5194   enableval=$enable_llvmc_dynamic;
5195 else
5196   enableval=$llvmc_dynamic
5197 fi
5198
5199 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5200    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5201
5202 else
5203    ENABLE_LLVMC_DYNAMIC=
5204
5205 fi
5206
5207 # Check whether --enable-llvmc-dynamic-plugins was given.
5208 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5209   enableval=$enable_llvmc_dynamic_plugins;
5210 else
5211   enableval=yes
5212 fi
5213
5214 if test ${enableval} = "yes" ; then
5215    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5216
5217 else
5218    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5219
5220 fi
5221
5222
5223 ac_ext=c
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5230 # On Suns, sometimes $CPP names a directory.
5231 if test -n "$CPP" && test -d "$CPP"; then
5232   CPP=
5233 fi
5234 if test -z "$CPP"; then
5235   if test "${ac_cv_prog_CPP+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238       # Double quotes because CPP needs to be expanded
5239     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5240     do
5241       ac_preproc_ok=false
5242 for ac_c_preproc_warn_flag in '' yes
5243 do
5244   # Use a header file that comes with gcc, so configuring glibc
5245   # with a fresh cross-compiler works.
5246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247   # <limits.h> exists even on freestanding compilers.
5248   # On the NeXT, cc -E runs the code through the compiler's parser,
5249   # not just through cpp. "Syntax error" is here to catch this case.
5250   cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5261                      Syntax error
5262 _ACEOF
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } >/dev/null; then
5276   if test -s conftest.err; then
5277     ac_cpp_err=$ac_c_preproc_warn_flag
5278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279   else
5280     ac_cpp_err=
5281   fi
5282 else
5283   ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286   :
5287 else
5288   echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291   # Broken: fails on valid input.
5292 continue
5293 fi
5294
5295 rm -f conftest.err conftest.$ac_ext
5296
5297   # OK, works on sane cases.  Now check whether nonexistent headers
5298   # can be detected and how.
5299   cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 #include <ac_nonexistent.h>
5306 _ACEOF
5307 if { (ac_try="$ac_cpp conftest.$ac_ext"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } >/dev/null; then
5320   if test -s conftest.err; then
5321     ac_cpp_err=$ac_c_preproc_warn_flag
5322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323   else
5324     ac_cpp_err=
5325   fi
5326 else
5327   ac_cpp_err=yes
5328 fi
5329 if test -z "$ac_cpp_err"; then
5330   # Broken: success on invalid input.
5331 continue
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336   # Passes both tests.
5337 ac_preproc_ok=:
5338 break
5339 fi
5340
5341 rm -f conftest.err conftest.$ac_ext
5342
5343 done
5344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5345 rm -f conftest.err conftest.$ac_ext
5346 if $ac_preproc_ok; then
5347   break
5348 fi
5349
5350     done
5351     ac_cv_prog_CPP=$CPP
5352
5353 fi
5354   CPP=$ac_cv_prog_CPP
5355 else
5356   ac_cv_prog_CPP=$CPP
5357 fi
5358 { echo "$as_me:$LINENO: result: $CPP" >&5
5359 echo "${ECHO_T}$CPP" >&6; }
5360 ac_preproc_ok=false
5361 for ac_c_preproc_warn_flag in '' yes
5362 do
5363   # Use a header file that comes with gcc, so configuring glibc
5364   # with a fresh cross-compiler works.
5365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366   # <limits.h> exists even on freestanding compilers.
5367   # On the NeXT, cc -E runs the code through the compiler's parser,
5368   # not just through cpp. "Syntax error" is here to catch this case.
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 #ifdef __STDC__
5376 # include <limits.h>
5377 #else
5378 # include <assert.h>
5379 #endif
5380                      Syntax error
5381 _ACEOF
5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
5383 case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } >/dev/null; then
5395   if test -s conftest.err; then
5396     ac_cpp_err=$ac_c_preproc_warn_flag
5397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398   else
5399     ac_cpp_err=
5400   fi
5401 else
5402   ac_cpp_err=yes
5403 fi
5404 if test -z "$ac_cpp_err"; then
5405   :
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410   # Broken: fails on valid input.
5411 continue
5412 fi
5413
5414 rm -f conftest.err conftest.$ac_ext
5415
5416   # OK, works on sane cases.  Now check whether nonexistent headers
5417   # can be detected and how.
5418   cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h.  */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h.  */
5424 #include <ac_nonexistent.h>
5425 _ACEOF
5426 if { (ac_try="$ac_cpp conftest.$ac_ext"
5427 case "(($ac_try" in
5428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429   *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } >/dev/null; then
5439   if test -s conftest.err; then
5440     ac_cpp_err=$ac_c_preproc_warn_flag
5441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5442   else
5443     ac_cpp_err=
5444   fi
5445 else
5446   ac_cpp_err=yes
5447 fi
5448 if test -z "$ac_cpp_err"; then
5449   # Broken: success on invalid input.
5450 continue
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455   # Passes both tests.
5456 ac_preproc_ok=:
5457 break
5458 fi
5459
5460 rm -f conftest.err conftest.$ac_ext
5461
5462 done
5463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5464 rm -f conftest.err conftest.$ac_ext
5465 if $ac_preproc_ok; then
5466   :
5467 else
5468   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details." >&5
5470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5471 See \`config.log' for more details." >&2;}
5472    { (exit 1); exit 1; }; }
5473 fi
5474
5475 ac_ext=c
5476 ac_cpp='$CPP $CPPFLAGS'
5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480
5481 ac_ext=c
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486 if test -n "$ac_tool_prefix"; then
5487   for ac_prog in gcc
5488   do
5489     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5493 if test "${ac_cv_prog_CC+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   if test -n "$CC"; then
5497   ac_cv_prog_CC="$CC" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502   IFS=$as_save_IFS
5503   test -z "$as_dir" && as_dir=.
5504   for ac_exec_ext in '' $ac_executable_extensions; do
5505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5506     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508     break 2
5509   fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 CC=$ac_cv_prog_CC
5517 if test -n "$CC"; then
5518   { echo "$as_me:$LINENO: result: $CC" >&5
5519 echo "${ECHO_T}$CC" >&6; }
5520 else
5521   { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5523 fi
5524
5525
5526     test -n "$CC" && break
5527   done
5528 fi
5529 if test -z "$CC"; then
5530   ac_ct_CC=$CC
5531   for ac_prog in gcc
5532 do
5533   # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540   if test -n "$ac_ct_CC"; then
5541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548   for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_prog_ac_ct_CC="$ac_prog"
5551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5561 if test -n "$ac_ct_CC"; then
5562   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5563 echo "${ECHO_T}$ac_ct_CC" >&6; }
5564 else
5565   { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5567 fi
5568
5569
5570   test -n "$ac_ct_CC" && break
5571 done
5572
5573   if test "x$ac_ct_CC" = x; then
5574     CC=""
5575   else
5576     case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet.  If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&5
5581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet.  If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586     CC=$ac_ct_CC
5587   fi
5588 fi
5589
5590
5591 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5592 See \`config.log' for more details." >&5
5593 echo "$as_me: error: no acceptable C compiler found in \$PATH
5594 See \`config.log' for more details." >&2;}
5595    { (exit 1); exit 1; }; }
5596
5597 # Provide some information about the compiler.
5598 echo "$as_me:$LINENO: checking for C compiler version" >&5
5599 ac_compiler=`set X $ac_compile; echo $2`
5600 { (ac_try="$ac_compiler --version >&5"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_compiler --version >&5") 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }
5610 { (ac_try="$ac_compiler -v >&5"
5611 case "(($ac_try" in
5612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613   *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616   (eval "$ac_compiler -v >&5") 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }
5620 { (ac_try="$ac_compiler -V >&5"
5621 case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_compiler -V >&5") 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }
5630
5631 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5632 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5633 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642
5643 int
5644 main ()
5645 {
5646 #ifndef __GNUC__
5647        choke me
5648 #endif
5649
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_compile") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669   { (case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674   (eval "$ac_try") 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest.$ac_objext'
5679   { (case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_try") 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_compiler_gnu=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693         ac_compiler_gnu=no
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5698
5699 fi
5700 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5701 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5702 GCC=`test $ac_compiler_gnu = yes && echo yes`
5703 ac_test_CFLAGS=${CFLAGS+set}
5704 ac_save_CFLAGS=$CFLAGS
5705 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_cc_g+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   ac_save_c_werror_flag=$ac_c_werror_flag
5711    ac_c_werror_flag=yes
5712    ac_cv_prog_cc_g=no
5713    CFLAGS="-g"
5714    cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720
5721 int
5722 main ()
5723 {
5724
5725   ;
5726   return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (ac_try="$ac_compile"
5731 case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736   (eval "$ac_compile") 2>conftest.er1
5737   ac_status=$?
5738   grep -v '^ *+' conftest.er1 >conftest.err
5739   rm -f conftest.er1
5740   cat conftest.err >&5
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5744   { (case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749   (eval "$ac_try") 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest.$ac_objext'
5754   { (case "(($ac_try" in
5755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756   *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759   (eval "$ac_try") 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }; }; then
5763   ac_cv_prog_cc_g=yes
5764 else
5765   echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768         CFLAGS=""
5769       cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775
5776 int
5777 main ()
5778 {
5779
5780   ;
5781   return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5786 case "(($ac_try" in
5787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788   *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791   (eval "$ac_compile") 2>conftest.er1
5792   ac_status=$?
5793   grep -v '^ *+' conftest.er1 >conftest.err
5794   rm -f conftest.er1
5795   cat conftest.err >&5
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); } &&
5798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799   { (case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_try") 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; } &&
5808          { ac_try='test -s conftest.$ac_objext'
5809   { (case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814   (eval "$ac_try") 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; }; then
5818   :
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823         ac_c_werror_flag=$ac_save_c_werror_flag
5824          CFLAGS="-g"
5825          cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831
5832 int
5833 main ()
5834 {
5835
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844   *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_compile") 2>conftest.er1
5848   ac_status=$?
5849   grep -v '^ *+' conftest.er1 >conftest.err
5850   rm -f conftest.er1
5851   cat conftest.err >&5
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } &&
5854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; } &&
5864          { ac_try='test -s conftest.$ac_objext'
5865   { (case "(($ac_try" in
5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867   *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870   (eval "$ac_try") 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   ac_cv_prog_cc_g=yes
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879
5880 fi
5881
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889    ac_c_werror_flag=$ac_save_c_werror_flag
5890 fi
5891 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5892 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5893 if test "$ac_test_CFLAGS" = set; then
5894   CFLAGS=$ac_save_CFLAGS
5895 elif test $ac_cv_prog_cc_g = yes; then
5896   if test "$GCC" = yes; then
5897     CFLAGS="-g -O2"
5898   else
5899     CFLAGS="-g"
5900   fi
5901 else
5902   if test "$GCC" = yes; then
5903     CFLAGS="-O2"
5904   else
5905     CFLAGS=
5906   fi
5907 fi
5908 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5909 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_cc_c89+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   ac_cv_prog_cc_c89=no
5914 ac_save_CC=$CC
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h.  */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h.  */
5921 #include <stdarg.h>
5922 #include <stdio.h>
5923 #include <sys/types.h>
5924 #include <sys/stat.h>
5925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5926 struct buf { int x; };
5927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928 static char *e (p, i)
5929      char **p;
5930      int i;
5931 {
5932   return p[i];
5933 }
5934 static char *f (char * (*g) (char **, int), char **p, ...)
5935 {
5936   char *s;
5937   va_list v;
5938   va_start (v,p);
5939   s = g (p, va_arg (v,int));
5940   va_end (v);
5941   return s;
5942 }
5943
5944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5945    function prototypes and stuff, but not '\xHH' hex character constants.
5946    These don't provoke an error unfortunately, instead are silently treated
5947    as 'x'.  The following induces an error, until -std is added to get
5948    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5949    array size at least.  It's necessary to write '\x00'==0 to get something
5950    that's true only with -std.  */
5951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954    inside strings and character constants.  */
5955 #define FOO(x) 'x'
5956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958 int test (int i, double x);
5959 struct s1 {int (*f) (int a);};
5960 struct s2 {int (*f) (double a);};
5961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962 int argc;
5963 char **argv;
5964 int
5965 main ()
5966 {
5967 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5968   ;
5969   return 0;
5970 }
5971 _ACEOF
5972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974 do
5975   CC="$ac_save_CC $ac_arg"
5976   rm -f conftest.$ac_objext
5977 if { (ac_try="$ac_compile"
5978 case "(($ac_try" in
5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980   *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983   (eval "$ac_compile") 2>conftest.er1
5984   ac_status=$?
5985   grep -v '^ *+' conftest.er1 >conftest.err
5986   rm -f conftest.er1
5987   cat conftest.err >&5
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5991   { (case "(($ac_try" in
5992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993   *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996   (eval "$ac_try") 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; } &&
6000          { ac_try='test -s conftest.$ac_objext'
6001   { (case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006   (eval "$ac_try") 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; }; then
6010   ac_cv_prog_cc_c89=$ac_arg
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext
6019   test "x$ac_cv_prog_cc_c89" != "xno" && break
6020 done
6021 rm -f conftest.$ac_ext
6022 CC=$ac_save_CC
6023
6024 fi
6025 # AC_CACHE_VAL
6026 case "x$ac_cv_prog_cc_c89" in
6027   x)
6028     { echo "$as_me:$LINENO: result: none needed" >&5
6029 echo "${ECHO_T}none needed" >&6; } ;;
6030   xno)
6031     { echo "$as_me:$LINENO: result: unsupported" >&5
6032 echo "${ECHO_T}unsupported" >&6; } ;;
6033   *)
6034     CC="$CC $ac_cv_prog_cc_c89"
6035     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6036 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6037 esac
6038
6039
6040 ac_ext=c
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046 ac_ext=cpp
6047 ac_cpp='$CXXCPP $CPPFLAGS'
6048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6051 if test -z "$CXX"; then
6052   if test -n "$CCC"; then
6053     CXX=$CCC
6054   else
6055     if test -n "$ac_tool_prefix"; then
6056   for ac_prog in g++
6057   do
6058     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_CXX+set}" = set; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   if test -n "$CXX"; then
6066   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073   for ac_exec_ext in '' $ac_executable_extensions; do
6074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 CXX=$ac_cv_prog_CXX
6086 if test -n "$CXX"; then
6087   { echo "$as_me:$LINENO: result: $CXX" >&5
6088 echo "${ECHO_T}$CXX" >&6; }
6089 else
6090   { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094
6095     test -n "$CXX" && break
6096   done
6097 fi
6098 if test -z "$CXX"; then
6099   ac_ct_CXX=$CXX
6100   for ac_prog in g++
6101 do
6102   # Extract the first word of "$ac_prog", so it can be a program name with args.
6103 set dummy $ac_prog; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   if test -n "$ac_ct_CXX"; then
6110   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117   for ac_exec_ext in '' $ac_executable_extensions; do
6118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6119     ac_cv_prog_ac_ct_CXX="$ac_prog"
6120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6130 if test -n "$ac_ct_CXX"; then
6131   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6132 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6133 else
6134   { echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6; }
6136 fi
6137
6138
6139   test -n "$ac_ct_CXX" && break
6140 done
6141
6142   if test "x$ac_ct_CXX" = x; then
6143     CXX="g++"
6144   else
6145     case $cross_compiling:$ac_tool_warned in
6146 yes:)
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet.  If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet.  If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155     CXX=$ac_ct_CXX
6156   fi
6157 fi
6158
6159   fi
6160 fi
6161 # Provide some information about the compiler.
6162 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6163 ac_compiler=`set X $ac_compile; echo $2`
6164 { (ac_try="$ac_compiler --version >&5"
6165 case "(($ac_try" in
6166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167   *) ac_try_echo=$ac_try;;
6168 esac
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170   (eval "$ac_compiler --version >&5") 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }
6174 { (ac_try="$ac_compiler -v >&5"
6175 case "(($ac_try" in
6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177   *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180   (eval "$ac_compiler -v >&5") 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); }
6184 { (ac_try="$ac_compiler -V >&5"
6185 case "(($ac_try" in
6186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187   *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190   (eval "$ac_compiler -V >&5") 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }
6194
6195 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6196 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6197 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206
6207 int
6208 main ()
6209 {
6210 #ifndef __GNUC__
6211        choke me
6212 #endif
6213
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6220 case "(($ac_try" in
6221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222   *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225   (eval "$ac_compile") 2>conftest.er1
6226   ac_status=$?
6227   grep -v '^ *+' conftest.er1 >conftest.err
6228   rm -f conftest.er1
6229   cat conftest.err >&5
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } &&
6232          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6233   { (case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238   (eval "$ac_try") 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; } &&
6242          { ac_try='test -s conftest.$ac_objext'
6243   { (case "(($ac_try" in
6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245   *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248   (eval "$ac_try") 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   ac_compiler_gnu=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257         ac_compiler_gnu=no
6258 fi
6259
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6262
6263 fi
6264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6265 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6266 GXX=`test $ac_compiler_gnu = yes && echo yes`
6267 ac_test_CXXFLAGS=${CXXFLAGS+set}
6268 ac_save_CXXFLAGS=$CXXFLAGS
6269 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6270 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6271 if test "${ac_cv_prog_cxx_g+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6275    ac_cxx_werror_flag=yes
6276    ac_cv_prog_cxx_g=no
6277    CXXFLAGS="-g"
6278    cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284
6285 int
6286 main ()
6287 {
6288
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297   *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300   (eval "$ac_compile") 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6308   { (case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_try") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; } &&
6317          { ac_try='test -s conftest.$ac_objext'
6318   { (case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_try") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_cv_prog_cxx_g=yes
6328 else
6329   echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332         CXXFLAGS=""
6333       cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339
6340 int
6341 main ()
6342 {
6343
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_compile") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } &&
6362          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6363   { (case "(($ac_try" in
6364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365   *) ac_try_echo=$ac_try;;
6366 esac
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368   (eval "$ac_try") 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; } &&
6372          { ac_try='test -s conftest.$ac_objext'
6373   { (case "(($ac_try" in
6374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375   *) ac_try_echo=$ac_try;;
6376 esac
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378   (eval "$ac_try") 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   :
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6388          CXXFLAGS="-g"
6389          cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395
6396 int
6397 main ()
6398 {
6399
6400   ;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (ac_try="$ac_compile"
6406 case "(($ac_try" in
6407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408   *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411   (eval "$ac_compile") 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; } &&
6428          { ac_try='test -s conftest.$ac_objext'
6429   { (case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434   (eval "$ac_try") 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; }; then
6438   ac_cv_prog_cxx_g=yes
6439 else
6440   echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6442
6443
6444 fi
6445
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 fi
6448
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6454 fi
6455 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6456 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6457 if test "$ac_test_CXXFLAGS" = set; then
6458   CXXFLAGS=$ac_save_CXXFLAGS
6459 elif test $ac_cv_prog_cxx_g = yes; then
6460   if test "$GXX" = yes; then
6461     CXXFLAGS="-g -O2"
6462   else
6463     CXXFLAGS="-g"
6464   fi
6465 else
6466   if test "$GXX" = yes; then
6467     CXXFLAGS="-O2"
6468   else
6469     CXXFLAGS=
6470   fi
6471 fi
6472 ac_ext=c
6473 ac_cpp='$CPP $CPPFLAGS'
6474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6477
6478
6479 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6480 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6481 if test "${lt_cv_path_NM+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$NM"; then
6485   # Let the user override the test.
6486   lt_cv_path_NM="$NM"
6487 else
6488   lt_nm_to_check="${ac_tool_prefix}nm"
6489   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6490     lt_nm_to_check="$lt_nm_to_check nm"
6491   fi
6492   for lt_tmp_nm in $lt_nm_to_check; do
6493     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6495       IFS="$lt_save_ifs"
6496       test -z "$ac_dir" && ac_dir=.
6497       tmp_nm="$ac_dir/$lt_tmp_nm"
6498       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6499         # Check to see if the nm accepts a BSD-compat flag.
6500         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6501         #   nm: unknown option "B" ignored
6502         # Tru64's nm complains that /dev/null is an invalid object file
6503         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6504         */dev/null* | *'Invalid file or object type'*)
6505           lt_cv_path_NM="$tmp_nm -B"
6506           break
6507           ;;
6508         *)
6509           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6510           */dev/null*)
6511             lt_cv_path_NM="$tmp_nm -p"
6512             break
6513             ;;
6514           *)
6515             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6516             continue # so that we can try to find one that supports BSD flags
6517             ;;
6518           esac
6519           ;;
6520         esac
6521       fi
6522     done
6523     IFS="$lt_save_ifs"
6524   done
6525   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6526 fi
6527 fi
6528 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6529 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6530 NM="$lt_cv_path_NM"
6531
6532
6533
6534 { echo "$as_me:$LINENO: checking for GNU make" >&5
6535 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536 if test "${llvm_cv_gnu_make_command+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   llvm_cv_gnu_make_command=''
6540  for a in "$MAKE" make gmake gnumake ; do
6541   if test -z "$a" ; then continue ; fi ;
6542   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6543   then
6544    llvm_cv_gnu_make_command=$a ;
6545    break;
6546   fi
6547  done
6548 fi
6549 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6550 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6551  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6552    ifGNUmake='' ;
6553  else
6554    ifGNUmake='#' ;
6555    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6556 echo "${ECHO_T}\"Not found\"" >&6; };
6557  fi
6558
6559
6560 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6561 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6562 LN_S=$as_ln_s
6563 if test "$LN_S" = "ln -s"; then
6564   { echo "$as_me:$LINENO: result: yes" >&5
6565 echo "${ECHO_T}yes" >&6; }
6566 else
6567   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6568 echo "${ECHO_T}no, using $LN_S" >&6; }
6569 fi
6570
6571 # Extract the first word of "cmp", so it can be a program name with args.
6572 set dummy cmp; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_CMP+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   case $CMP in
6579   [\\/]* | ?:[\\/]*)
6580   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6581   ;;
6582   *)
6583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6599   ;;
6600 esac
6601 fi
6602 CMP=$ac_cv_path_CMP
6603 if test -n "$CMP"; then
6604   { echo "$as_me:$LINENO: result: $CMP" >&5
6605 echo "${ECHO_T}$CMP" >&6; }
6606 else
6607   { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611
6612 # Extract the first word of "cp", so it can be a program name with args.
6613 set dummy cp; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_CP+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   case $CP in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6640   ;;
6641 esac
6642 fi
6643 CP=$ac_cv_path_CP
6644 if test -n "$CP"; then
6645   { echo "$as_me:$LINENO: result: $CP" >&5
6646 echo "${ECHO_T}$CP" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 # Extract the first word of "date", so it can be a program name with args.
6654 set dummy date; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_DATE+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   case $DATE in
6661   [\\/]* | ?:[\\/]*)
6662   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6663   ;;
6664   *)
6665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6681   ;;
6682 esac
6683 fi
6684 DATE=$ac_cv_path_DATE
6685 if test -n "$DATE"; then
6686   { echo "$as_me:$LINENO: result: $DATE" >&5
6687 echo "${ECHO_T}$DATE" >&6; }
6688 else
6689   { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6691 fi
6692
6693
6694 # Extract the first word of "find", so it can be a program name with args.
6695 set dummy find; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_FIND+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   case $FIND in
6702   [\\/]* | ?:[\\/]*)
6703   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6704   ;;
6705   *)
6706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6722   ;;
6723 esac
6724 fi
6725 FIND=$ac_cv_path_FIND
6726 if test -n "$FIND"; then
6727   { echo "$as_me:$LINENO: result: $FIND" >&5
6728 echo "${ECHO_T}$FIND" >&6; }
6729 else
6730   { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6732 fi
6733
6734
6735 # Extract the first word of "grep", so it can be a program name with args.
6736 set dummy grep; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_GREP+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   case $GREP in
6743   [\\/]* | ?:[\\/]*)
6744   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6745   ;;
6746   *)
6747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752   for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6763   ;;
6764 esac
6765 fi
6766 GREP=$ac_cv_path_GREP
6767 if test -n "$GREP"; then
6768   { echo "$as_me:$LINENO: result: $GREP" >&5
6769 echo "${ECHO_T}$GREP" >&6; }
6770 else
6771   { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6773 fi
6774
6775
6776 # Extract the first word of "mkdir", so it can be a program name with args.
6777 set dummy mkdir; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_MKDIR+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   case $MKDIR in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793   for ac_exec_ext in '' $ac_executable_extensions; do
6794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6804   ;;
6805 esac
6806 fi
6807 MKDIR=$ac_cv_path_MKDIR
6808 if test -n "$MKDIR"; then
6809   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6810 echo "${ECHO_T}$MKDIR" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 # Extract the first word of "mv", so it can be a program name with args.
6818 set dummy mv; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_MV+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   case $MV in
6825   [\\/]* | ?:[\\/]*)
6826   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6827   ;;
6828   *)
6829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6845   ;;
6846 esac
6847 fi
6848 MV=$ac_cv_path_MV
6849 if test -n "$MV"; then
6850   { echo "$as_me:$LINENO: result: $MV" >&5
6851 echo "${ECHO_T}$MV" >&6; }
6852 else
6853   { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6855 fi
6856
6857
6858 if test -n "$ac_tool_prefix"; then
6859   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_prog_RANLIB+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   if test -n "$RANLIB"; then
6867   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874   for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 RANLIB=$ac_cv_prog_RANLIB
6887 if test -n "$RANLIB"; then
6888   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6889 echo "${ECHO_T}$RANLIB" >&6; }
6890 else
6891   { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_RANLIB"; then
6898   ac_ct_RANLIB=$RANLIB
6899   # Extract the first word of "ranlib", so it can be a program name with args.
6900 set dummy ranlib; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   if test -n "$ac_ct_RANLIB"; then
6907   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914   for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_prog_ac_ct_RANLIB="ranlib"
6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6927 if test -n "$ac_ct_RANLIB"; then
6928   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6929 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6930 else
6931   { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6933 fi
6934
6935   if test "x$ac_ct_RANLIB" = x; then
6936     RANLIB=":"
6937   else
6938     case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6941 whose name does not start with the host triplet.  If you think this
6942 configuration is useful to you, please write to autoconf@gnu.org." >&5
6943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet.  If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948     RANLIB=$ac_ct_RANLIB
6949   fi
6950 else
6951   RANLIB="$ac_cv_prog_RANLIB"
6952 fi
6953
6954 # Extract the first word of "rm", so it can be a program name with args.
6955 set dummy rm; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_RM+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   case $RM in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6982   ;;
6983 esac
6984 fi
6985 RM=$ac_cv_path_RM
6986 if test -n "$RM"; then
6987   { echo "$as_me:$LINENO: result: $RM" >&5
6988 echo "${ECHO_T}$RM" >&6; }
6989 else
6990   { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992 fi
6993
6994
6995 # Extract the first word of "sed", so it can be a program name with args.
6996 set dummy sed; ac_word=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_SED+set}" = set; then
7000   echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002   case $SED in
7003   [\\/]* | ?:[\\/]*)
7004   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7005   ;;
7006   *)
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012   for ac_exec_ext in '' $ac_executable_extensions; do
7013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7014     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019 done
7020 IFS=$as_save_IFS
7021
7022   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7023   ;;
7024 esac
7025 fi
7026 SED=$ac_cv_path_SED
7027 if test -n "$SED"; then
7028   { echo "$as_me:$LINENO: result: $SED" >&5
7029 echo "${ECHO_T}$SED" >&6; }
7030 else
7031   { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7033 fi
7034
7035
7036 # Extract the first word of "tar", so it can be a program name with args.
7037 set dummy tar; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_TAR+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   case $TAR in
7044   [\\/]* | ?:[\\/]*)
7045   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7046   ;;
7047   *)
7048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053   for ac_exec_ext in '' $ac_executable_extensions; do
7054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7064   ;;
7065 esac
7066 fi
7067 TAR=$ac_cv_path_TAR
7068 if test -n "$TAR"; then
7069   { echo "$as_me:$LINENO: result: $TAR" >&5
7070 echo "${ECHO_T}$TAR" >&6; }
7071 else
7072   { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7074 fi
7075
7076
7077 # Extract the first word of "pwd", so it can be a program name with args.
7078 set dummy pwd; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_BINPWD+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   case $BINPWD in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7105   ;;
7106 esac
7107 fi
7108 BINPWD=$ac_cv_path_BINPWD
7109 if test -n "$BINPWD"; then
7110   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7111 echo "${ECHO_T}$BINPWD" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118
7119 # Extract the first word of "Graphviz", so it can be a program name with args.
7120 set dummy Graphviz; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   case $GRAPHVIZ in
7127   [\\/]* | ?:[\\/]*)
7128   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7129   ;;
7130   *)
7131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   for ac_exec_ext in '' $ac_executable_extensions; do
7137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7147   ;;
7148 esac
7149 fi
7150 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7151 if test -n "$GRAPHVIZ"; then
7152   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7153 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7161
7162 cat >>confdefs.h <<\_ACEOF
7163 #define HAVE_GRAPHVIZ 1
7164 _ACEOF
7165
7166     if test "$llvm_cv_os_type" = "MingW" ; then
7167     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7168   fi
7169
7170 cat >>confdefs.h <<_ACEOF
7171 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7172 _ACEOF
7173
7174 fi
7175 # Extract the first word of "dot", so it can be a program name with args.
7176 set dummy dot; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_path_DOT+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   case $DOT in
7183   [\\/]* | ?:[\\/]*)
7184   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7185   ;;
7186   *)
7187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192   for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7203   ;;
7204 esac
7205 fi
7206 DOT=$ac_cv_path_DOT
7207 if test -n "$DOT"; then
7208   { echo "$as_me:$LINENO: result: $DOT" >&5
7209 echo "${ECHO_T}$DOT" >&6; }
7210 else
7211   { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7213 fi
7214
7215
7216 if test "$DOT" != "echo dot" ; then
7217
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_DOT 1
7220 _ACEOF
7221
7222     if test "$llvm_cv_os_type" = "MingW" ; then
7223     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7224   fi
7225
7226 cat >>confdefs.h <<_ACEOF
7227 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7228 _ACEOF
7229
7230 fi
7231 # Extract the first word of "fdp", so it can be a program name with args.
7232 set dummy fdp; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_FDP+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   case $FDP in
7239   [\\/]* | ?:[\\/]*)
7240   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7241   ;;
7242   *)
7243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248   for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7259   ;;
7260 esac
7261 fi
7262 FDP=$ac_cv_path_FDP
7263 if test -n "$FDP"; then
7264   { echo "$as_me:$LINENO: result: $FDP" >&5
7265 echo "${ECHO_T}$FDP" >&6; }
7266 else
7267   { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 if test "$FDP" != "echo fdp" ; then
7273
7274 cat >>confdefs.h <<\_ACEOF
7275 #define HAVE_FDP 1
7276 _ACEOF
7277
7278     if test "$llvm_cv_os_type" = "MingW" ; then
7279     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7280   fi
7281
7282 cat >>confdefs.h <<_ACEOF
7283 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7284 _ACEOF
7285
7286 fi
7287 # Extract the first word of "neato", so it can be a program name with args.
7288 set dummy neato; ac_word=$2
7289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291 if test "${ac_cv_path_NEATO+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   case $NEATO in
7295   [\\/]* | ?:[\\/]*)
7296   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7297   ;;
7298   *)
7299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7315   ;;
7316 esac
7317 fi
7318 NEATO=$ac_cv_path_NEATO
7319 if test -n "$NEATO"; then
7320   { echo "$as_me:$LINENO: result: $NEATO" >&5
7321 echo "${ECHO_T}$NEATO" >&6; }
7322 else
7323   { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7325 fi
7326
7327
7328 if test "$NEATO" != "echo neato" ; then
7329
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_NEATO 1
7332 _ACEOF
7333
7334     if test "$llvm_cv_os_type" = "MingW" ; then
7335     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7336   fi
7337
7338 cat >>confdefs.h <<_ACEOF
7339 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7340 _ACEOF
7341
7342 fi
7343 # Extract the first word of "twopi", so it can be a program name with args.
7344 set dummy twopi; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_TWOPI+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $TWOPI in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7371   ;;
7372 esac
7373 fi
7374 TWOPI=$ac_cv_path_TWOPI
7375 if test -n "$TWOPI"; then
7376   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7377 echo "${ECHO_T}$TWOPI" >&6; }
7378 else
7379   { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7381 fi
7382
7383
7384 if test "$TWOPI" != "echo twopi" ; then
7385
7386 cat >>confdefs.h <<\_ACEOF
7387 #define HAVE_TWOPI 1
7388 _ACEOF
7389
7390     if test "$llvm_cv_os_type" = "MingW" ; then
7391     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7392   fi
7393
7394 cat >>confdefs.h <<_ACEOF
7395 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7396 _ACEOF
7397
7398 fi
7399 # Extract the first word of "circo", so it can be a program name with args.
7400 set dummy circo; ac_word=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_CIRCO+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   case $CIRCO in
7407   [\\/]* | ?:[\\/]*)
7408   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7409   ;;
7410   *)
7411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7427   ;;
7428 esac
7429 fi
7430 CIRCO=$ac_cv_path_CIRCO
7431 if test -n "$CIRCO"; then
7432   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7433 echo "${ECHO_T}$CIRCO" >&6; }
7434 else
7435   { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7437 fi
7438
7439
7440 if test "$CIRCO" != "echo circo" ; then
7441
7442 cat >>confdefs.h <<\_ACEOF
7443 #define HAVE_CIRCO 1
7444 _ACEOF
7445
7446     if test "$llvm_cv_os_type" = "MingW" ; then
7447     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7448   fi
7449
7450 cat >>confdefs.h <<_ACEOF
7451 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7452 _ACEOF
7453
7454 fi
7455 for ac_prog in gv gsview32
7456 do
7457   # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_GV+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   case $GV in
7465   [\\/]* | ?:[\\/]*)
7466   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7467   ;;
7468   *)
7469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484   ;;
7485 esac
7486 fi
7487 GV=$ac_cv_path_GV
7488 if test -n "$GV"; then
7489   { echo "$as_me:$LINENO: result: $GV" >&5
7490 echo "${ECHO_T}$GV" >&6; }
7491 else
7492   { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7494 fi
7495
7496
7497   test -n "$GV" && break
7498 done
7499 test -n "$GV" || GV="echo gv"
7500
7501 if test "$GV" != "echo gv" ; then
7502
7503 cat >>confdefs.h <<\_ACEOF
7504 #define HAVE_GV 1
7505 _ACEOF
7506
7507     if test "$llvm_cv_os_type" = "MingW" ; then
7508     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7509   fi
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define LLVM_PATH_GV "$GV${EXEEXT}"
7513 _ACEOF
7514
7515 fi
7516 # Extract the first word of "dotty", so it can be a program name with args.
7517 set dummy dotty; ac_word=$2
7518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520 if test "${ac_cv_path_DOTTY+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   case $DOTTY in
7524   [\\/]* | ?:[\\/]*)
7525   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7526   ;;
7527   *)
7528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7544   ;;
7545 esac
7546 fi
7547 DOTTY=$ac_cv_path_DOTTY
7548 if test -n "$DOTTY"; then
7549   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7550 echo "${ECHO_T}$DOTTY" >&6; }
7551 else
7552   { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7554 fi
7555
7556
7557 if test "$DOTTY" != "echo dotty" ; then
7558
7559 cat >>confdefs.h <<\_ACEOF
7560 #define HAVE_DOTTY 1
7561 _ACEOF
7562
7563     if test "$llvm_cv_os_type" = "MingW" ; then
7564     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7565   fi
7566
7567 cat >>confdefs.h <<_ACEOF
7568 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7569 _ACEOF
7570
7571 fi
7572
7573
7574 # Extract the first word of "perl", so it can be a program name with args.
7575 set dummy perl; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_PERL+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   case $PERL in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7602   ;;
7603 esac
7604 fi
7605 PERL=$ac_cv_path_PERL
7606 if test -n "$PERL"; then
7607   { echo "$as_me:$LINENO: result: $PERL" >&5
7608 echo "${ECHO_T}$PERL" >&6; }
7609 else
7610   { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7612 fi
7613
7614
7615 if test "$PERL" != "none"; then
7616   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7617 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7618   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7619     { echo "$as_me:$LINENO: result: yes" >&5
7620 echo "${ECHO_T}yes" >&6; }
7621   else
7622     PERL=none
7623     { echo "$as_me:$LINENO: result: not found" >&5
7624 echo "${ECHO_T}not found" >&6; }
7625   fi
7626 fi
7627
7628
7629 if test x"$PERL" = xnone; then
7630    HAVE_PERL=0
7631
7632    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7633 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7634    { (exit 1); exit 1; }; }
7635 else
7636    HAVE_PERL=1
7637
7638 fi
7639
7640 # Find a good install program.  We prefer a C program (faster),
7641 # so one script is as good as another.  But avoid the broken or
7642 # incompatible versions:
7643 # SysV /etc/install, /usr/sbin/install
7644 # SunOS /usr/etc/install
7645 # IRIX /sbin/install
7646 # AIX /bin/install
7647 # AmigaOS /C/install, which installs bootblocks on floppy discs
7648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7651 # OS/2's system install, which has a completely different semantic
7652 # ./install, which can be erroneously created by make from ./install.sh.
7653 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7655 if test -z "$INSTALL"; then
7656 if test "${ac_cv_path_install+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664   # Account for people who put trailing slashes in PATH elements.
7665 case $as_dir/ in
7666   ./ | .// | /cC/* | \
7667   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7668   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7669   /usr/ucb/* ) ;;
7670   *)
7671     # OSF1 and SCO ODT 3.0 have their own names for install.
7672     # Don't use installbsd from OSF since it installs stuff as root
7673     # by default.
7674     for ac_prog in ginstall scoinst install; do
7675       for ac_exec_ext in '' $ac_executable_extensions; do
7676         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7677           if test $ac_prog = install &&
7678             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7679             # AIX install.  It has an incompatible calling convention.
7680             :
7681           elif test $ac_prog = install &&
7682             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7683             # program-specific install script used by HP pwplus--don't use.
7684             :
7685           else
7686             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7687             break 3
7688           fi
7689         fi
7690       done
7691     done
7692     ;;
7693 esac
7694 done
7695 IFS=$as_save_IFS
7696
7697
7698 fi
7699   if test "${ac_cv_path_install+set}" = set; then
7700     INSTALL=$ac_cv_path_install
7701   else
7702     # As a last resort, use the slow shell script.  Don't cache a
7703     # value for INSTALL within a source directory, because that will
7704     # break other packages using the cache if that directory is
7705     # removed, or if the value is a relative name.
7706     INSTALL=$ac_install_sh
7707   fi
7708 fi
7709 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7710 echo "${ECHO_T}$INSTALL" >&6; }
7711
7712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7713 # It thinks the first close brace ends the variable substitution.
7714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7715
7716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7717
7718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7719
7720
7721 # Extract the first word of "bzip2", so it can be a program name with args.
7722 set dummy bzip2; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_BZIP2+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   case $BZIP2 in
7729   [\\/]* | ?:[\\/]*)
7730   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7731   ;;
7732   *)
7733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738   for ac_exec_ext in '' $ac_executable_extensions; do
7739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745 done
7746 IFS=$as_save_IFS
7747
7748   ;;
7749 esac
7750 fi
7751 BZIP2=$ac_cv_path_BZIP2
7752 if test -n "$BZIP2"; then
7753   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7754 echo "${ECHO_T}$BZIP2" >&6; }
7755 else
7756   { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7758 fi
7759
7760
7761 # Extract the first word of "doxygen", so it can be a program name with args.
7762 set dummy doxygen; ac_word=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   case $DOXYGEN in
7769   [\\/]* | ?:[\\/]*)
7770   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7771   ;;
7772   *)
7773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778   for ac_exec_ext in '' $ac_executable_extensions; do
7779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7780     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788   ;;
7789 esac
7790 fi
7791 DOXYGEN=$ac_cv_path_DOXYGEN
7792 if test -n "$DOXYGEN"; then
7793   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7794 echo "${ECHO_T}$DOXYGEN" >&6; }
7795 else
7796   { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7798 fi
7799
7800
7801 # Extract the first word of "groff", so it can be a program name with args.
7802 set dummy groff; ac_word=$2
7803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7805 if test "${ac_cv_path_GROFF+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   case $GROFF in
7809   [\\/]* | ?:[\\/]*)
7810   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7811   ;;
7812   *)
7813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818   for ac_exec_ext in '' $ac_executable_extensions; do
7819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7820     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828   ;;
7829 esac
7830 fi
7831 GROFF=$ac_cv_path_GROFF
7832 if test -n "$GROFF"; then
7833   { echo "$as_me:$LINENO: result: $GROFF" >&5
7834 echo "${ECHO_T}$GROFF" >&6; }
7835 else
7836   { echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6; }
7838 fi
7839
7840
7841 # Extract the first word of "gzip", so it can be a program name with args.
7842 set dummy gzip; ac_word=$2
7843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845 if test "${ac_cv_path_GZIP+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   case $GZIP in
7849   [\\/]* | ?:[\\/]*)
7850   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7851   ;;
7852   *)
7853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858   for ac_exec_ext in '' $ac_executable_extensions; do
7859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7860     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868   ;;
7869 esac
7870 fi
7871 GZIP=$ac_cv_path_GZIP
7872 if test -n "$GZIP"; then
7873   { echo "$as_me:$LINENO: result: $GZIP" >&5
7874 echo "${ECHO_T}$GZIP" >&6; }
7875 else
7876   { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7878 fi
7879
7880
7881 # Extract the first word of "pod2html", so it can be a program name with args.
7882 set dummy pod2html; ac_word=$2
7883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7885 if test "${ac_cv_path_POD2HTML+set}" = set; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888   case $POD2HTML in
7889   [\\/]* | ?:[\\/]*)
7890   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7891   ;;
7892   *)
7893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896   IFS=$as_save_IFS
7897   test -z "$as_dir" && as_dir=.
7898   for ac_exec_ext in '' $ac_executable_extensions; do
7899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7900     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902     break 2
7903   fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908   ;;
7909 esac
7910 fi
7911 POD2HTML=$ac_cv_path_POD2HTML
7912 if test -n "$POD2HTML"; then
7913   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7914 echo "${ECHO_T}$POD2HTML" >&6; }
7915 else
7916   { echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6; }
7918 fi
7919
7920
7921 # Extract the first word of "pod2man", so it can be a program name with args.
7922 set dummy pod2man; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_path_POD2MAN+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   case $POD2MAN in
7929   [\\/]* | ?:[\\/]*)
7930   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7931   ;;
7932   *)
7933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938   for ac_exec_ext in '' $ac_executable_extensions; do
7939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7940     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948   ;;
7949 esac
7950 fi
7951 POD2MAN=$ac_cv_path_POD2MAN
7952 if test -n "$POD2MAN"; then
7953   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7954 echo "${ECHO_T}$POD2MAN" >&6; }
7955 else
7956   { echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6; }
7958 fi
7959
7960
7961 # Extract the first word of "runtest", so it can be a program name with args.
7962 set dummy runtest; ac_word=$2
7963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7965 if test "${ac_cv_path_RUNTEST+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   case $RUNTEST in
7969   [\\/]* | ?:[\\/]*)
7970   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7971   ;;
7972   *)
7973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976   IFS=$as_save_IFS
7977   test -z "$as_dir" && as_dir=.
7978   for ac_exec_ext in '' $ac_executable_extensions; do
7979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7980     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982     break 2
7983   fi
7984 done
7985 done
7986 IFS=$as_save_IFS
7987
7988   ;;
7989 esac
7990 fi
7991 RUNTEST=$ac_cv_path_RUNTEST
7992 if test -n "$RUNTEST"; then
7993   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7994 echo "${ECHO_T}$RUNTEST" >&6; }
7995 else
7996   { echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6; }
7998 fi
7999
8000
8001
8002 no_itcl=true
8003 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8004 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8005
8006 # Check whether --with-tclinclude was given.
8007 if test "${with_tclinclude+set}" = set; then
8008   withval=$with_tclinclude; with_tclinclude=${withval}
8009 else
8010   with_tclinclude=''
8011 fi
8012
8013 if test "${ac_cv_path_tclsh+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016
8017 if test x"${with_tclinclude}" != x ; then
8018   if test -f ${with_tclinclude}/tclsh ; then
8019     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8020   elif test -f ${with_tclinclude}/src/tclsh ; then
8021     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8022   else
8023     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8024 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8025    { (exit 1); exit 1; }; }
8026   fi
8027 fi
8028
8029 if test x"${ac_cv_path_tclsh}" = x ; then
8030   { echo "$as_me:$LINENO: result: none" >&5
8031 echo "${ECHO_T}none" >&6; }
8032   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
8033 do
8034   # Extract the first word of "$ac_prog", so it can be a program name with args.
8035 set dummy $ac_prog; ac_word=$2
8036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8038 if test "${ac_cv_path_TCLSH+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   case $TCLSH in
8042   [\\/]* | ?:[\\/]*)
8043   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8044   ;;
8045   *)
8046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051   for ac_exec_ext in '' $ac_executable_extensions; do
8052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8053     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058 done
8059 IFS=$as_save_IFS
8060
8061   ;;
8062 esac
8063 fi
8064 TCLSH=$ac_cv_path_TCLSH
8065 if test -n "$TCLSH"; then
8066   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8067 echo "${ECHO_T}$TCLSH" >&6; }
8068 else
8069   { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8071 fi
8072
8073
8074   test -n "$TCLSH" && break
8075 done
8076
8077   if test x"${TCLSH}" = x ; then
8078     ac_cv_path_tclsh='';
8079   else
8080     ac_cv_path_tclsh="${TCLSH}";
8081   fi
8082 else
8083   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8084 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8085   TCLSH="${ac_cv_path_tclsh}"
8086
8087 fi
8088
8089 fi
8090
8091 # Extract the first word of "zip", so it can be a program name with args.
8092 set dummy zip; ac_word=$2
8093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8095 if test "${ac_cv_path_ZIP+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   case $ZIP in
8099   [\\/]* | ?:[\\/]*)
8100   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8101   ;;
8102   *)
8103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108   for ac_exec_ext in '' $ac_executable_extensions; do
8109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8110     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115 done
8116 IFS=$as_save_IFS
8117
8118   ;;
8119 esac
8120 fi
8121 ZIP=$ac_cv_path_ZIP
8122 if test -n "$ZIP"; then
8123   { echo "$as_me:$LINENO: result: $ZIP" >&5
8124 echo "${ECHO_T}$ZIP" >&6; }
8125 else
8126   { echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6; }
8128 fi
8129
8130
8131 for ac_prog in ocamlc
8132 do
8133   # Extract the first word of "$ac_prog", so it can be a program name with args.
8134 set dummy $ac_prog; ac_word=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_path_OCAMLC+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   case $OCAMLC in
8141   [\\/]* | ?:[\\/]*)
8142   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8143   ;;
8144   *)
8145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148   IFS=$as_save_IFS
8149   test -z "$as_dir" && as_dir=.
8150   for ac_exec_ext in '' $ac_executable_extensions; do
8151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8152     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154     break 2
8155   fi
8156 done
8157 done
8158 IFS=$as_save_IFS
8159
8160   ;;
8161 esac
8162 fi
8163 OCAMLC=$ac_cv_path_OCAMLC
8164 if test -n "$OCAMLC"; then
8165   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8166 echo "${ECHO_T}$OCAMLC" >&6; }
8167 else
8168   { echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6; }
8170 fi
8171
8172
8173   test -n "$OCAMLC" && break
8174 done
8175
8176 for ac_prog in ocamlopt
8177 do
8178   # Extract the first word of "$ac_prog", so it can be a program name with args.
8179 set dummy $ac_prog; ac_word=$2
8180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   case $OCAMLOPT in
8186   [\\/]* | ?:[\\/]*)
8187   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8188   ;;
8189   *)
8190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193   IFS=$as_save_IFS
8194   test -z "$as_dir" && as_dir=.
8195   for ac_exec_ext in '' $ac_executable_extensions; do
8196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199     break 2
8200   fi
8201 done
8202 done
8203 IFS=$as_save_IFS
8204
8205   ;;
8206 esac
8207 fi
8208 OCAMLOPT=$ac_cv_path_OCAMLOPT
8209 if test -n "$OCAMLOPT"; then
8210   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8211 echo "${ECHO_T}$OCAMLOPT" >&6; }
8212 else
8213   { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8215 fi
8216
8217
8218   test -n "$OCAMLOPT" && break
8219 done
8220
8221 for ac_prog in ocamldep
8222 do
8223   # Extract the first word of "$ac_prog", so it can be a program name with args.
8224 set dummy $ac_prog; ac_word=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   case $OCAMLDEP in
8231   [\\/]* | ?:[\\/]*)
8232   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8233   ;;
8234   *)
8235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240   for ac_exec_ext in '' $ac_executable_extensions; do
8241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8242     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250   ;;
8251 esac
8252 fi
8253 OCAMLDEP=$ac_cv_path_OCAMLDEP
8254 if test -n "$OCAMLDEP"; then
8255   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8256 echo "${ECHO_T}$OCAMLDEP" >&6; }
8257 else
8258   { echo "$as_me:$LINENO: result: no" >&5
8259 echo "${ECHO_T}no" >&6; }
8260 fi
8261
8262
8263   test -n "$OCAMLDEP" && break
8264 done
8265
8266 for ac_prog in ocamldoc
8267 do
8268   # Extract the first word of "$ac_prog", so it can be a program name with args.
8269 set dummy $ac_prog; ac_word=$2
8270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8272 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   case $OCAMLDOC in
8276   [\\/]* | ?:[\\/]*)
8277   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8278   ;;
8279   *)
8280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285   for ac_exec_ext in '' $ac_executable_extensions; do
8286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8287     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295   ;;
8296 esac
8297 fi
8298 OCAMLDOC=$ac_cv_path_OCAMLDOC
8299 if test -n "$OCAMLDOC"; then
8300   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8301 echo "${ECHO_T}$OCAMLDOC" >&6; }
8302 else
8303   { echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6; }
8305 fi
8306
8307
8308   test -n "$OCAMLDOC" && break
8309 done
8310
8311 for ac_prog in gas as
8312 do
8313   # Extract the first word of "$ac_prog", so it can be a program name with args.
8314 set dummy $ac_prog; ac_word=$2
8315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8317 if test "${ac_cv_path_GAS+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   case $GAS in
8321   [\\/]* | ?:[\\/]*)
8322   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8323   ;;
8324   *)
8325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328   IFS=$as_save_IFS
8329   test -z "$as_dir" && as_dir=.
8330   for ac_exec_ext in '' $ac_executable_extensions; do
8331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8332     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334     break 2
8335   fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340   ;;
8341 esac
8342 fi
8343 GAS=$ac_cv_path_GAS
8344 if test -n "$GAS"; then
8345   { echo "$as_me:$LINENO: result: $GAS" >&5
8346 echo "${ECHO_T}$GAS" >&6; }
8347 else
8348   { echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6; }
8350 fi
8351
8352
8353   test -n "$GAS" && break
8354 done
8355
8356
8357 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8358 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8359 if test "${llvm_cv_link_use_r+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362    ac_ext=c
8363 ac_cpp='$CPP $CPPFLAGS'
8364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8367
8368   oldcflags="$CFLAGS"
8369   CFLAGS="$CFLAGS -Wl,-R."
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376
8377 int
8378 main ()
8379 {
8380 int main() { return 0; }
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_link") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   llvm_cv_link_use_r=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424         llvm_cv_link_use_r=no
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext \
8428       conftest$ac_exeext conftest.$ac_ext
8429   CFLAGS="$oldcflags"
8430   ac_ext=c
8431 ac_cpp='$CPP $CPPFLAGS'
8432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8435
8436
8437 fi
8438 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8439 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8440 if test "$llvm_cv_link_use_r" = yes ; then
8441
8442 cat >>confdefs.h <<\_ACEOF
8443 #define HAVE_LINK_R 1
8444 _ACEOF
8445
8446   fi
8447
8448
8449 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8450 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8451 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454    ac_ext=c
8455 ac_cpp='$CPP $CPPFLAGS'
8456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8459
8460   oldcflags="$CFLAGS"
8461   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8462   cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468
8469 int
8470 main ()
8471 {
8472 int main() { return 0; }
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492   { (case "(($ac_try" in
8493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494   *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497   (eval "$ac_try") 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; } &&
8501          { ac_try='test -s conftest$ac_exeext'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   llvm_cv_link_use_export_dynamic=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516         llvm_cv_link_use_export_dynamic=no
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext \
8520       conftest$ac_exeext conftest.$ac_ext
8521   CFLAGS="$oldcflags"
8522   ac_ext=c
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528
8529 fi
8530 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8531 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8532 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8533
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_LINK_EXPORT_DYNAMIC 1
8536 _ACEOF
8537
8538   fi
8539
8540
8541
8542
8543 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8545 if test "${ac_cv_c_const+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 int
8556 main ()
8557 {
8558 /* FIXME: Include the comments suggested by Paul. */
8559 #ifndef __cplusplus
8560   /* Ultrix mips cc rejects this.  */
8561   typedef int charset[2];
8562   const charset x;
8563   /* SunOS 4.1.1 cc rejects this.  */
8564   char const *const *ccp;
8565   char **p;
8566   /* NEC SVR4.0.2 mips cc rejects this.  */
8567   struct point {int x, y;};
8568   static struct point const zero = {0,0};
8569   /* AIX XL C 1.02.0.0 rejects this.
8570      It does not let you subtract one const X* pointer from another in
8571      an arm of an if-expression whose if-part is not a constant
8572      expression */
8573   const char *g = "string";
8574   ccp = &g + (g ? g-g : 0);
8575   /* HPUX 7.0 cc rejects these. */
8576   ++ccp;
8577   p = (char**) ccp;
8578   ccp = (char const *const *) p;
8579   { /* SCO 3.2v4 cc rejects this.  */
8580     char *t;
8581     char const *s = 0 ? (char *) 0 : (char const *) 0;
8582
8583     *t++ = 0;
8584     if (s) return 0;
8585   }
8586   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8587     int x[] = {25, 17};
8588     const int *foo = &x[0];
8589     ++foo;
8590   }
8591   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8592     typedef const int *iptr;
8593     iptr p = 0;
8594     ++p;
8595   }
8596   { /* AIX XL C 1.02.0.0 rejects this saying
8597        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8598     struct s { int j; const int *ap[3]; };
8599     struct s *b; b->j = 5;
8600   }
8601   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8602     const int foo = 10;
8603     if (!foo) return 0;
8604   }
8605   return !x[0] && !zero.x;
8606 #endif
8607
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_compile") 2>conftest.er1
8620   ac_status=$?
8621   grep -v '^ *+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } &&
8626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627   { (case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_try") 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; } &&
8636          { ac_try='test -s conftest.$ac_objext'
8637   { (case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_try") 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_cv_c_const=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651         ac_cv_c_const=no
8652 fi
8653
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 fi
8656 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8657 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8658 if test $ac_cv_c_const = no; then
8659
8660 cat >>confdefs.h <<\_ACEOF
8661 #define const
8662 _ACEOF
8663
8664 fi
8665
8666
8667
8668
8669
8670
8671 ac_header_dirent=no
8672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8673   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8674 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685 #include <sys/types.h>
8686 #include <$ac_hdr>
8687
8688 int
8689 main ()
8690 {
8691 if ((DIR *) 0)
8692 return 0;
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8699 case "(($ac_try" in
8700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701   *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704   (eval "$ac_compile") 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } &&
8711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712   { (case "(($ac_try" in
8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714   *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717   (eval "$ac_try") 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; } &&
8721          { ac_try='test -s conftest.$ac_objext'
8722   { (case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_try") 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   eval "$as_ac_Header=yes"
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736         eval "$as_ac_Header=no"
8737 fi
8738
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 fi
8741 ac_res=`eval echo '${'$as_ac_Header'}'`
8742                { echo "$as_me:$LINENO: result: $ac_res" >&5
8743 echo "${ECHO_T}$ac_res" >&6; }
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745   cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8747 _ACEOF
8748
8749 ac_header_dirent=$ac_hdr; break
8750 fi
8751
8752 done
8753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8754 if test $ac_header_dirent = dirent.h; then
8755   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8757 if test "${ac_cv_search_opendir+set}" = set; then
8758   echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760   ac_func_search_save_LIBS=$LIBS
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767
8768 /* Override any GCC internal prototype to avoid an error.
8769    Use char because int might match the return type of a GCC
8770    builtin and then its argument prototype would still apply.  */
8771 #ifdef __cplusplus
8772 extern "C"
8773 #endif
8774 char opendir ();
8775 int
8776 main ()
8777 {
8778 return opendir ();
8779   ;
8780   return 0;
8781 }
8782 _ACEOF
8783 for ac_lib in '' dir; do
8784   if test -z "$ac_lib"; then
8785     ac_res="none required"
8786   else
8787     ac_res=-l$ac_lib
8788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8789   fi
8790   rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (ac_try="$ac_link"
8792 case "(($ac_try" in
8793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794   *) ac_try_echo=$ac_try;;
8795 esac
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797   (eval "$ac_link") 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } &&
8804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8805   { (case "(($ac_try" in
8806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807   *) ac_try_echo=$ac_try;;
8808 esac
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810   (eval "$ac_try") 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; } &&
8814          { ac_try='test -s conftest$ac_exeext'
8815   { (case "(($ac_try" in
8816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817   *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820   (eval "$ac_try") 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; }; then
8824   ac_cv_search_opendir=$ac_res
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829
8830 fi
8831
8832 rm -f core conftest.err conftest.$ac_objext \
8833       conftest$ac_exeext
8834   if test "${ac_cv_search_opendir+set}" = set; then
8835   break
8836 fi
8837 done
8838 if test "${ac_cv_search_opendir+set}" = set; then
8839   :
8840 else
8841   ac_cv_search_opendir=no
8842 fi
8843 rm conftest.$ac_ext
8844 LIBS=$ac_func_search_save_LIBS
8845 fi
8846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8848 ac_res=$ac_cv_search_opendir
8849 if test "$ac_res" != no; then
8850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8851
8852 fi
8853
8854 else
8855   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8857 if test "${ac_cv_search_opendir+set}" = set; then
8858   echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860   ac_func_search_save_LIBS=$LIBS
8861 cat >conftest.$ac_ext <<_ACEOF
8862 /* confdefs.h.  */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h.  */
8867
8868 /* Override any GCC internal prototype to avoid an error.
8869    Use char because int might match the return type of a GCC
8870    builtin and then its argument prototype would still apply.  */
8871 #ifdef __cplusplus
8872 extern "C"
8873 #endif
8874 char opendir ();
8875 int
8876 main ()
8877 {
8878 return opendir ();
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 for ac_lib in '' x; do
8884   if test -z "$ac_lib"; then
8885     ac_res="none required"
8886   else
8887     ac_res=-l$ac_lib
8888     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8889   fi
8890   rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (ac_try="$ac_link"
8892 case "(($ac_try" in
8893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894   *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897   (eval "$ac_link") 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8905   { (case "(($ac_try" in
8906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907   *) ac_try_echo=$ac_try;;
8908 esac
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910   (eval "$ac_try") 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; } &&
8914          { ac_try='test -s conftest$ac_exeext'
8915   { (case "(($ac_try" in
8916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917   *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920   (eval "$ac_try") 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; }; then
8924   ac_cv_search_opendir=$ac_res
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929
8930 fi
8931
8932 rm -f core conftest.err conftest.$ac_objext \
8933       conftest$ac_exeext
8934   if test "${ac_cv_search_opendir+set}" = set; then
8935   break
8936 fi
8937 done
8938 if test "${ac_cv_search_opendir+set}" = set; then
8939   :
8940 else
8941   ac_cv_search_opendir=no
8942 fi
8943 rm conftest.$ac_ext
8944 LIBS=$ac_func_search_save_LIBS
8945 fi
8946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8948 ac_res=$ac_cv_search_opendir
8949 if test "$ac_res" != no; then
8950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8951
8952 fi
8953
8954 fi
8955
8956
8957 for ac_header in dlfcn.h
8958 do
8959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8961   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 fi
8966 ac_res=`eval echo '${'$as_ac_Header'}'`
8967                { echo "$as_me:$LINENO: result: $ac_res" >&5
8968 echo "${ECHO_T}$ac_res" >&6; }
8969 else
8970   # Is the header compilable?
8971 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h.  */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h.  */
8979 $ac_includes_default
8980 #include <$ac_header>
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } &&
8996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8997   { (case "(($ac_try" in
8998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999   *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002   (eval "$ac_try") 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; } &&
9006          { ac_try='test -s conftest.$ac_objext'
9007   { (case "(($ac_try" in
9008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009   *) ac_try_echo=$ac_try;;
9010 esac
9011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9012   (eval "$ac_try") 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; }; then
9016   ac_header_compiler=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021         ac_header_compiler=no
9022 fi
9023
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9026 echo "${ECHO_T}$ac_header_compiler" >&6; }
9027
9028 # Is the header present?
9029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037 #include <$ac_header>
9038 _ACEOF
9039 if { (ac_try="$ac_cpp conftest.$ac_ext"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } >/dev/null; then
9052   if test -s conftest.err; then
9053     ac_cpp_err=$ac_c_preproc_warn_flag
9054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9055   else
9056     ac_cpp_err=
9057   fi
9058 else
9059   ac_cpp_err=yes
9060 fi
9061 if test -z "$ac_cpp_err"; then
9062   ac_header_preproc=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067   ac_header_preproc=no
9068 fi
9069
9070 rm -f conftest.err conftest.$ac_ext
9071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9072 echo "${ECHO_T}$ac_header_preproc" >&6; }
9073
9074 # So?  What about this header?
9075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9076   yes:no: )
9077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9081     ac_header_preproc=yes
9082     ;;
9083   no:yes:* )
9084     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9086     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9087 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9088     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9090     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9091 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9096     ( cat <<\_ASBOX
9097 ## ----------------------------------- ##
9098 ## Report this to llvmbugs@cs.uiuc.edu ##
9099 ## ----------------------------------- ##
9100 _ASBOX
9101      ) | sed "s/^/$as_me: WARNING:     /" >&2
9102     ;;
9103 esac
9104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   eval "$as_ac_Header=\$ac_header_preproc"
9110 fi
9111 ac_res=`eval echo '${'$as_ac_Header'}'`
9112                { echo "$as_me:$LINENO: result: $ac_res" >&5
9113 echo "${ECHO_T}$ac_res" >&6; }
9114
9115 fi
9116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9117   cat >>confdefs.h <<_ACEOF
9118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9119 _ACEOF
9120
9121 fi
9122
9123 done
9124
9125 # Check whether --enable-ltdl-install was given.
9126 if test "${enable_ltdl_install+set}" = set; then
9127   enableval=$enable_ltdl_install;
9128 fi
9129
9130
9131
9132
9133 if test x"${enable_ltdl_install-no}" != xno; then
9134   INSTALL_LTDL_TRUE=
9135   INSTALL_LTDL_FALSE='#'
9136 else
9137   INSTALL_LTDL_TRUE='#'
9138   INSTALL_LTDL_FALSE=
9139 fi
9140
9141
9142
9143 if test x"${enable_ltdl_convenience-no}" != xno; then
9144   CONVENIENCE_LTDL_TRUE=
9145   CONVENIENCE_LTDL_FALSE='#'
9146 else
9147   CONVENIENCE_LTDL_TRUE='#'
9148   CONVENIENCE_LTDL_FALSE=
9149 fi
9150
9151
9152 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9153 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9154 library_names_spec=
9155 libname_spec='lib$name'
9156 soname_spec=
9157 shrext_cmds=".so"
9158 postinstall_cmds=
9159 postuninstall_cmds=
9160 finish_cmds=
9161 finish_eval=
9162 shlibpath_var=
9163 shlibpath_overrides_runpath=unknown
9164 version_type=none
9165 dynamic_linker="$host_os ld.so"
9166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9167 if test "$GCC" = yes; then
9168   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9169   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9170     # if the path contains ";" then we assume it to be the separator
9171     # otherwise default to the standard path separator (i.e. ":") - it is
9172     # assumed that no part of a normal pathname contains ";" but that should
9173     # okay in the real world where ";" in dirpaths is itself problematic.
9174     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9175   else
9176     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9177   fi
9178 else
9179   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9180 fi
9181 need_lib_prefix=unknown
9182 hardcode_into_libs=no
9183
9184 # when you set need_version to no, make sure it does not cause -set_version
9185 # flags to be left without arguments
9186 need_version=unknown
9187
9188 case $host_os in
9189 aix3*)
9190   version_type=linux
9191   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9192   shlibpath_var=LIBPATH
9193
9194   # AIX 3 has no versioning support, so we append a major version to the name.
9195   soname_spec='${libname}${release}${shared_ext}$major'
9196   ;;
9197
9198 aix4* | aix5*)
9199   version_type=linux
9200   need_lib_prefix=no
9201   need_version=no
9202   hardcode_into_libs=yes
9203   if test "$host_cpu" = ia64; then
9204     # AIX 5 supports IA64
9205     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9206     shlibpath_var=LD_LIBRARY_PATH
9207   else
9208     # With GCC up to 2.95.x, collect2 would create an import file
9209     # for dependence libraries.  The import file would start with
9210     # the line `#! .'.  This would cause the generated library to
9211     # depend on `.', always an invalid library.  This was fixed in
9212     # development snapshots of GCC prior to 3.0.
9213     case $host_os in
9214       aix4 | aix4.[01] | aix4.[01].*)
9215       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9216            echo ' yes '
9217            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9218         :
9219       else
9220         can_build_shared=no
9221       fi
9222       ;;
9223     esac
9224     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9225     # soname into executable. Probably we can add versioning support to
9226     # collect2, so additional links can be useful in future.
9227     if test "$aix_use_runtimelinking" = yes; then
9228       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9229       # instead of lib<name>.a to let people know that these are not
9230       # typical AIX shared libraries.
9231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232     else
9233       # We preserve .a as extension for shared libraries through AIX4.2
9234       # and later when we are not doing run time linking.
9235       library_names_spec='${libname}${release}.a $libname.a'
9236       soname_spec='${libname}${release}${shared_ext}$major'
9237     fi
9238     shlibpath_var=LIBPATH
9239   fi
9240   ;;
9241
9242 amigaos*)
9243   library_names_spec='$libname.ixlibrary $libname.a'
9244   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9245   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'
9246   ;;
9247
9248 beos*)
9249   library_names_spec='${libname}${shared_ext}'
9250   dynamic_linker="$host_os ld.so"
9251   shlibpath_var=LIBRARY_PATH
9252   ;;
9253
9254 bsdi[45]*)
9255   version_type=linux
9256   need_version=no
9257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258   soname_spec='${libname}${release}${shared_ext}$major'
9259   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9262   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9263   # the default ld.so.conf also contains /usr/contrib/lib and
9264   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9265   # libtool to hard-code these into programs
9266   ;;
9267
9268 cygwin* | mingw* | pw32*)
9269   version_type=windows
9270   shrext_cmds=".dll"
9271   need_version=no
9272   need_lib_prefix=no
9273
9274   case $GCC,$host_os in
9275   yes,cygwin* | yes,mingw* | yes,pw32*)
9276     library_names_spec='$libname.dll.a'
9277     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9278     postinstall_cmds='base_file=`basename \${file}`~
9279       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9280       dldir=$destdir/`dirname \$dlpath`~
9281       test -d \$dldir || mkdir -p \$dldir~
9282       $install_prog $dir/$dlname \$dldir/$dlname~
9283       chmod a+x \$dldir/$dlname'
9284     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9285       dlpath=$dir/\$dldll~
9286        $rm \$dlpath'
9287     shlibpath_overrides_runpath=yes
9288
9289     case $host_os in
9290     cygwin*)
9291       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9292       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9294       ;;
9295     mingw*)
9296       # MinGW DLLs use traditional 'lib' prefix
9297       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9298       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9299       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9300         # It is most probably a Windows format PATH printed by
9301         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9302         # path with ; separators, and with drive letters. We can handle the
9303         # drive letters (cygwin fileutils understands them), so leave them,
9304         # especially as we might pass files found there to a mingw objdump,
9305         # which wouldn't understand a cygwinified path. Ahh.
9306         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9307       else
9308         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9309       fi
9310       ;;
9311     pw32*)
9312       # pw32 DLLs use 'pw' prefix rather than 'lib'
9313       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9314       ;;
9315     esac
9316     ;;
9317
9318   *)
9319     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9320     ;;
9321   esac
9322   dynamic_linker='Win32 ld.exe'
9323   # FIXME: first we should search . and the directory the executable is in
9324   shlibpath_var=PATH
9325   ;;
9326
9327 darwin* | rhapsody*)
9328   dynamic_linker="$host_os dyld"
9329   version_type=darwin
9330   need_lib_prefix=no
9331   need_version=no
9332   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9333   soname_spec='${libname}${release}${major}$shared_ext'
9334   shlibpath_overrides_runpath=yes
9335   shlibpath_var=DYLD_LIBRARY_PATH
9336   shrext_cmds='.dylib'
9337   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9338   if test "$GCC" = yes; then
9339     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"`
9340   else
9341     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9342   fi
9343   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9344   ;;
9345
9346 dgux*)
9347   version_type=linux
9348   need_lib_prefix=no
9349   need_version=no
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   ;;
9354
9355 freebsd1*)
9356   dynamic_linker=no
9357   ;;
9358
9359 kfreebsd*-gnu)
9360   version_type=linux
9361   need_lib_prefix=no
9362   need_version=no
9363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   shlibpath_var=LD_LIBRARY_PATH
9366   shlibpath_overrides_runpath=no
9367   hardcode_into_libs=yes
9368   dynamic_linker='GNU ld.so'
9369   ;;
9370
9371 freebsd* | dragonfly*)
9372   # DragonFly does not have aout.  When/if they implement a new
9373   # versioning mechanism, adjust this.
9374   if test -x /usr/bin/objformat; then
9375     objformat=`/usr/bin/objformat`
9376   else
9377     case $host_os in
9378     freebsd[123]*) objformat=aout ;;
9379     *) objformat=elf ;;
9380     esac
9381   fi
9382   version_type=freebsd-$objformat
9383   case $version_type in
9384     freebsd-elf*)
9385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9386       need_version=no
9387       need_lib_prefix=no
9388       ;;
9389     freebsd-*)
9390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9391       need_version=yes
9392       ;;
9393   esac
9394   shlibpath_var=LD_LIBRARY_PATH
9395   case $host_os in
9396   freebsd2*)
9397     shlibpath_overrides_runpath=yes
9398     ;;
9399   freebsd3.[01]* | freebsdelf3.[01]*)
9400     shlibpath_overrides_runpath=yes
9401     hardcode_into_libs=yes
9402     ;;
9403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9405     shlibpath_overrides_runpath=no
9406     hardcode_into_libs=yes
9407     ;;
9408   freebsd*) # from 4.6 on
9409     shlibpath_overrides_runpath=yes
9410     hardcode_into_libs=yes
9411     ;;
9412   esac
9413   ;;
9414
9415 gnu*)
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   hardcode_into_libs=yes
9423   ;;
9424
9425 hpux9* | hpux10* | hpux11*)
9426   # Give a soname corresponding to the major version so that dld.sl refuses to
9427   # link against other versions.
9428   version_type=sunos
9429   need_lib_prefix=no
9430   need_version=no
9431   case $host_cpu in
9432   ia64*)
9433     shrext_cmds='.so'
9434     hardcode_into_libs=yes
9435     dynamic_linker="$host_os dld.so"
9436     shlibpath_var=LD_LIBRARY_PATH
9437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439     soname_spec='${libname}${release}${shared_ext}$major'
9440     if test "X$HPUX_IA64_MODE" = X32; then
9441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9442     else
9443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9444     fi
9445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9446     ;;
9447    hppa*64*)
9448      shrext_cmds='.sl'
9449      hardcode_into_libs=yes
9450      dynamic_linker="$host_os dld.sl"
9451      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9452      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9453      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454      soname_spec='${libname}${release}${shared_ext}$major'
9455      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9456      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9457      ;;
9458    *)
9459     shrext_cmds='.sl'
9460     dynamic_linker="$host_os dld.sl"
9461     shlibpath_var=SHLIB_PATH
9462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464     soname_spec='${libname}${release}${shared_ext}$major'
9465     ;;
9466   esac
9467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9468   postinstall_cmds='chmod 555 $lib'
9469   ;;
9470
9471 interix3*)
9472   version_type=linux
9473   need_lib_prefix=no
9474   need_version=no
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9476   soname_spec='${libname}${release}${shared_ext}$major'
9477   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9478   shlibpath_var=LD_LIBRARY_PATH
9479   shlibpath_overrides_runpath=no
9480   hardcode_into_libs=yes
9481   ;;
9482
9483 irix5* | irix6* | nonstopux*)
9484   case $host_os in
9485     nonstopux*) version_type=nonstopux ;;
9486     *)
9487         if test "$lt_cv_prog_gnu_ld" = yes; then
9488                 version_type=linux
9489         else
9490                 version_type=irix
9491         fi ;;
9492   esac
9493   need_lib_prefix=no
9494   need_version=no
9495   soname_spec='${libname}${release}${shared_ext}$major'
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9497   case $host_os in
9498   irix5* | nonstopux*)
9499     libsuff= shlibsuff=
9500     ;;
9501   *)
9502     case $LD in # libtool.m4 will add one of these switches to LD
9503     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9504       libsuff= shlibsuff= libmagic=32-bit;;
9505     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9506       libsuff=32 shlibsuff=N32 libmagic=N32;;
9507     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9508       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9509     *) libsuff= shlibsuff= libmagic=never-match;;
9510     esac
9511     ;;
9512   esac
9513   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9514   shlibpath_overrides_runpath=no
9515   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9516   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9517   hardcode_into_libs=yes
9518   ;;
9519
9520 # No shared lib support for Linux oldld, aout, or coff.
9521 linux*oldld* | linux*aout* | linux*coff*)
9522   dynamic_linker=no
9523   ;;
9524
9525 # This must be Linux ELF.
9526 linux*)
9527   version_type=linux
9528   need_lib_prefix=no
9529   need_version=no
9530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531   soname_spec='${libname}${release}${shared_ext}$major'
9532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9533   shlibpath_var=LD_LIBRARY_PATH
9534   shlibpath_overrides_runpath=no
9535   # This implies no fast_install, which is unacceptable.
9536   # Some rework will be needed to allow for fast_install
9537   # before this can be enabled.
9538   hardcode_into_libs=yes
9539
9540   # Append ld.so.conf contents to the search path
9541   if test -f /etc/ld.so.conf; then
9542     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' ' '`
9543     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9544   fi
9545
9546   # We used to test for /lib/ld.so.1 and disable shared libraries on
9547   # powerpc, because MkLinux only supported shared libraries with the
9548   # GNU dynamic linker.  Since this was broken with cross compilers,
9549   # most powerpc-linux boxes support dynamic linking these days and
9550   # people can always --disable-shared, the test was removed, and we
9551   # assume the GNU/Linux dynamic linker is in use.
9552   dynamic_linker='GNU/Linux ld.so'
9553   ;;
9554
9555 knetbsd*-gnu)
9556   version_type=linux
9557   need_lib_prefix=no
9558   need_version=no
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   shlibpath_var=LD_LIBRARY_PATH
9562   shlibpath_overrides_runpath=no
9563   hardcode_into_libs=yes
9564   dynamic_linker='GNU ld.so'
9565   ;;
9566
9567 netbsd*)
9568   version_type=sunos
9569   need_lib_prefix=no
9570   need_version=no
9571   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9574     dynamic_linker='NetBSD (a.out) ld.so'
9575   else
9576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577     soname_spec='${libname}${release}${shared_ext}$major'
9578     dynamic_linker='NetBSD ld.elf_so'
9579   fi
9580   shlibpath_var=LD_LIBRARY_PATH
9581   shlibpath_overrides_runpath=yes
9582   hardcode_into_libs=yes
9583   ;;
9584
9585 newsos6)
9586   version_type=linux
9587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588   shlibpath_var=LD_LIBRARY_PATH
9589   shlibpath_overrides_runpath=yes
9590   ;;
9591
9592 nto-qnx*)
9593   version_type=linux
9594   need_lib_prefix=no
9595   need_version=no
9596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597   soname_spec='${libname}${release}${shared_ext}$major'
9598   shlibpath_var=LD_LIBRARY_PATH
9599   shlibpath_overrides_runpath=yes
9600   ;;
9601
9602 openbsd*)
9603   version_type=sunos
9604   sys_lib_dlsearch_path_spec="/usr/lib"
9605   need_lib_prefix=no
9606   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9607   case $host_os in
9608     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9609     *)                         need_version=no  ;;
9610   esac
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9615     case $host_os in
9616       openbsd2.[89] | openbsd2.[89].*)
9617         shlibpath_overrides_runpath=no
9618         ;;
9619       *)
9620         shlibpath_overrides_runpath=yes
9621         ;;
9622       esac
9623   else
9624     shlibpath_overrides_runpath=yes
9625   fi
9626   ;;
9627
9628 os2*)
9629   libname_spec='$name'
9630   shrext_cmds=".dll"
9631   need_lib_prefix=no
9632   library_names_spec='$libname${shared_ext} $libname.a'
9633   dynamic_linker='OS/2 ld.exe'
9634   shlibpath_var=LIBPATH
9635   ;;
9636
9637 osf3* | osf4* | osf5*)
9638   version_type=osf
9639   need_lib_prefix=no
9640   need_version=no
9641   soname_spec='${libname}${release}${shared_ext}$major'
9642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643   shlibpath_var=LD_LIBRARY_PATH
9644   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9645   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9646   ;;
9647
9648 solaris*)
9649   version_type=linux
9650   need_lib_prefix=no
9651   need_version=no
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653   soname_spec='${libname}${release}${shared_ext}$major'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   shlibpath_overrides_runpath=yes
9656   hardcode_into_libs=yes
9657   # ldd complains unless libraries are executable
9658   postinstall_cmds='chmod +x $lib'
9659   ;;
9660
9661 sunos4*)
9662   version_type=sunos
9663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665   shlibpath_var=LD_LIBRARY_PATH
9666   shlibpath_overrides_runpath=yes
9667   if test "$with_gnu_ld" = yes; then
9668     need_lib_prefix=no
9669   fi
9670   need_version=yes
9671   ;;
9672
9673 sysv4 | sysv4.3*)
9674   version_type=linux
9675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676   soname_spec='${libname}${release}${shared_ext}$major'
9677   shlibpath_var=LD_LIBRARY_PATH
9678   case $host_vendor in
9679     sni)
9680       shlibpath_overrides_runpath=no
9681       need_lib_prefix=no
9682       export_dynamic_flag_spec='${wl}-Blargedynsym'
9683       runpath_var=LD_RUN_PATH
9684       ;;
9685     siemens)
9686       need_lib_prefix=no
9687       ;;
9688     motorola)
9689       need_lib_prefix=no
9690       need_version=no
9691       shlibpath_overrides_runpath=no
9692       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9693       ;;
9694   esac
9695   ;;
9696
9697 sysv4*MP*)
9698   if test -d /usr/nec ;then
9699     version_type=linux
9700     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701     soname_spec='$libname${shared_ext}.$major'
9702     shlibpath_var=LD_LIBRARY_PATH
9703   fi
9704   ;;
9705
9706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9707   version_type=freebsd-elf
9708   need_lib_prefix=no
9709   need_version=no
9710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9711   soname_spec='${libname}${release}${shared_ext}$major'
9712   shlibpath_var=LD_LIBRARY_PATH
9713   hardcode_into_libs=yes
9714   if test "$with_gnu_ld" = yes; then
9715     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9716     shlibpath_overrides_runpath=no
9717   else
9718     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9719     shlibpath_overrides_runpath=yes
9720     case $host_os in
9721       sco3.2v5*)
9722         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9723         ;;
9724     esac
9725   fi
9726   sys_lib_dlsearch_path_spec='/usr/lib'
9727   ;;
9728
9729 uts4*)
9730   version_type=linux
9731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732   soname_spec='${libname}${release}${shared_ext}$major'
9733   shlibpath_var=LD_LIBRARY_PATH
9734   ;;
9735
9736 *)
9737   dynamic_linker=no
9738   ;;
9739 esac
9740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9741 echo "${ECHO_T}$dynamic_linker" >&6; }
9742 test "$dynamic_linker" = no && can_build_shared=no
9743
9744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9745 if test "$GCC" = yes; then
9746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9747 fi
9748
9749
9750 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9751 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9752 if test "${libltdl_cv_shlibext+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755
9756 module=yes
9757 eval libltdl_cv_shlibext=$shrext_cmds
9758
9759 fi
9760 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9761 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9762 if test -n "$libltdl_cv_shlibext"; then
9763
9764 cat >>confdefs.h <<_ACEOF
9765 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9766 _ACEOF
9767
9768 fi
9769
9770
9771 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9772 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9773 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   libltdl_cv_shlibpath_var="$shlibpath_var"
9777 fi
9778 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9779 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9780 if test -n "$libltdl_cv_shlibpath_var"; then
9781
9782 cat >>confdefs.h <<_ACEOF
9783 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9784 _ACEOF
9785
9786 fi
9787
9788
9789 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9790 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9791 if test "${libltdl_cv_sys_search_path+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9795 fi
9796 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9797 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9798 if test -n "$libltdl_cv_sys_search_path"; then
9799   sys_search_path=
9800   for dir in $libltdl_cv_sys_search_path; do
9801     if test -z "$sys_search_path"; then
9802       sys_search_path="$dir"
9803     else
9804       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9805     fi
9806   done
9807
9808 cat >>confdefs.h <<_ACEOF
9809 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9810 _ACEOF
9811
9812 fi
9813
9814 { echo "$as_me:$LINENO: checking for objdir" >&5
9815 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9816 if test "${libltdl_cv_objdir+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   libltdl_cv_objdir="$objdir"
9820   if test -n "$objdir"; then
9821     :
9822   else
9823     rm -f .libs 2>/dev/null
9824     mkdir .libs 2>/dev/null
9825     if test -d .libs; then
9826       libltdl_cv_objdir=.libs
9827     else
9828       # MS-DOS does not allow filenames that begin with a dot.
9829       libltdl_cv_objdir=_libs
9830     fi
9831   rmdir .libs 2>/dev/null
9832   fi
9833
9834 fi
9835 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9836 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9837
9838 cat >>confdefs.h <<_ACEOF
9839 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9840 _ACEOF
9841
9842
9843
9844
9845
9846
9847 # Check for command to grab the raw symbol name followed by C symbol from nm.
9848 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9849 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9850 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853
9854 # These are sane defaults that work on at least a few old systems.
9855 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9856
9857 # Character class describing NM global symbol codes.
9858 symcode='[BCDEGRST]'
9859
9860 # Regexp to match symbols that can be accessed directly from C.
9861 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9862
9863 # Transform an extracted symbol line into a proper C declaration
9864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9865
9866 # Transform an extracted symbol line into symbol name and symbol address
9867 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'"
9868
9869 # Define system-specific variables.
9870 case $host_os in
9871 aix*)
9872   symcode='[BCDT]'
9873   ;;
9874 cygwin* | mingw* | pw32*)
9875   symcode='[ABCDGISTW]'
9876   ;;
9877 hpux*) # Its linker distinguishes data from code symbols
9878   if test "$host_cpu" = ia64; then
9879     symcode='[ABCDEGRST]'
9880   fi
9881   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9882   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'"
9883   ;;
9884 linux*)
9885   if test "$host_cpu" = ia64; then
9886     symcode='[ABCDGIRSTW]'
9887     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9888     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'"
9889   fi
9890   ;;
9891 irix* | nonstopux*)
9892   symcode='[BCDEGRST]'
9893   ;;
9894 osf*)
9895   symcode='[BCDEGQRST]'
9896   ;;
9897 solaris*)
9898   symcode='[BDRT]'
9899   ;;
9900 sco3.2v5*)
9901   symcode='[DT]'
9902   ;;
9903 sysv4.2uw2*)
9904   symcode='[DT]'
9905   ;;
9906 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9907   symcode='[ABDT]'
9908   ;;
9909 sysv4)
9910   symcode='[DFNSTU]'
9911   ;;
9912 esac
9913
9914 # Handle CRLF in mingw tool chain
9915 opt_cr=
9916 case $build_os in
9917 mingw*)
9918   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9919   ;;
9920 esac
9921
9922 # If we're using GNU nm, then use its standard symbol codes.
9923 case `$NM -V 2>&1` in
9924 *GNU* | *'with BFD'*)
9925   symcode='[ABCDGIRSTW]' ;;
9926 esac
9927
9928 # Try without a prefix undercore, then with it.
9929 for ac_symprfx in "" "_"; do
9930
9931   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9932   symxfrm="\\1 $ac_symprfx\\2 \\2"
9933
9934   # Write the raw and C identifiers.
9935   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9936
9937   # Check to see that the pipe works correctly.
9938   pipe_works=no
9939
9940   rm -f conftest*
9941   cat > conftest.$ac_ext <<EOF
9942 #ifdef __cplusplus
9943 extern "C" {
9944 #endif
9945 char nm_test_var;
9946 void nm_test_func(){}
9947 #ifdef __cplusplus
9948 }
9949 #endif
9950 int main(){nm_test_var='a';nm_test_func();return(0);}
9951 EOF
9952
9953   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954   (eval $ac_compile) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; then
9958     # Now try to grab the symbols.
9959     nlist=conftest.nm
9960     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9961   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } && test -s "$nlist"; then
9965       # Try sorting and uniquifying the output.
9966       if sort "$nlist" | uniq > "$nlist"T; then
9967         mv -f "$nlist"T "$nlist"
9968       else
9969         rm -f "$nlist"T
9970       fi
9971
9972       # Make sure that we snagged all the symbols we need.
9973       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9974         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9975           cat <<EOF > conftest.$ac_ext
9976 #ifdef __cplusplus
9977 extern "C" {
9978 #endif
9979
9980 EOF
9981           # Now generate the symbol file.
9982           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9983
9984           cat <<EOF >> conftest.$ac_ext
9985 #if defined (__STDC__) && __STDC__
9986 # define lt_ptr_t void *
9987 #else
9988 # define lt_ptr_t char *
9989 # define const
9990 #endif
9991
9992 /* The mapping between symbol names and symbols. */
9993 const struct {
9994   const char *name;
9995   lt_ptr_t address;
9996 }
9997 lt_preloaded_symbols[] =
9998 {
9999 EOF
10000           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10001           cat <<\EOF >> conftest.$ac_ext
10002   {0, (lt_ptr_t) 0}
10003 };
10004
10005 #ifdef __cplusplus
10006 }
10007 #endif
10008 EOF
10009           # Now try linking the two files.
10010           mv conftest.$ac_objext conftstm.$ac_objext
10011           lt_save_LIBS="$LIBS"
10012           lt_save_CFLAGS="$CFLAGS"
10013           LIBS="conftstm.$ac_objext"
10014           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10015           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10020             pipe_works=yes
10021           fi
10022           LIBS="$lt_save_LIBS"
10023           CFLAGS="$lt_save_CFLAGS"
10024         else
10025           echo "cannot find nm_test_func in $nlist" >&5
10026         fi
10027       else
10028         echo "cannot find nm_test_var in $nlist" >&5
10029       fi
10030     else
10031       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10032     fi
10033   else
10034     echo "$progname: failed program was:" >&5
10035     cat conftest.$ac_ext >&5
10036   fi
10037   rm -f conftest* conftst*
10038
10039   # Do not use the global_symbol_pipe unless it works.
10040   if test "$pipe_works" = yes; then
10041     break
10042   else
10043     lt_cv_sys_global_symbol_pipe=
10044   fi
10045 done
10046
10047 fi
10048
10049 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10050   lt_cv_sys_global_symbol_to_cdecl=
10051 fi
10052 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10053   { echo "$as_me:$LINENO: result: failed" >&5
10054 echo "${ECHO_T}failed" >&6; }
10055 else
10056   { echo "$as_me:$LINENO: result: ok" >&5
10057 echo "${ECHO_T}ok" >&6; }
10058 fi
10059
10060
10061 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10062 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10063 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10067     libltdl_cv_preloaded_symbols=yes
10068   else
10069     libltdl_cv_preloaded_symbols=no
10070   fi
10071
10072 fi
10073 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10074 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10075 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10076
10077 cat >>confdefs.h <<\_ACEOF
10078 #define HAVE_PRELOADED_SYMBOLS 1
10079 _ACEOF
10080
10081 fi
10082
10083 LIBADD_DL=
10084
10085 ac_ext=c
10086 ac_cpp='$CPP $CPPFLAGS'
10087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10090
10091
10092 { echo "$as_me:$LINENO: checking for shl_load" >&5
10093 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10094 if test "${ac_cv_func_shl_load+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10105 #define shl_load innocuous_shl_load
10106
10107 /* System header to define __stub macros and hopefully few prototypes,
10108     which can conflict with char shl_load (); below.
10109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110     <limits.h> exists even on freestanding compilers.  */
10111
10112 #ifdef __STDC__
10113 # include <limits.h>
10114 #else
10115 # include <assert.h>
10116 #endif
10117
10118 #undef shl_load
10119
10120 /* Override any GCC internal prototype to avoid an error.
10121    Use char because int might match the return type of a GCC
10122    builtin and then its argument prototype would still apply.  */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char shl_load ();
10127 /* The GNU C library defines this for functions which it implements
10128     to always fail with ENOSYS.  Some functions are actually named
10129     something starting with __ and the normal name is an alias.  */
10130 #if defined __stub_shl_load || defined __stub___shl_load
10131 choke me
10132 #endif
10133
10134 int
10135 main ()
10136 {
10137 return shl_load ();
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_link") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157   { (case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_try") 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; } &&
10166          { ac_try='test -s conftest$ac_exeext'
10167   { (case "(($ac_try" in
10168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169   *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172   (eval "$ac_try") 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   ac_cv_func_shl_load=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         ac_cv_func_shl_load=no
10182 fi
10183
10184 rm -f core conftest.err conftest.$ac_objext \
10185       conftest$ac_exeext conftest.$ac_ext
10186 fi
10187 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10188 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10189 if test $ac_cv_func_shl_load = yes; then
10190
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_SHL_LOAD 1
10193 _ACEOF
10194
10195 else
10196   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10197 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10198 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10199   echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201   ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-ldld  $LIBS"
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209
10210 /* Override any GCC internal prototype to avoid an error.
10211    Use char because int might match the return type of a GCC
10212    builtin and then its argument prototype would still apply.  */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char shl_load ();
10217 int
10218 main ()
10219 {
10220 return shl_load ();
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229   *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232   (eval "$ac_link") 2>conftest.er1
10233   ac_status=$?
10234   grep -v '^ *+' conftest.er1 >conftest.err
10235   rm -f conftest.er1
10236   cat conftest.err >&5
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240   { (case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245   (eval "$ac_try") 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest$ac_exeext'
10250   { (case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_try") 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; }; then
10259   ac_cv_lib_dld_shl_load=yes
10260 else
10261   echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264         ac_cv_lib_dld_shl_load=no
10265 fi
10266
10267 rm -f core conftest.err conftest.$ac_objext \
10268       conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10273 if test $ac_cv_lib_dld_shl_load = yes; then
10274
10275 cat >>confdefs.h <<\_ACEOF
10276 #define HAVE_SHL_LOAD 1
10277 _ACEOF
10278
10279         LIBADD_DL="$LIBADD_DL -ldld"
10280 else
10281   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10282 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10283 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286   ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-ldl  $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294
10295 /* Override any GCC internal prototype to avoid an error.
10296    Use char because int might match the return type of a GCC
10297    builtin and then its argument prototype would still apply.  */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 char dlopen ();
10302 int
10303 main ()
10304 {
10305 return dlopen ();
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_link") 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325   { (case "(($ac_try" in
10326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327   *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330   (eval "$ac_try") 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; } &&
10334          { ac_try='test -s conftest$ac_exeext'
10335   { (case "(($ac_try" in
10336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337   *) ac_try_echo=$ac_try;;
10338 esac
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340   (eval "$ac_try") 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; }; then
10344   ac_cv_lib_dl_dlopen=yes
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349         ac_cv_lib_dl_dlopen=no
10350 fi
10351
10352 rm -f core conftest.err conftest.$ac_objext \
10353       conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10355 fi
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10357 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10358 if test $ac_cv_lib_dl_dlopen = yes; then
10359
10360 cat >>confdefs.h <<\_ACEOF
10361 #define HAVE_LIBDL 1
10362 _ACEOF
10363
10364                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 #if HAVE_DLFCN_H
10373 #  include <dlfcn.h>
10374 #endif
10375
10376 int
10377 main ()
10378 {
10379 dlopen(0, 0);
10380   ;
10381   return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_link") 2>conftest.er1
10392   ac_status=$?
10393   grep -v '^ *+' conftest.er1 >conftest.err
10394   rm -f conftest.er1
10395   cat conftest.err >&5
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } &&
10398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10399   { (case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404   (eval "$ac_try") 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; } &&
10408          { ac_try='test -s conftest$ac_exeext'
10409   { (case "(($ac_try" in
10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411   *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414   (eval "$ac_try") 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; }; then
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_LIBDL 1
10421 _ACEOF
10422  libltdl_cv_func_dlopen="yes"
10423 else
10424   echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10428 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10429 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10430   echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432   ac_check_lib_save_LIBS=$LIBS
10433 LIBS="-lsvld  $LIBS"
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440
10441 /* Override any GCC internal prototype to avoid an error.
10442    Use char because int might match the return type of a GCC
10443    builtin and then its argument prototype would still apply.  */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 char dlopen ();
10448 int
10449 main ()
10450 {
10451 return dlopen ();
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463   (eval "$ac_link") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10471   { (case "(($ac_try" in
10472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473   *) ac_try_echo=$ac_try;;
10474 esac
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476   (eval "$ac_try") 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest$ac_exeext'
10481   { (case "(($ac_try" in
10482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483   *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486   (eval "$ac_try") 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   ac_cv_lib_svld_dlopen=yes
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495         ac_cv_lib_svld_dlopen=no
10496 fi
10497
10498 rm -f core conftest.err conftest.$ac_objext \
10499       conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10501 fi
10502 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10503 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10504 if test $ac_cv_lib_svld_dlopen = yes; then
10505
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_LIBDL 1
10508 _ACEOF
10509
10510                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10511 else
10512   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10513 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-ldld  $LIBS"
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525
10526 /* Override any GCC internal prototype to avoid an error.
10527    Use char because int might match the return type of a GCC
10528    builtin and then its argument prototype would still apply.  */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 char dld_link ();
10533 int
10534 main ()
10535 {
10536 return dld_link ();
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_link") 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556   { (case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_try") 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; } &&
10565          { ac_try='test -s conftest$ac_exeext'
10566   { (case "(($ac_try" in
10567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568   *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571   (eval "$ac_try") 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_lib_dld_dld_link=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580         ac_cv_lib_dld_dld_link=no
10581 fi
10582
10583 rm -f core conftest.err conftest.$ac_objext \
10584       conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10586 fi
10587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10589 if test $ac_cv_lib_dld_dld_link = yes; then
10590
10591 cat >>confdefs.h <<\_ACEOF
10592 #define HAVE_DLD 1
10593 _ACEOF
10594
10595                 LIBADD_DL="$LIBADD_DL -ldld"
10596 else
10597   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10598 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10599 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602   cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10610 #define _dyld_func_lookup innocuous__dyld_func_lookup
10611
10612 /* System header to define __stub macros and hopefully few prototypes,
10613     which can conflict with char _dyld_func_lookup (); below.
10614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10615     <limits.h> exists even on freestanding compilers.  */
10616
10617 #ifdef __STDC__
10618 # include <limits.h>
10619 #else
10620 # include <assert.h>
10621 #endif
10622
10623 #undef _dyld_func_lookup
10624
10625 /* Override any GCC internal prototype to avoid an error.
10626    Use char because int might match the return type of a GCC
10627    builtin and then its argument prototype would still apply.  */
10628 #ifdef __cplusplus
10629 extern "C"
10630 #endif
10631 char _dyld_func_lookup ();
10632 /* The GNU C library defines this for functions which it implements
10633     to always fail with ENOSYS.  Some functions are actually named
10634     something starting with __ and the normal name is an alias.  */
10635 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10636 choke me
10637 #endif
10638
10639 int
10640 main ()
10641 {
10642 return _dyld_func_lookup ();
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651   *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654   (eval "$ac_link") 2>conftest.er1
10655   ac_status=$?
10656   grep -v '^ *+' conftest.er1 >conftest.err
10657   rm -f conftest.er1
10658   cat conftest.err >&5
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } &&
10661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10662   { (case "(($ac_try" in
10663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664   *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667   (eval "$ac_try") 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest$ac_exeext'
10672   { (case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677   (eval "$ac_try") 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   ac_cv_func__dyld_func_lookup=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686         ac_cv_func__dyld_func_lookup=no
10687 fi
10688
10689 rm -f core conftest.err conftest.$ac_objext \
10690       conftest$ac_exeext conftest.$ac_ext
10691 fi
10692 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10693 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10694 if test $ac_cv_func__dyld_func_lookup = yes; then
10695
10696 cat >>confdefs.h <<\_ACEOF
10697 #define HAVE_DYLD 1
10698 _ACEOF
10699
10700 fi
10701
10702
10703 fi
10704
10705
10706 fi
10707
10708
10709 fi
10710
10711 rm -f core conftest.err conftest.$ac_objext \
10712       conftest$ac_exeext conftest.$ac_ext
10713
10714 fi
10715
10716
10717 fi
10718
10719
10720 fi
10721
10722
10723 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10724 then
10725   lt_save_LIBS="$LIBS"
10726   LIBS="$LIBS $LIBADD_DL"
10727
10728 for ac_func in dlerror
10729 do
10730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10744 #define $ac_func innocuous_$ac_func
10745
10746 /* System header to define __stub macros and hopefully few prototypes,
10747     which can conflict with char $ac_func (); below.
10748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749     <limits.h> exists even on freestanding compilers.  */
10750
10751 #ifdef __STDC__
10752 # include <limits.h>
10753 #else
10754 # include <assert.h>
10755 #endif
10756
10757 #undef $ac_func
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char $ac_func ();
10766 /* The GNU C library defines this for functions which it implements
10767     to always fail with ENOSYS.  Some functions are actually named
10768     something starting with __ and the normal name is an alias.  */
10769 #if defined __stub_$ac_func || defined __stub___$ac_func
10770 choke me
10771 #endif
10772
10773 int
10774 main ()
10775 {
10776 return $ac_func ();
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_link") 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } &&
10795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796   { (case "(($ac_try" in
10797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798   *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801   (eval "$ac_try") 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; } &&
10805          { ac_try='test -s conftest$ac_exeext'
10806   { (case "(($ac_try" in
10807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808   *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811   (eval "$ac_try") 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   eval "$as_ac_var=yes"
10816 else
10817   echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820         eval "$as_ac_var=no"
10821 fi
10822
10823 rm -f core conftest.err conftest.$ac_objext \
10824       conftest$ac_exeext conftest.$ac_ext
10825 fi
10826 ac_res=`eval echo '${'$as_ac_var'}'`
10827                { echo "$as_me:$LINENO: result: $ac_res" >&5
10828 echo "${ECHO_T}$ac_res" >&6; }
10829 if test `eval echo '${'$as_ac_var'}'` = yes; then
10830   cat >>confdefs.h <<_ACEOF
10831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10832 _ACEOF
10833
10834 fi
10835 done
10836
10837   LIBS="$lt_save_LIBS"
10838 fi
10839 ac_ext=c
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845
10846
10847 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10848 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10849 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   ac_cv_sys_symbol_underscore=no
10853   cat > conftest.$ac_ext <<EOF
10854 void nm_test_func(){}
10855 int main(){nm_test_func;return 0;}
10856 EOF
10857   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858   (eval $ac_compile) 2>&5
10859   ac_status=$?
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); }; then
10862     # Now try to grab the symbols.
10863     ac_nlist=conftest.nm
10864     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10865   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } && test -s "$ac_nlist"; then
10869       # See whether the symbols have a leading underscore.
10870       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10871         ac_cv_sys_symbol_underscore=yes
10872       else
10873         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10874           :
10875         else
10876           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10877         fi
10878       fi
10879     else
10880       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10881     fi
10882   else
10883     echo "configure: failed program was:" >&5
10884     cat conftest.c >&5
10885   fi
10886   rm -rf conftest*
10887
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10890 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10891
10892
10893 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10894   if test x"$libltdl_cv_func_dlopen" = xyes ||
10895      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10896         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10897 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10898 if test "${libltdl_cv_need_uscore+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   libltdl_cv_need_uscore=unknown
10902           save_LIBS="$LIBS"
10903           LIBS="$LIBS $LIBADD_DL"
10904           if test "$cross_compiling" = yes; then :
10905   libltdl_cv_need_uscore=cross
10906 else
10907   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908   lt_status=$lt_dlunknown
10909   cat > conftest.$ac_ext <<EOF
10910 #line 10905 "configure"
10911 #include "confdefs.h"
10912
10913 #if HAVE_DLFCN_H
10914 #include <dlfcn.h>
10915 #endif
10916
10917 #include <stdio.h>
10918
10919 #ifdef RTLD_GLOBAL
10920 #  define LT_DLGLOBAL           RTLD_GLOBAL
10921 #else
10922 #  ifdef DL_GLOBAL
10923 #    define LT_DLGLOBAL         DL_GLOBAL
10924 #  else
10925 #    define LT_DLGLOBAL         0
10926 #  endif
10927 #endif
10928
10929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930    find out it does not work in some platform. */
10931 #ifndef LT_DLLAZY_OR_NOW
10932 #  ifdef RTLD_LAZY
10933 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10934 #  else
10935 #    ifdef DL_LAZY
10936 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10937 #    else
10938 #      ifdef RTLD_NOW
10939 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10940 #      else
10941 #        ifdef DL_NOW
10942 #          define LT_DLLAZY_OR_NOW      DL_NOW
10943 #        else
10944 #          define LT_DLLAZY_OR_NOW      0
10945 #        endif
10946 #      endif
10947 #    endif
10948 #  endif
10949 #endif
10950
10951 #ifdef __cplusplus
10952 extern "C" void exit (int);
10953 #endif
10954
10955 void fnord() { int i=42;}
10956 int main ()
10957 {
10958   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10959   int status = $lt_dlunknown;
10960
10961   if (self)
10962     {
10963       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10964       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10965       /* dlclose (self); */
10966     }
10967   else
10968     puts (dlerror ());
10969
10970     exit (status);
10971 }
10972 EOF
10973   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974   (eval $ac_link) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10978     (./conftest; exit; ) >&5 2>/dev/null
10979     lt_status=$?
10980     case x$lt_status in
10981       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10982       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10983       x$lt_dlunknown|x*)  ;;
10984     esac
10985   else :
10986     # compilation failed
10987
10988   fi
10989 fi
10990 rm -fr conftest*
10991
10992           LIBS="$save_LIBS"
10993
10994 fi
10995 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10996 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10997   fi
10998 fi
10999
11000 if test x"$libltdl_cv_need_uscore" = xyes; then
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define NEED_USCORE 1
11004 _ACEOF
11005
11006 fi
11007
11008
11009 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11010 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11011 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   # PORTME does your system automatically load deplibs for dlopen?
11015   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11016   # For now, we just catch OSes we know something about -- in the
11017   # future, we'll try test this programmatically.
11018   libltdl_cv_sys_dlopen_deplibs=unknown
11019   case "$host_os" in
11020   aix3*|aix4.1.*|aix4.2.*)
11021     # Unknown whether this is true for these versions of AIX, but
11022     # we want this `case' here to explicitly catch those versions.
11023     libltdl_cv_sys_dlopen_deplibs=unknown
11024     ;;
11025   aix[45]*)
11026     libltdl_cv_sys_dlopen_deplibs=yes
11027     ;;
11028   darwin*)
11029     # Assuming the user has installed a libdl from somewhere, this is true
11030     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11031     libltdl_cv_sys_dlopen_deplibs=yes
11032     ;;
11033   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11034     # GNU and its variants, using gnu ld.so (Glibc)
11035     libltdl_cv_sys_dlopen_deplibs=yes
11036     ;;
11037   hpux10*|hpux11*)
11038     libltdl_cv_sys_dlopen_deplibs=yes
11039     ;;
11040   interix*)
11041     libltdl_cv_sys_dlopen_deplibs=yes
11042     ;;
11043   irix[12345]*|irix6.[01]*)
11044     # Catch all versions of IRIX before 6.2, and indicate that we don't
11045     # know how it worked for any of those versions.
11046     libltdl_cv_sys_dlopen_deplibs=unknown
11047     ;;
11048   irix*)
11049     # The case above catches anything before 6.2, and it's known that
11050     # at 6.2 and later dlopen does load deplibs.
11051     libltdl_cv_sys_dlopen_deplibs=yes
11052     ;;
11053   netbsd*)
11054     libltdl_cv_sys_dlopen_deplibs=yes
11055     ;;
11056   openbsd*)
11057     libltdl_cv_sys_dlopen_deplibs=yes
11058     ;;
11059   osf[1234]*)
11060     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11061     # it did *not* use an RPATH in a shared library to find objects the
11062     # library depends on, so we explictly say `no'.
11063     libltdl_cv_sys_dlopen_deplibs=no
11064     ;;
11065   osf5.0|osf5.0a|osf5.1)
11066     # dlopen *does* load deplibs and with the right loader patch applied
11067     # it even uses RPATH in a shared library to search for shared objects
11068     # that the library depends on, but there's no easy way to know if that
11069     # patch is installed.  Since this is the case, all we can really
11070     # say is unknown -- it depends on the patch being installed.  If
11071     # it is, this changes to `yes'.  Without it, it would be `no'.
11072     libltdl_cv_sys_dlopen_deplibs=unknown
11073     ;;
11074   osf*)
11075     # the two cases above should catch all versions of osf <= 5.1.  Read
11076     # the comments above for what we know about them.
11077     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11078     # is used to find them so we can finally say `yes'.
11079     libltdl_cv_sys_dlopen_deplibs=yes
11080     ;;
11081   solaris*)
11082     libltdl_cv_sys_dlopen_deplibs=yes
11083     ;;
11084   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11085     libltdl_cv_sys_dlopen_deplibs=yes
11086     ;;
11087   esac
11088
11089 fi
11090 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11091 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11092 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11093
11094 cat >>confdefs.h <<\_ACEOF
11095 #define LTDL_DLOPEN_DEPLIBS 1
11096 _ACEOF
11097
11098 fi
11099
11100
11101 for ac_header in argz.h
11102 do
11103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11105   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 fi
11110 ac_res=`eval echo '${'$as_ac_Header'}'`
11111                { echo "$as_me:$LINENO: result: $ac_res" >&5
11112 echo "${ECHO_T}$ac_res" >&6; }
11113 else
11114   # Is the header compilable?
11115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123 $ac_includes_default
11124 #include <$ac_header>
11125 _ACEOF
11126 rm -f conftest.$ac_objext
11127 if { (ac_try="$ac_compile"
11128 case "(($ac_try" in
11129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130   *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133   (eval "$ac_compile") 2>conftest.er1
11134   ac_status=$?
11135   grep -v '^ *+' conftest.er1 >conftest.err
11136   rm -f conftest.er1
11137   cat conftest.err >&5
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } &&
11140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; } &&
11150          { ac_try='test -s conftest.$ac_objext'
11151   { (case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_try") 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; }; then
11160   ac_header_compiler=yes
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165         ac_header_compiler=no
11166 fi
11167
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11170 echo "${ECHO_T}$ac_header_compiler" >&6; }
11171
11172 # Is the header present?
11173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <$ac_header>
11182 _ACEOF
11183 if { (ac_try="$ac_cpp conftest.$ac_ext"
11184 case "(($ac_try" in
11185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186   *) ac_try_echo=$ac_try;;
11187 esac
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } >/dev/null; then
11196   if test -s conftest.err; then
11197     ac_cpp_err=$ac_c_preproc_warn_flag
11198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11199   else
11200     ac_cpp_err=
11201   fi
11202 else
11203   ac_cpp_err=yes
11204 fi
11205 if test -z "$ac_cpp_err"; then
11206   ac_header_preproc=yes
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211   ac_header_preproc=no
11212 fi
11213
11214 rm -f conftest.err conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11216 echo "${ECHO_T}$ac_header_preproc" >&6; }
11217
11218 # So?  What about this header?
11219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11220   yes:no: )
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11225     ac_header_preproc=yes
11226     ;;
11227   no:yes:* )
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11230     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11231 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11232     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11234     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11235 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11238     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11240     ( cat <<\_ASBOX
11241 ## ----------------------------------- ##
11242 ## Report this to llvmbugs@cs.uiuc.edu ##
11243 ## ----------------------------------- ##
11244 _ASBOX
11245      ) | sed "s/^/$as_me: WARNING:     /" >&2
11246     ;;
11247 esac
11248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   eval "$as_ac_Header=\$ac_header_preproc"
11254 fi
11255 ac_res=`eval echo '${'$as_ac_Header'}'`
11256                { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11258
11259 fi
11260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11261   cat >>confdefs.h <<_ACEOF
11262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263 _ACEOF
11264
11265 fi
11266
11267 done
11268
11269
11270 { echo "$as_me:$LINENO: checking for error_t" >&5
11271 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11272 if test "${ac_cv_type_error_t+set}" = set; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 #if HAVE_ARGZ_H
11282 #  include <argz.h>
11283 #endif
11284
11285 typedef error_t ac__type_new_;
11286 int
11287 main ()
11288 {
11289 if ((ac__type_new_ *) 0)
11290   return 0;
11291 if (sizeof (ac__type_new_))
11292   return 0;
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (ac_try="$ac_compile"
11299 case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_compile") 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } &&
11311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11312   { (case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_try") 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; } &&
11321          { ac_try='test -s conftest.$ac_objext'
11322   { (case "(($ac_try" in
11323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324   *) ac_try_echo=$ac_try;;
11325 esac
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327   (eval "$ac_try") 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; }; then
11331   ac_cv_type_error_t=yes
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11335
11336         ac_cv_type_error_t=no
11337 fi
11338
11339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340 fi
11341 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11342 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11343 if test $ac_cv_type_error_t = yes; then
11344
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_ERROR_T 1
11347 _ACEOF
11348
11349
11350 else
11351
11352 cat >>confdefs.h <<\_ACEOF
11353 #define error_t int
11354 _ACEOF
11355
11356 fi
11357
11358
11359
11360
11361
11362
11363
11364 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11365 do
11366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11380 #define $ac_func innocuous_$ac_func
11381
11382 /* System header to define __stub macros and hopefully few prototypes,
11383     which can conflict with char $ac_func (); below.
11384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11385     <limits.h> exists even on freestanding compilers.  */
11386
11387 #ifdef __STDC__
11388 # include <limits.h>
11389 #else
11390 # include <assert.h>
11391 #endif
11392
11393 #undef $ac_func
11394
11395 /* Override any GCC internal prototype to avoid an error.
11396    Use char because int might match the return type of a GCC
11397    builtin and then its argument prototype would still apply.  */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char $ac_func ();
11402 /* The GNU C library defines this for functions which it implements
11403     to always fail with ENOSYS.  Some functions are actually named
11404     something starting with __ and the normal name is an alias.  */
11405 #if defined __stub_$ac_func || defined __stub___$ac_func
11406 choke me
11407 #endif
11408
11409 int
11410 main ()
11411 {
11412 return $ac_func ();
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424   (eval "$ac_link") 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } &&
11431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11432   { (case "(($ac_try" in
11433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434   *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437   (eval "$ac_try") 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; } &&
11441          { ac_try='test -s conftest$ac_exeext'
11442   { (case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_try") 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   eval "$as_ac_var=yes"
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456         eval "$as_ac_var=no"
11457 fi
11458
11459 rm -f core conftest.err conftest.$ac_objext \
11460       conftest$ac_exeext conftest.$ac_ext
11461 fi
11462 ac_res=`eval echo '${'$as_ac_var'}'`
11463                { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 if test `eval echo '${'$as_ac_var'}'` = yes; then
11466   cat >>confdefs.h <<_ACEOF
11467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11468 _ACEOF
11469
11470 fi
11471 done
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11501                   stdio.h unistd.h
11502 do
11503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 fi
11510 ac_res=`eval echo '${'$as_ac_Header'}'`
11511                { echo "$as_me:$LINENO: result: $ac_res" >&5
11512 echo "${ECHO_T}$ac_res" >&6; }
11513 else
11514   # Is the header compilable?
11515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11517 cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523 $ac_includes_default
11524 #include <$ac_header>
11525 _ACEOF
11526 rm -f conftest.$ac_objext
11527 if { (ac_try="$ac_compile"
11528 case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_compile") 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541   { (case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_try") 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; } &&
11550          { ac_try='test -s conftest.$ac_objext'
11551   { (case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_try") 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   ac_header_compiler=yes
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565         ac_header_compiler=no
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570 echo "${ECHO_T}$ac_header_compiler" >&6; }
11571
11572 # Is the header present?
11573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 #include <$ac_header>
11582 _ACEOF
11583 if { (ac_try="$ac_cpp conftest.$ac_ext"
11584 case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } >/dev/null; then
11596   if test -s conftest.err; then
11597     ac_cpp_err=$ac_c_preproc_warn_flag
11598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11599   else
11600     ac_cpp_err=
11601   fi
11602 else
11603   ac_cpp_err=yes
11604 fi
11605 if test -z "$ac_cpp_err"; then
11606   ac_header_preproc=yes
11607 else
11608   echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11610
11611   ac_header_preproc=no
11612 fi
11613
11614 rm -f conftest.err conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11616 echo "${ECHO_T}$ac_header_preproc" >&6; }
11617
11618 # So?  What about this header?
11619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11620   yes:no: )
11621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11625     ac_header_preproc=yes
11626     ;;
11627   no:yes:* )
11628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11640     ( cat <<\_ASBOX
11641 ## ----------------------------------- ##
11642 ## Report this to llvmbugs@cs.uiuc.edu ##
11643 ## ----------------------------------- ##
11644 _ASBOX
11645      ) | sed "s/^/$as_me: WARNING:     /" >&2
11646     ;;
11647 esac
11648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   eval "$as_ac_Header=\$ac_header_preproc"
11654 fi
11655 ac_res=`eval echo '${'$as_ac_Header'}'`
11656                { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11658
11659 fi
11660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11661   cat >>confdefs.h <<_ACEOF
11662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11663 _ACEOF
11664
11665 fi
11666
11667 done
11668
11669
11670
11671
11672
11673 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11674 do
11675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 fi
11682 ac_res=`eval echo '${'$as_ac_Header'}'`
11683                { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 else
11686   # Is the header compilable?
11687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 $ac_includes_default
11696 #include <$ac_header>
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_compile") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713   { (case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_try") 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest.$ac_objext'
11723   { (case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_try") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   ac_header_compiler=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737         ac_header_compiler=no
11738 fi
11739
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11742 echo "${ECHO_T}$ac_header_compiler" >&6; }
11743
11744 # Is the header present?
11745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 #include <$ac_header>
11754 _ACEOF
11755 if { (ac_try="$ac_cpp conftest.$ac_ext"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } >/dev/null; then
11768   if test -s conftest.err; then
11769     ac_cpp_err=$ac_c_preproc_warn_flag
11770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11771   else
11772     ac_cpp_err=
11773   fi
11774 else
11775   ac_cpp_err=yes
11776 fi
11777 if test -z "$ac_cpp_err"; then
11778   ac_header_preproc=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783   ac_header_preproc=no
11784 fi
11785
11786 rm -f conftest.err conftest.$ac_ext
11787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11788 echo "${ECHO_T}$ac_header_preproc" >&6; }
11789
11790 # So?  What about this header?
11791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11792   yes:no: )
11793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11797     ac_header_preproc=yes
11798     ;;
11799   no:yes:* )
11800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11812     ( cat <<\_ASBOX
11813 ## ----------------------------------- ##
11814 ## Report this to llvmbugs@cs.uiuc.edu ##
11815 ## ----------------------------------- ##
11816 _ASBOX
11817      ) | sed "s/^/$as_me: WARNING:     /" >&2
11818     ;;
11819 esac
11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   eval "$as_ac_Header=\$ac_header_preproc"
11826 fi
11827 ac_res=`eval echo '${'$as_ac_Header'}'`
11828                { echo "$as_me:$LINENO: result: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11830
11831 fi
11832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833   cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 _ACEOF
11836
11837 fi
11838
11839 done
11840
11841
11842
11843 for ac_header in string.h strings.h
11844 do
11845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11850   echo $ECHO_N "(cached) $ECHO_C" >&6
11851 fi
11852 ac_res=`eval echo '${'$as_ac_Header'}'`
11853                { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 else
11856   # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 $ac_includes_default
11866 #include <$ac_header>
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_compile") 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } &&
11882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11883   { (case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888   (eval "$ac_try") 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; } &&
11892          { ac_try='test -s conftest.$ac_objext'
11893   { (case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898   (eval "$ac_try") 2>&5
11899   ac_status=$?
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); }; }; then
11902   ac_header_compiler=yes
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907         ac_header_compiler=no
11908 fi
11909
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11912 echo "${ECHO_T}$ac_header_compiler" >&6; }
11913
11914 # Is the header present?
11915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 #include <$ac_header>
11924 _ACEOF
11925 if { (ac_try="$ac_cpp conftest.$ac_ext"
11926 case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } >/dev/null; then
11938   if test -s conftest.err; then
11939     ac_cpp_err=$ac_c_preproc_warn_flag
11940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11941   else
11942     ac_cpp_err=
11943   fi
11944 else
11945   ac_cpp_err=yes
11946 fi
11947 if test -z "$ac_cpp_err"; then
11948   ac_header_preproc=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953   ac_header_preproc=no
11954 fi
11955
11956 rm -f conftest.err conftest.$ac_ext
11957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11958 echo "${ECHO_T}$ac_header_preproc" >&6; }
11959
11960 # So?  What about this header?
11961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11962   yes:no: )
11963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11967     ac_header_preproc=yes
11968     ;;
11969   no:yes:* )
11970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11982     ( cat <<\_ASBOX
11983 ## ----------------------------------- ##
11984 ## Report this to llvmbugs@cs.uiuc.edu ##
11985 ## ----------------------------------- ##
11986 _ASBOX
11987      ) | sed "s/^/$as_me: WARNING:     /" >&2
11988     ;;
11989 esac
11990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   eval "$as_ac_Header=\$ac_header_preproc"
11996 fi
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998                { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000
12001 fi
12002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12003   cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12005 _ACEOF
12006  break
12007 fi
12008
12009 done
12010
12011
12012
12013
12014 for ac_func in strchr index
12015 do
12016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h.  */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h.  */
12028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12030 #define $ac_func innocuous_$ac_func
12031
12032 /* System header to define __stub macros and hopefully few prototypes,
12033     which can conflict with char $ac_func (); below.
12034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035     <limits.h> exists even on freestanding compilers.  */
12036
12037 #ifdef __STDC__
12038 # include <limits.h>
12039 #else
12040 # include <assert.h>
12041 #endif
12042
12043 #undef $ac_func
12044
12045 /* Override any GCC internal prototype to avoid an error.
12046    Use char because int might match the return type of a GCC
12047    builtin and then its argument prototype would still apply.  */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 char $ac_func ();
12052 /* The GNU C library defines this for functions which it implements
12053     to always fail with ENOSYS.  Some functions are actually named
12054     something starting with __ and the normal name is an alias.  */
12055 #if defined __stub_$ac_func || defined __stub___$ac_func
12056 choke me
12057 #endif
12058
12059 int
12060 main ()
12061 {
12062 return $ac_func ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_link") 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } &&
12081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082   { (case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_try") 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; } &&
12091          { ac_try='test -s conftest$ac_exeext'
12092   { (case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_try") 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   eval "$as_ac_var=yes"
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106         eval "$as_ac_var=no"
12107 fi
12108
12109 rm -f core conftest.err conftest.$ac_objext \
12110       conftest$ac_exeext conftest.$ac_ext
12111 fi
12112 ac_res=`eval echo '${'$as_ac_var'}'`
12113                { echo "$as_me:$LINENO: result: $ac_res" >&5
12114 echo "${ECHO_T}$ac_res" >&6; }
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116   cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 _ACEOF
12119  break
12120 fi
12121 done
12122
12123
12124
12125 for ac_func in strrchr rindex
12126 do
12127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133   cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12141 #define $ac_func innocuous_$ac_func
12142
12143 /* System header to define __stub macros and hopefully few prototypes,
12144     which can conflict with char $ac_func (); below.
12145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12146     <limits.h> exists even on freestanding compilers.  */
12147
12148 #ifdef __STDC__
12149 # include <limits.h>
12150 #else
12151 # include <assert.h>
12152 #endif
12153
12154 #undef $ac_func
12155
12156 /* Override any GCC internal prototype to avoid an error.
12157    Use char because int might match the return type of a GCC
12158    builtin and then its argument prototype would still apply.  */
12159 #ifdef __cplusplus
12160 extern "C"
12161 #endif
12162 char $ac_func ();
12163 /* The GNU C library defines this for functions which it implements
12164     to always fail with ENOSYS.  Some functions are actually named
12165     something starting with __ and the normal name is an alias.  */
12166 #if defined __stub_$ac_func || defined __stub___$ac_func
12167 choke me
12168 #endif
12169
12170 int
12171 main ()
12172 {
12173 return $ac_func ();
12174   ;
12175   return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182   *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185   (eval "$ac_link") 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193   { (case "(($ac_try" in
12194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195   *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198   (eval "$ac_try") 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; } &&
12202          { ac_try='test -s conftest$ac_exeext'
12203   { (case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_try") 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   eval "$as_ac_var=yes"
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217         eval "$as_ac_var=no"
12218 fi
12219
12220 rm -f core conftest.err conftest.$ac_objext \
12221       conftest$ac_exeext conftest.$ac_ext
12222 fi
12223 ac_res=`eval echo '${'$as_ac_var'}'`
12224                { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12226 if test `eval echo '${'$as_ac_var'}'` = yes; then
12227   cat >>confdefs.h <<_ACEOF
12228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12229 _ACEOF
12230  break
12231 fi
12232 done
12233
12234
12235
12236 for ac_func in memcpy bcopy
12237 do
12238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12252 #define $ac_func innocuous_$ac_func
12253
12254 /* System header to define __stub macros and hopefully few prototypes,
12255     which can conflict with char $ac_func (); below.
12256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257     <limits.h> exists even on freestanding compilers.  */
12258
12259 #ifdef __STDC__
12260 # include <limits.h>
12261 #else
12262 # include <assert.h>
12263 #endif
12264
12265 #undef $ac_func
12266
12267 /* Override any GCC internal prototype to avoid an error.
12268    Use char because int might match the return type of a GCC
12269    builtin and then its argument prototype would still apply.  */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 char $ac_func ();
12274 /* The GNU C library defines this for functions which it implements
12275     to always fail with ENOSYS.  Some functions are actually named
12276     something starting with __ and the normal name is an alias.  */
12277 #if defined __stub_$ac_func || defined __stub___$ac_func
12278 choke me
12279 #endif
12280
12281 int
12282 main ()
12283 {
12284 return $ac_func ();
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_link") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304   { (case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_try") 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; } &&
12313          { ac_try='test -s conftest$ac_exeext'
12314   { (case "(($ac_try" in
12315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316   *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319   (eval "$ac_try") 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; }; then
12323   eval "$as_ac_var=yes"
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328         eval "$as_ac_var=no"
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext \
12332       conftest$ac_exeext conftest.$ac_ext
12333 fi
12334 ac_res=`eval echo '${'$as_ac_var'}'`
12335                { echo "$as_me:$LINENO: result: $ac_res" >&5
12336 echo "${ECHO_T}$ac_res" >&6; }
12337 if test `eval echo '${'$as_ac_var'}'` = yes; then
12338   cat >>confdefs.h <<_ACEOF
12339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12340 _ACEOF
12341  break
12342 fi
12343 done
12344
12345
12346
12347 for ac_func in memmove strcmp
12348 do
12349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12353   echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355   cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h.  */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h.  */
12361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12363 #define $ac_func innocuous_$ac_func
12364
12365 /* System header to define __stub macros and hopefully few prototypes,
12366     which can conflict with char $ac_func (); below.
12367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12368     <limits.h> exists even on freestanding compilers.  */
12369
12370 #ifdef __STDC__
12371 # include <limits.h>
12372 #else
12373 # include <assert.h>
12374 #endif
12375
12376 #undef $ac_func
12377
12378 /* Override any GCC internal prototype to avoid an error.
12379    Use char because int might match the return type of a GCC
12380    builtin and then its argument prototype would still apply.  */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 char $ac_func ();
12385 /* The GNU C library defines this for functions which it implements
12386     to always fail with ENOSYS.  Some functions are actually named
12387     something starting with __ and the normal name is an alias.  */
12388 #if defined __stub_$ac_func || defined __stub___$ac_func
12389 choke me
12390 #endif
12391
12392 int
12393 main ()
12394 {
12395 return $ac_func ();
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (ac_try="$ac_link"
12402 case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_link") 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415   { (case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_try") 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest$ac_exeext'
12425   { (case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_try") 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; }; then
12434   eval "$as_ac_var=yes"
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439         eval "$as_ac_var=no"
12440 fi
12441
12442 rm -f core conftest.err conftest.$ac_objext \
12443       conftest$ac_exeext conftest.$ac_ext
12444 fi
12445 ac_res=`eval echo '${'$as_ac_var'}'`
12446                { echo "$as_me:$LINENO: result: $ac_res" >&5
12447 echo "${ECHO_T}$ac_res" >&6; }
12448 if test `eval echo '${'$as_ac_var'}'` = yes; then
12449   cat >>confdefs.h <<_ACEOF
12450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12451 _ACEOF
12452
12453 fi
12454 done
12455
12456
12457
12458
12459 for ac_func in closedir opendir readdir
12460 do
12461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12475 #define $ac_func innocuous_$ac_func
12476
12477 /* System header to define __stub macros and hopefully few prototypes,
12478     which can conflict with char $ac_func (); below.
12479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12480     <limits.h> exists even on freestanding compilers.  */
12481
12482 #ifdef __STDC__
12483 # include <limits.h>
12484 #else
12485 # include <assert.h>
12486 #endif
12487
12488 #undef $ac_func
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491    Use char because int might match the return type of a GCC
12492    builtin and then its argument prototype would still apply.  */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char $ac_func ();
12497 /* The GNU C library defines this for functions which it implements
12498     to always fail with ENOSYS.  Some functions are actually named
12499     something starting with __ and the normal name is an alias.  */
12500 #if defined __stub_$ac_func || defined __stub___$ac_func
12501 choke me
12502 #endif
12503
12504 int
12505 main ()
12506 {
12507 return $ac_func ();
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_link") 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527   { (case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_try") 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest$ac_exeext'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   eval "$as_ac_var=yes"
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551         eval "$as_ac_var=no"
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext \
12555       conftest$ac_exeext conftest.$ac_ext
12556 fi
12557 ac_res=`eval echo '${'$as_ac_var'}'`
12558                { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12560 if test `eval echo '${'$as_ac_var'}'` = yes; then
12561   cat >>confdefs.h <<_ACEOF
12562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12563 _ACEOF
12564
12565 fi
12566 done
12567
12568
12569 # Check whether --enable-shared was given.
12570 if test "${enable_shared+set}" = set; then
12571   enableval=$enable_shared; p=${PACKAGE-default}
12572     case $enableval in
12573     yes) enable_shared=yes ;;
12574     no) enable_shared=no ;;
12575     *)
12576       enable_shared=no
12577       # Look at the argument we got.  We use all the common list separators.
12578       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12579       for pkg in $enableval; do
12580         IFS="$lt_save_ifs"
12581         if test "X$pkg" = "X$p"; then
12582           enable_shared=yes
12583         fi
12584       done
12585       IFS="$lt_save_ifs"
12586       ;;
12587     esac
12588 else
12589   enable_shared=yes
12590 fi
12591
12592
12593 # Check whether --enable-static was given.
12594 if test "${enable_static+set}" = set; then
12595   enableval=$enable_static; p=${PACKAGE-default}
12596     case $enableval in
12597     yes) enable_static=yes ;;
12598     no) enable_static=no ;;
12599     *)
12600      enable_static=no
12601       # Look at the argument we got.  We use all the common list separators.
12602       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12603       for pkg in $enableval; do
12604         IFS="$lt_save_ifs"
12605         if test "X$pkg" = "X$p"; then
12606           enable_static=yes
12607         fi
12608       done
12609       IFS="$lt_save_ifs"
12610       ;;
12611     esac
12612 else
12613   enable_static=yes
12614 fi
12615
12616
12617 # Check whether --enable-fast-install was given.
12618 if test "${enable_fast_install+set}" = set; then
12619   enableval=$enable_fast_install; p=${PACKAGE-default}
12620     case $enableval in
12621     yes) enable_fast_install=yes ;;
12622     no) enable_fast_install=no ;;
12623     *)
12624       enable_fast_install=no
12625       # Look at the argument we got.  We use all the common list separators.
12626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12627       for pkg in $enableval; do
12628         IFS="$lt_save_ifs"
12629         if test "X$pkg" = "X$p"; then
12630           enable_fast_install=yes
12631         fi
12632       done
12633       IFS="$lt_save_ifs"
12634       ;;
12635     esac
12636 else
12637   enable_fast_install=yes
12638 fi
12639
12640
12641 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12642 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12643 if test "${lt_cv_path_SED+set}" = set; then
12644   echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646   # Loop through the user's path and test for sed and gsed.
12647 # Then use that list of sed's as ones to test for truncation.
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12650 do
12651   IFS=$as_save_IFS
12652   test -z "$as_dir" && as_dir=.
12653   for lt_ac_prog in sed gsed; do
12654     for ac_exec_ext in '' $ac_executable_extensions; do
12655       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12656         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12657       fi
12658     done
12659   done
12660 done
12661 lt_ac_max=0
12662 lt_ac_count=0
12663 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12664 # along with /bin/sed that truncates output.
12665 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12666   test ! -f $lt_ac_sed && continue
12667   cat /dev/null > conftest.in
12668   lt_ac_count=0
12669   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12670   # Check for GNU sed and select it if it is found.
12671   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12672     lt_cv_path_SED=$lt_ac_sed
12673     break
12674   fi
12675   while true; do
12676     cat conftest.in conftest.in >conftest.tmp
12677     mv conftest.tmp conftest.in
12678     cp conftest.in conftest.nl
12679     echo >>conftest.nl
12680     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12681     cmp -s conftest.out conftest.nl || break
12682     # 10000 chars as input seems more than enough
12683     test $lt_ac_count -gt 10 && break
12684     lt_ac_count=`expr $lt_ac_count + 1`
12685     if test $lt_ac_count -gt $lt_ac_max; then
12686       lt_ac_max=$lt_ac_count
12687       lt_cv_path_SED=$lt_ac_sed
12688     fi
12689   done
12690 done
12691
12692 fi
12693
12694 SED=$lt_cv_path_SED
12695 { echo "$as_me:$LINENO: result: $SED" >&5
12696 echo "${ECHO_T}$SED" >&6; }
12697
12698
12699 # Check whether --with-gnu-ld was given.
12700 if test "${with_gnu_ld+set}" = set; then
12701   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12702 else
12703   with_gnu_ld=no
12704 fi
12705
12706 ac_prog=ld
12707 if test "$GCC" = yes; then
12708   # Check if gcc -print-prog-name=ld gives a path.
12709   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12710 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12711   case $host in
12712   *-*-mingw*)
12713     # gcc leaves a trailing carriage return which upsets mingw
12714     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12715   *)
12716     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12717   esac
12718   case $ac_prog in
12719     # Accept absolute paths.
12720     [\\/]* | ?:[\\/]*)
12721       re_direlt='/[^/][^/]*/\.\./'
12722       # Canonicalize the pathname of ld
12723       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12724       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12725         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12726       done
12727       test -z "$LD" && LD="$ac_prog"
12728       ;;
12729   "")
12730     # If it fails, then pretend we aren't using GCC.
12731     ac_prog=ld
12732     ;;
12733   *)
12734     # If it is relative, then search for the first ld in PATH.
12735     with_gnu_ld=unknown
12736     ;;
12737   esac
12738 elif test "$with_gnu_ld" = yes; then
12739   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12740 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12741 else
12742   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12743 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12744 fi
12745 if test "${lt_cv_path_LD+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   if test -z "$LD"; then
12749   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12750   for ac_dir in $PATH; do
12751     IFS="$lt_save_ifs"
12752     test -z "$ac_dir" && ac_dir=.
12753     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12754       lt_cv_path_LD="$ac_dir/$ac_prog"
12755       # Check to see if the program is GNU ld.  I'd rather use --version,
12756       # but apparently some variants of GNU ld only accept -v.
12757       # Break only if it was the GNU/non-GNU ld that we prefer.
12758       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12759       *GNU* | *'with BFD'*)
12760         test "$with_gnu_ld" != no && break
12761         ;;
12762       *)
12763         test "$with_gnu_ld" != yes && break
12764         ;;
12765       esac
12766     fi
12767   done
12768   IFS="$lt_save_ifs"
12769 else
12770   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12771 fi
12772 fi
12773
12774 LD="$lt_cv_path_LD"
12775 if test -n "$LD"; then
12776   { echo "$as_me:$LINENO: result: $LD" >&5
12777 echo "${ECHO_T}$LD" >&6; }
12778 else
12779   { echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6; }
12781 fi
12782 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12783 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12784    { (exit 1); exit 1; }; }
12785 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12786 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12787 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12791 case `$LD -v 2>&1 </dev/null` in
12792 *GNU* | *'with BFD'*)
12793   lt_cv_prog_gnu_ld=yes
12794   ;;
12795 *)
12796   lt_cv_prog_gnu_ld=no
12797   ;;
12798 esac
12799 fi
12800 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12801 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12802 with_gnu_ld=$lt_cv_prog_gnu_ld
12803
12804
12805 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12806 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12807 if test "${lt_cv_ld_reload_flag+set}" = set; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810   lt_cv_ld_reload_flag='-r'
12811 fi
12812 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12813 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12814 reload_flag=$lt_cv_ld_reload_flag
12815 case $reload_flag in
12816 "" | " "*) ;;
12817 *) reload_flag=" $reload_flag" ;;
12818 esac
12819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12820 case $host_os in
12821   darwin*)
12822     if test "$GCC" = yes; then
12823       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12824     else
12825       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12826     fi
12827     ;;
12828 esac
12829
12830 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12831 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12832 if test "${lt_cv_deplibs_check_method+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   lt_cv_file_magic_cmd='$MAGIC_CMD'
12836 lt_cv_file_magic_test_file=
12837 lt_cv_deplibs_check_method='unknown'
12838 # Need to set the preceding variable on all platforms that support
12839 # interlibrary dependencies.
12840 # 'none' -- dependencies not supported.
12841 # `unknown' -- same as none, but documents that we really don't know.
12842 # 'pass_all' -- all dependencies passed with no checks.
12843 # 'test_compile' -- check by making test program.
12844 # 'file_magic [[regex]]' -- check by looking for files in library path
12845 # which responds to the $file_magic_cmd with a given extended regex.
12846 # If you have `file' or equivalent on your system and you're not sure
12847 # whether `pass_all' will *always* work, you probably want this one.
12848
12849 case $host_os in
12850 aix4* | aix5*)
12851   lt_cv_deplibs_check_method=pass_all
12852   ;;
12853
12854 beos*)
12855   lt_cv_deplibs_check_method=pass_all
12856   ;;
12857
12858 bsdi[45]*)
12859   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12860   lt_cv_file_magic_cmd='/usr/bin/file -L'
12861   lt_cv_file_magic_test_file=/shlib/libc.so
12862   ;;
12863
12864 cygwin*)
12865   # func_win32_libid is a shell function defined in ltmain.sh
12866   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12867   lt_cv_file_magic_cmd='func_win32_libid'
12868   ;;
12869
12870 mingw* | pw32*)
12871   # Base MSYS/MinGW do not provide the 'file' command needed by
12872   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12873   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12874   lt_cv_file_magic_cmd='$OBJDUMP -f'
12875   ;;
12876
12877 darwin* | rhapsody*)
12878   lt_cv_deplibs_check_method=pass_all
12879   ;;
12880
12881 freebsd* | kfreebsd*-gnu | dragonfly*)
12882   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12883     case $host_cpu in
12884     i*86 )
12885       # Not sure whether the presence of OpenBSD here was a mistake.
12886       # Let's accept both of them until this is cleared up.
12887       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12888       lt_cv_file_magic_cmd=/usr/bin/file
12889       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12890       ;;
12891     esac
12892   else
12893     lt_cv_deplibs_check_method=pass_all
12894   fi
12895   ;;
12896
12897 gnu*)
12898   lt_cv_deplibs_check_method=pass_all
12899   ;;
12900
12901 hpux10.20* | hpux11*)
12902   lt_cv_file_magic_cmd=/usr/bin/file
12903   case $host_cpu in
12904   ia64*)
12905     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12906     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12907     ;;
12908   hppa*64*)
12909     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]'
12910     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12911     ;;
12912   *)
12913     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12914     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12915     ;;
12916   esac
12917   ;;
12918
12919 interix3*)
12920   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12921   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12922   ;;
12923
12924 irix5* | irix6* | nonstopux*)
12925   case $LD in
12926   *-32|*"-32 ") libmagic=32-bit;;
12927   *-n32|*"-n32 ") libmagic=N32;;
12928   *-64|*"-64 ") libmagic=64-bit;;
12929   *) libmagic=never-match;;
12930   esac
12931   lt_cv_deplibs_check_method=pass_all
12932   ;;
12933
12934 # This must be Linux ELF.
12935 linux*)
12936   lt_cv_deplibs_check_method=pass_all
12937   ;;
12938
12939 netbsd*)
12940   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12941     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12942   else
12943     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12944   fi
12945   ;;
12946
12947 newos6*)
12948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12949   lt_cv_file_magic_cmd=/usr/bin/file
12950   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12951   ;;
12952
12953 nto-qnx*)
12954   lt_cv_deplibs_check_method=unknown
12955   ;;
12956
12957 openbsd*)
12958   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12959     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12960   else
12961     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12962   fi
12963   ;;
12964
12965 osf3* | osf4* | osf5*)
12966   lt_cv_deplibs_check_method=pass_all
12967   ;;
12968
12969 solaris*)
12970   lt_cv_deplibs_check_method=pass_all
12971   ;;
12972
12973 sysv4 | sysv4.3*)
12974   case $host_vendor in
12975   motorola)
12976     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]'
12977     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12978     ;;
12979   ncr)
12980     lt_cv_deplibs_check_method=pass_all
12981     ;;
12982   sequent)
12983     lt_cv_file_magic_cmd='/bin/file'
12984     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12985     ;;
12986   sni)
12987     lt_cv_file_magic_cmd='/bin/file'
12988     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12989     lt_cv_file_magic_test_file=/lib/libc.so
12990     ;;
12991   siemens)
12992     lt_cv_deplibs_check_method=pass_all
12993     ;;
12994   pc)
12995     lt_cv_deplibs_check_method=pass_all
12996     ;;
12997   esac
12998   ;;
12999
13000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13001   lt_cv_deplibs_check_method=pass_all
13002   ;;
13003 esac
13004
13005 fi
13006 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13007 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13008 file_magic_cmd=$lt_cv_file_magic_cmd
13009 deplibs_check_method=$lt_cv_deplibs_check_method
13010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13011
13012
13013
13014 # If no C compiler was specified, use CC.
13015 LTCC=${LTCC-"$CC"}
13016
13017 # If no C compiler flags were specified, use CFLAGS.
13018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13019
13020 # Allow CC to be a program name with arguments.
13021 compiler=$CC
13022
13023 # Check whether --enable-libtool-lock was given.
13024 if test "${enable_libtool_lock+set}" = set; then
13025   enableval=$enable_libtool_lock;
13026 fi
13027
13028 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13029
13030 # Some flags need to be propagated to the compiler or linker for good
13031 # libtool support.
13032 case $host in
13033 ia64-*-hpux*)
13034   # Find out which ABI we are using.
13035   echo 'int i;' > conftest.$ac_ext
13036   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037   (eval $ac_compile) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; then
13041     case `/usr/bin/file conftest.$ac_objext` in
13042     *ELF-32*)
13043       HPUX_IA64_MODE="32"
13044       ;;
13045     *ELF-64*)
13046       HPUX_IA64_MODE="64"
13047       ;;
13048     esac
13049   fi
13050   rm -rf conftest*
13051   ;;
13052 *-*-irix6*)
13053   # Find out which ABI we are using.
13054   echo '#line 13049 "configure"' > conftest.$ac_ext
13055   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056   (eval $ac_compile) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; then
13060    if test "$lt_cv_prog_gnu_ld" = yes; then
13061     case `/usr/bin/file conftest.$ac_objext` in
13062     *32-bit*)
13063       LD="${LD-ld} -melf32bsmip"
13064       ;;
13065     *N32*)
13066       LD="${LD-ld} -melf32bmipn32"
13067       ;;
13068     *64-bit*)
13069       LD="${LD-ld} -melf64bmip"
13070       ;;
13071     esac
13072    else
13073     case `/usr/bin/file conftest.$ac_objext` in
13074     *32-bit*)
13075       LD="${LD-ld} -32"
13076       ;;
13077     *N32*)
13078       LD="${LD-ld} -n32"
13079       ;;
13080     *64-bit*)
13081       LD="${LD-ld} -64"
13082       ;;
13083     esac
13084    fi
13085   fi
13086   rm -rf conftest*
13087   ;;
13088
13089 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13090   # Find out which ABI we are using.
13091   echo 'int i;' > conftest.$ac_ext
13092   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093   (eval $ac_compile) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; then
13097     case `/usr/bin/file conftest.o` in
13098     *32-bit*)
13099       case $host in
13100         x86_64-*linux*)
13101           LD="${LD-ld} -m elf_i386"
13102           ;;
13103         ppc64-*linux*|powerpc64-*linux*)
13104           LD="${LD-ld} -m elf32ppclinux"
13105           ;;
13106         s390x-*linux*)
13107           LD="${LD-ld} -m elf_s390"
13108           ;;
13109         sparc64-*linux*)
13110           LD="${LD-ld} -m elf32_sparc"
13111           ;;
13112       esac
13113       ;;
13114     *64-bit*)
13115       case $host in
13116         x86_64-*linux*)
13117           LD="${LD-ld} -m elf_x86_64"
13118           ;;
13119         ppc*-*linux*|powerpc*-*linux*)
13120           LD="${LD-ld} -m elf64ppc"
13121           ;;
13122         s390*-*linux*)
13123           LD="${LD-ld} -m elf64_s390"
13124           ;;
13125         sparc*-*linux*)
13126           LD="${LD-ld} -m elf64_sparc"
13127           ;;
13128       esac
13129       ;;
13130     esac
13131   fi
13132   rm -rf conftest*
13133   ;;
13134
13135 *-*-sco3.2v5*)
13136   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13137   SAVE_CFLAGS="$CFLAGS"
13138   CFLAGS="$CFLAGS -belf"
13139   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13140 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13141 if test "${lt_cv_cc_needs_belf+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   ac_ext=c
13145 ac_cpp='$CPP $CPPFLAGS'
13146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13149
13150      cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156
13157 int
13158 main ()
13159 {
13160
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_link") 2>conftest.er1
13173   ac_status=$?
13174   grep -v '^ *+' conftest.er1 >conftest.err
13175   rm -f conftest.er1
13176   cat conftest.err >&5
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } &&
13179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_try") 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; } &&
13189          { ac_try='test -s conftest$ac_exeext'
13190   { (case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_try") 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   lt_cv_cc_needs_belf=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         lt_cv_cc_needs_belf=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext \
13208       conftest$ac_exeext conftest.$ac_ext
13209      ac_ext=c
13210 ac_cpp='$CPP $CPPFLAGS'
13211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214
13215 fi
13216 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13217 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13218   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13219     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13220     CFLAGS="$SAVE_CFLAGS"
13221   fi
13222   ;;
13223 sparc*-*solaris*)
13224   # Find out which ABI we are using.
13225   echo 'int i;' > conftest.$ac_ext
13226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227   (eval $ac_compile) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; then
13231     case `/usr/bin/file conftest.o` in
13232     *64-bit*)
13233       case $lt_cv_prog_gnu_ld in
13234       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13235       *)    LD="${LD-ld} -64" ;;
13236       esac
13237       ;;
13238     esac
13239   fi
13240   rm -rf conftest*
13241   ;;
13242
13243
13244 esac
13245
13246 need_locks="$enable_libtool_lock"
13247
13248
13249
13250
13251 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13252     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13253     (test "X$CXX" != "Xg++"))) ; then
13254   ac_ext=cpp
13255 ac_cpp='$CXXCPP $CPPFLAGS'
13256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13259 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13260 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13261 if test -z "$CXXCPP"; then
13262   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13263   echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265       # Double quotes because CXXCPP needs to be expanded
13266     for CXXCPP in "$CXX -E" "/lib/cpp"
13267     do
13268       ac_preproc_ok=false
13269 for ac_cxx_preproc_warn_flag in '' yes
13270 do
13271   # Use a header file that comes with gcc, so configuring glibc
13272   # with a fresh cross-compiler works.
13273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13274   # <limits.h> exists even on freestanding compilers.
13275   # On the NeXT, cc -E runs the code through the compiler's parser,
13276   # not just through cpp. "Syntax error" is here to catch this case.
13277   cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283 #ifdef __STDC__
13284 # include <limits.h>
13285 #else
13286 # include <assert.h>
13287 #endif
13288                      Syntax error
13289 _ACEOF
13290 if { (ac_try="$ac_cpp conftest.$ac_ext"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } >/dev/null; then
13303   if test -s conftest.err; then
13304     ac_cpp_err=$ac_cxx_preproc_warn_flag
13305     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13306   else
13307     ac_cpp_err=
13308   fi
13309 else
13310   ac_cpp_err=yes
13311 fi
13312 if test -z "$ac_cpp_err"; then
13313   :
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318   # Broken: fails on valid input.
13319 continue
13320 fi
13321
13322 rm -f conftest.err conftest.$ac_ext
13323
13324   # OK, works on sane cases.  Now check whether nonexistent headers
13325   # can be detected and how.
13326   cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332 #include <ac_nonexistent.h>
13333 _ACEOF
13334 if { (ac_try="$ac_cpp conftest.$ac_ext"
13335 case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13341   ac_status=$?
13342   grep -v '^ *+' conftest.er1 >conftest.err
13343   rm -f conftest.er1
13344   cat conftest.err >&5
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } >/dev/null; then
13347   if test -s conftest.err; then
13348     ac_cpp_err=$ac_cxx_preproc_warn_flag
13349     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13350   else
13351     ac_cpp_err=
13352   fi
13353 else
13354   ac_cpp_err=yes
13355 fi
13356 if test -z "$ac_cpp_err"; then
13357   # Broken: success on invalid input.
13358 continue
13359 else
13360   echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13362
13363   # Passes both tests.
13364 ac_preproc_ok=:
13365 break
13366 fi
13367
13368 rm -f conftest.err conftest.$ac_ext
13369
13370 done
13371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13372 rm -f conftest.err conftest.$ac_ext
13373 if $ac_preproc_ok; then
13374   break
13375 fi
13376
13377     done
13378     ac_cv_prog_CXXCPP=$CXXCPP
13379
13380 fi
13381   CXXCPP=$ac_cv_prog_CXXCPP
13382 else
13383   ac_cv_prog_CXXCPP=$CXXCPP
13384 fi
13385 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13386 echo "${ECHO_T}$CXXCPP" >&6; }
13387 ac_preproc_ok=false
13388 for ac_cxx_preproc_warn_flag in '' yes
13389 do
13390   # Use a header file that comes with gcc, so configuring glibc
13391   # with a fresh cross-compiler works.
13392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13393   # <limits.h> exists even on freestanding compilers.
13394   # On the NeXT, cc -E runs the code through the compiler's parser,
13395   # not just through cpp. "Syntax error" is here to catch this case.
13396   cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402 #ifdef __STDC__
13403 # include <limits.h>
13404 #else
13405 # include <assert.h>
13406 #endif
13407                      Syntax error
13408 _ACEOF
13409 if { (ac_try="$ac_cpp conftest.$ac_ext"
13410 case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } >/dev/null; then
13422   if test -s conftest.err; then
13423     ac_cpp_err=$ac_cxx_preproc_warn_flag
13424     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13425   else
13426     ac_cpp_err=
13427   fi
13428 else
13429   ac_cpp_err=yes
13430 fi
13431 if test -z "$ac_cpp_err"; then
13432   :
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437   # Broken: fails on valid input.
13438 continue
13439 fi
13440
13441 rm -f conftest.err conftest.$ac_ext
13442
13443   # OK, works on sane cases.  Now check whether nonexistent headers
13444   # can be detected and how.
13445   cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451 #include <ac_nonexistent.h>
13452 _ACEOF
13453 if { (ac_try="$ac_cpp conftest.$ac_ext"
13454 case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } >/dev/null; then
13466   if test -s conftest.err; then
13467     ac_cpp_err=$ac_cxx_preproc_warn_flag
13468     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13469   else
13470     ac_cpp_err=
13471   fi
13472 else
13473   ac_cpp_err=yes
13474 fi
13475 if test -z "$ac_cpp_err"; then
13476   # Broken: success on invalid input.
13477 continue
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482   # Passes both tests.
13483 ac_preproc_ok=:
13484 break
13485 fi
13486
13487 rm -f conftest.err conftest.$ac_ext
13488
13489 done
13490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13491 rm -f conftest.err conftest.$ac_ext
13492 if $ac_preproc_ok; then
13493   :
13494 else
13495   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13496 See \`config.log' for more details." >&5
13497 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13498 See \`config.log' for more details." >&2;}
13499    { (exit 1); exit 1; }; }
13500 fi
13501
13502 ac_ext=cpp
13503 ac_cpp='$CXXCPP $CPPFLAGS'
13504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13507
13508 fi
13509
13510
13511 ac_ext=f
13512 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13513 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13515 if test -n "$ac_tool_prefix"; then
13516   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
13517   do
13518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13522 if test "${ac_cv_prog_F77+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   if test -n "$F77"; then
13526   ac_cv_prog_F77="$F77" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531   IFS=$as_save_IFS
13532   test -z "$as_dir" && as_dir=.
13533   for ac_exec_ext in '' $ac_executable_extensions; do
13534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13535     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537     break 2
13538   fi
13539 done
13540 done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 F77=$ac_cv_prog_F77
13546 if test -n "$F77"; then
13547   { echo "$as_me:$LINENO: result: $F77" >&5
13548 echo "${ECHO_T}$F77" >&6; }
13549 else
13550   { echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6; }
13552 fi
13553
13554
13555     test -n "$F77" && break
13556   done
13557 fi
13558 if test -z "$F77"; then
13559   ac_ct_F77=$F77
13560   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
13561 do
13562   # Extract the first word of "$ac_prog", so it can be a program name with args.
13563 set dummy $ac_prog; ac_word=$2
13564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13566 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13567   echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569   if test -n "$ac_ct_F77"; then
13570   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13571 else
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13574 do
13575   IFS=$as_save_IFS
13576   test -z "$as_dir" && as_dir=.
13577   for ac_exec_ext in '' $ac_executable_extensions; do
13578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13579     ac_cv_prog_ac_ct_F77="$ac_prog"
13580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13581     break 2
13582   fi
13583 done
13584 done
13585 IFS=$as_save_IFS
13586
13587 fi
13588 fi
13589 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13590 if test -n "$ac_ct_F77"; then
13591   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13592 echo "${ECHO_T}$ac_ct_F77" >&6; }
13593 else
13594   { echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6; }
13596 fi
13597
13598
13599   test -n "$ac_ct_F77" && break
13600 done
13601
13602   if test "x$ac_ct_F77" = x; then
13603     F77=""
13604   else
13605     case $cross_compiling:$ac_tool_warned in
13606 yes:)
13607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13608 whose name does not start with the host triplet.  If you think this
13609 configuration is useful to you, please write to autoconf@gnu.org." >&5
13610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13611 whose name does not start with the host triplet.  If you think this
13612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13613 ac_tool_warned=yes ;;
13614 esac
13615     F77=$ac_ct_F77
13616   fi
13617 fi
13618
13619
13620 # Provide some information about the compiler.
13621 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13622 ac_compiler=`set X $ac_compile; echo $2`
13623 { (ac_try="$ac_compiler --version >&5"
13624 case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_compiler --version >&5") 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }
13633 { (ac_try="$ac_compiler -v >&5"
13634 case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_compiler -v >&5") 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }
13643 { (ac_try="$ac_compiler -V >&5"
13644 case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_compiler -V >&5") 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }
13653 rm -f a.out
13654
13655 # If we don't use `.F' as extension, the preprocessor is not run on the
13656 # input file.  (Note that this only needs to work for GNU compilers.)
13657 ac_save_ext=$ac_ext
13658 ac_ext=F
13659 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13660 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13661 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13662   echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664   cat >conftest.$ac_ext <<_ACEOF
13665       program main
13666 #ifndef __GNUC__
13667        choke me
13668 #endif
13669
13670       end
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676   *) ac_try_echo=$ac_try;;
13677 esac
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679   (eval "$ac_compile") 2>conftest.er1
13680   ac_status=$?
13681   grep -v '^ *+' conftest.er1 >conftest.err
13682   rm -f conftest.er1
13683   cat conftest.err >&5
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); } &&
13686          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13687   { (case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_try") 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; } &&
13696          { ac_try='test -s conftest.$ac_objext'
13697   { (case "(($ac_try" in
13698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699   *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702   (eval "$ac_try") 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706   ac_compiler_gnu=yes
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711         ac_compiler_gnu=no
13712 fi
13713
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13716
13717 fi
13718 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13719 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13720 ac_ext=$ac_save_ext
13721 ac_test_FFLAGS=${FFLAGS+set}
13722 ac_save_FFLAGS=$FFLAGS
13723 FFLAGS=
13724 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13725 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13726 if test "${ac_cv_prog_f77_g+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729   FFLAGS=-g
13730 cat >conftest.$ac_ext <<_ACEOF
13731       program main
13732
13733       end
13734 _ACEOF
13735 rm -f conftest.$ac_objext
13736 if { (ac_try="$ac_compile"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_compile") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest.$ac_objext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_prog_f77_g=yes
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774         ac_cv_prog_f77_g=no
13775 fi
13776
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778
13779 fi
13780 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13781 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13782 if test "$ac_test_FFLAGS" = set; then
13783   FFLAGS=$ac_save_FFLAGS
13784 elif test $ac_cv_prog_f77_g = yes; then
13785   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13786     FFLAGS="-g -O2"
13787   else
13788     FFLAGS="-g"
13789   fi
13790 else
13791   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13792     FFLAGS="-O2"
13793   else
13794     FFLAGS=
13795   fi
13796 fi
13797
13798 G77=`test $ac_compiler_gnu = yes && echo yes`
13799 ac_ext=c
13800 ac_cpp='$CPP $CPPFLAGS'
13801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13804
13805
13806
13807 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13808
13809 # find the maximum length of command line arguments
13810 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13811 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13812 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815     i=0
13816   teststring="ABCD"
13817
13818   case $build_os in
13819   msdosdjgpp*)
13820     # On DJGPP, this test can blow up pretty badly due to problems in libc
13821     # (any single argument exceeding 2000 bytes causes a buffer overrun
13822     # during glob expansion).  Even if it were fixed, the result of this
13823     # check would be larger than it should be.
13824     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13825     ;;
13826
13827   gnu*)
13828     # Under GNU Hurd, this test is not required because there is
13829     # no limit to the length of command line arguments.
13830     # Libtool will interpret -1 as no limit whatsoever
13831     lt_cv_sys_max_cmd_len=-1;
13832     ;;
13833
13834   cygwin* | mingw*)
13835     # On Win9x/ME, this test blows up -- it succeeds, but takes
13836     # about 5 minutes as the teststring grows exponentially.
13837     # Worse, since 9x/ME are not pre-emptively multitasking,
13838     # you end up with a "frozen" computer, even though with patience
13839     # the test eventually succeeds (with a max line length of 256k).
13840     # Instead, let's just punt: use the minimum linelength reported by
13841     # all of the supported platforms: 8192 (on NT/2K/XP).
13842     lt_cv_sys_max_cmd_len=8192;
13843     ;;
13844
13845   amigaos*)
13846     # On AmigaOS with pdksh, this test takes hours, literally.
13847     # So we just punt and use a minimum line length of 8192.
13848     lt_cv_sys_max_cmd_len=8192;
13849     ;;
13850
13851   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13852     # This has been around since 386BSD, at least.  Likely further.
13853     if test -x /sbin/sysctl; then
13854       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13855     elif test -x /usr/sbin/sysctl; then
13856       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13857     else
13858       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13859     fi
13860     # And add a safety zone
13861     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13862     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13863     ;;
13864
13865   interix*)
13866     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13867     lt_cv_sys_max_cmd_len=196608
13868     ;;
13869
13870   osf*)
13871     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13872     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13873     # nice to cause kernel panics so lets avoid the loop below.
13874     # First set a reasonable default.
13875     lt_cv_sys_max_cmd_len=16384
13876     #
13877     if test -x /sbin/sysconfig; then
13878       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13879         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13880       esac
13881     fi
13882     ;;
13883   sco3.2v5*)
13884     lt_cv_sys_max_cmd_len=102400
13885     ;;
13886   sysv5* | sco5v6* | sysv4.2uw2*)
13887     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13888     if test -n "$kargmax"; then
13889       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13890     else
13891       lt_cv_sys_max_cmd_len=32768
13892     fi
13893     ;;
13894   *)
13895     # If test is not a shell built-in, we'll probably end up computing a
13896     # maximum length that is only half of the actual maximum length, but
13897     # we can't tell.
13898     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13899     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13900                = "XX$teststring") >/dev/null 2>&1 &&
13901             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13902             lt_cv_sys_max_cmd_len=$new_result &&
13903             test $i != 17 # 1/2 MB should be enough
13904     do
13905       i=`expr $i + 1`
13906       teststring=$teststring$teststring
13907     done
13908     teststring=
13909     # Add a significant safety factor because C++ compilers can tack on massive
13910     # amounts of additional arguments before passing them to the linker.
13911     # It appears as though 1/2 is a usable value.
13912     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13913     ;;
13914   esac
13915
13916 fi
13917
13918 if test -n $lt_cv_sys_max_cmd_len ; then
13919   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13920 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13921 else
13922   { echo "$as_me:$LINENO: result: none" >&5
13923 echo "${ECHO_T}none" >&6; }
13924 fi
13925
13926
13927
13928
13929 # Check for command to grab the raw symbol name followed by C symbol from nm.
13930 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13931 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13932 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935
13936 # These are sane defaults that work on at least a few old systems.
13937 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13938
13939 # Character class describing NM global symbol codes.
13940 symcode='[BCDEGRST]'
13941
13942 # Regexp to match symbols that can be accessed directly from C.
13943 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13944
13945 # Transform an extracted symbol line into a proper C declaration
13946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13947
13948 # Transform an extracted symbol line into symbol name and symbol address
13949 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'"
13950
13951 # Define system-specific variables.
13952 case $host_os in
13953 aix*)
13954   symcode='[BCDT]'
13955   ;;
13956 cygwin* | mingw* | pw32*)
13957   symcode='[ABCDGISTW]'
13958   ;;
13959 hpux*) # Its linker distinguishes data from code symbols
13960   if test "$host_cpu" = ia64; then
13961     symcode='[ABCDEGRST]'
13962   fi
13963   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13964   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'"
13965   ;;
13966 linux*)
13967   if test "$host_cpu" = ia64; then
13968     symcode='[ABCDGIRSTW]'
13969     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13970     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'"
13971   fi
13972   ;;
13973 irix* | nonstopux*)
13974   symcode='[BCDEGRST]'
13975   ;;
13976 osf*)
13977   symcode='[BCDEGQRST]'
13978   ;;
13979 solaris*)
13980   symcode='[BDRT]'
13981   ;;
13982 sco3.2v5*)
13983   symcode='[DT]'
13984   ;;
13985 sysv4.2uw2*)
13986   symcode='[DT]'
13987   ;;
13988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13989   symcode='[ABDT]'
13990   ;;
13991 sysv4)
13992   symcode='[DFNSTU]'
13993   ;;
13994 esac
13995
13996 # Handle CRLF in mingw tool chain
13997 opt_cr=
13998 case $build_os in
13999 mingw*)
14000   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14001   ;;
14002 esac
14003
14004 # If we're using GNU nm, then use its standard symbol codes.
14005 case `$NM -V 2>&1` in
14006 *GNU* | *'with BFD'*)
14007   symcode='[ABCDGIRSTW]' ;;
14008 esac
14009
14010 # Try without a prefix undercore, then with it.
14011 for ac_symprfx in "" "_"; do
14012
14013   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14014   symxfrm="\\1 $ac_symprfx\\2 \\2"
14015
14016   # Write the raw and C identifiers.
14017   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14018
14019   # Check to see that the pipe works correctly.
14020   pipe_works=no
14021
14022   rm -f conftest*
14023   cat > conftest.$ac_ext <<EOF
14024 #ifdef __cplusplus
14025 extern "C" {
14026 #endif
14027 char nm_test_var;
14028 void nm_test_func(){}
14029 #ifdef __cplusplus
14030 }
14031 #endif
14032 int main(){nm_test_var='a';nm_test_func();return(0);}
14033 EOF
14034
14035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036   (eval $ac_compile) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; then
14040     # Now try to grab the symbols.
14041     nlist=conftest.nm
14042     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14043   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } && test -s "$nlist"; then
14047       # Try sorting and uniquifying the output.
14048       if sort "$nlist" | uniq > "$nlist"T; then
14049         mv -f "$nlist"T "$nlist"
14050       else
14051         rm -f "$nlist"T
14052       fi
14053
14054       # Make sure that we snagged all the symbols we need.
14055       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14056         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14057           cat <<EOF > conftest.$ac_ext
14058 #ifdef __cplusplus
14059 extern "C" {
14060 #endif
14061
14062 EOF
14063           # Now generate the symbol file.
14064           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14065
14066           cat <<EOF >> conftest.$ac_ext
14067 #if defined (__STDC__) && __STDC__
14068 # define lt_ptr_t void *
14069 #else
14070 # define lt_ptr_t char *
14071 # define const
14072 #endif
14073
14074 /* The mapping between symbol names and symbols. */
14075 const struct {
14076   const char *name;
14077   lt_ptr_t address;
14078 }
14079 lt_preloaded_symbols[] =
14080 {
14081 EOF
14082           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14083           cat <<\EOF >> conftest.$ac_ext
14084   {0, (lt_ptr_t) 0}
14085 };
14086
14087 #ifdef __cplusplus
14088 }
14089 #endif
14090 EOF
14091           # Now try linking the two files.
14092           mv conftest.$ac_objext conftstm.$ac_objext
14093           lt_save_LIBS="$LIBS"
14094           lt_save_CFLAGS="$CFLAGS"
14095           LIBS="conftstm.$ac_objext"
14096           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14097           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098   (eval $ac_link) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14102             pipe_works=yes
14103           fi
14104           LIBS="$lt_save_LIBS"
14105           CFLAGS="$lt_save_CFLAGS"
14106         else
14107           echo "cannot find nm_test_func in $nlist" >&5
14108         fi
14109       else
14110         echo "cannot find nm_test_var in $nlist" >&5
14111       fi
14112     else
14113       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14114     fi
14115   else
14116     echo "$progname: failed program was:" >&5
14117     cat conftest.$ac_ext >&5
14118   fi
14119   rm -f conftest* conftst*
14120
14121   # Do not use the global_symbol_pipe unless it works.
14122   if test "$pipe_works" = yes; then
14123     break
14124   else
14125     lt_cv_sys_global_symbol_pipe=
14126   fi
14127 done
14128
14129 fi
14130
14131 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14132   lt_cv_sys_global_symbol_to_cdecl=
14133 fi
14134 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14135   { echo "$as_me:$LINENO: result: failed" >&5
14136 echo "${ECHO_T}failed" >&6; }
14137 else
14138   { echo "$as_me:$LINENO: result: ok" >&5
14139 echo "${ECHO_T}ok" >&6; }
14140 fi
14141
14142 { echo "$as_me:$LINENO: checking for objdir" >&5
14143 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14144 if test "${lt_cv_objdir+set}" = set; then
14145   echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147   rm -f .libs 2>/dev/null
14148 mkdir .libs 2>/dev/null
14149 if test -d .libs; then
14150   lt_cv_objdir=.libs
14151 else
14152   # MS-DOS does not allow filenames that begin with a dot.
14153   lt_cv_objdir=_libs
14154 fi
14155 rmdir .libs 2>/dev/null
14156 fi
14157 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14158 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14159 objdir=$lt_cv_objdir
14160
14161
14162
14163
14164
14165 case $host_os in
14166 aix3*)
14167   # AIX sometimes has problems with the GCC collect2 program.  For some
14168   # reason, if we set the COLLECT_NAMES environment variable, the problems
14169   # vanish in a puff of smoke.
14170   if test "X${COLLECT_NAMES+set}" != Xset; then
14171     COLLECT_NAMES=
14172     export COLLECT_NAMES
14173   fi
14174   ;;
14175 esac
14176
14177 # Sed substitution that helps us do robust quoting.  It backslashifies
14178 # metacharacters that are still active within double-quoted strings.
14179 Xsed='sed -e 1s/^X//'
14180 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14181
14182 # Same as above, but do not quote variable references.
14183 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14184
14185 # Sed substitution to delay expansion of an escaped shell variable in a
14186 # double_quote_subst'ed string.
14187 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14188
14189 # Sed substitution to avoid accidental globbing in evaled expressions
14190 no_glob_subst='s/\*/\\\*/g'
14191
14192 # Constants:
14193 rm="rm -f"
14194
14195 # Global variables:
14196 default_ofile=mklib
14197 can_build_shared=yes
14198
14199 # All known linkers require a `.a' archive for static linking (except MSVC,
14200 # which needs '.lib').
14201 libext=a
14202 ltmain="$ac_aux_dir/ltmain.sh"
14203 ofile="$default_ofile"
14204 with_gnu_ld="$lt_cv_prog_gnu_ld"
14205
14206 if test -n "$ac_tool_prefix"; then
14207   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14208 set dummy ${ac_tool_prefix}ar; ac_word=$2
14209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14211 if test "${ac_cv_prog_AR+set}" = set; then
14212   echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214   if test -n "$AR"; then
14215   ac_cv_prog_AR="$AR" # Let the user override the test.
14216 else
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14219 do
14220   IFS=$as_save_IFS
14221   test -z "$as_dir" && as_dir=.
14222   for ac_exec_ext in '' $ac_executable_extensions; do
14223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14224     ac_cv_prog_AR="${ac_tool_prefix}ar"
14225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14226     break 2
14227   fi
14228 done
14229 done
14230 IFS=$as_save_IFS
14231
14232 fi
14233 fi
14234 AR=$ac_cv_prog_AR
14235 if test -n "$AR"; then
14236   { echo "$as_me:$LINENO: result: $AR" >&5
14237 echo "${ECHO_T}$AR" >&6; }
14238 else
14239   { echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6; }
14241 fi
14242
14243
14244 fi
14245 if test -z "$ac_cv_prog_AR"; then
14246   ac_ct_AR=$AR
14247   # Extract the first word of "ar", so it can be a program name with args.
14248 set dummy ar; ac_word=$2
14249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14251 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   if test -n "$ac_ct_AR"; then
14255   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14256 else
14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 for as_dir in $PATH
14259 do
14260   IFS=$as_save_IFS
14261   test -z "$as_dir" && as_dir=.
14262   for ac_exec_ext in '' $ac_executable_extensions; do
14263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14264     ac_cv_prog_ac_ct_AR="ar"
14265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266     break 2
14267   fi
14268 done
14269 done
14270 IFS=$as_save_IFS
14271
14272 fi
14273 fi
14274 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14275 if test -n "$ac_ct_AR"; then
14276   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14277 echo "${ECHO_T}$ac_ct_AR" >&6; }
14278 else
14279   { echo "$as_me:$LINENO: result: no" >&5
14280 echo "${ECHO_T}no" >&6; }
14281 fi
14282
14283   if test "x$ac_ct_AR" = x; then
14284     AR="false"
14285   else
14286     case $cross_compiling:$ac_tool_warned in
14287 yes:)
14288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14289 whose name does not start with the host triplet.  If you think this
14290 configuration is useful to you, please write to autoconf@gnu.org." >&5
14291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14292 whose name does not start with the host triplet.  If you think this
14293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14294 ac_tool_warned=yes ;;
14295 esac
14296     AR=$ac_ct_AR
14297   fi
14298 else
14299   AR="$ac_cv_prog_AR"
14300 fi
14301
14302 if test -n "$ac_tool_prefix"; then
14303   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14307 if test "${ac_cv_prog_RANLIB+set}" = set; then
14308   echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310   if test -n "$RANLIB"; then
14311   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14312 else
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316   IFS=$as_save_IFS
14317   test -z "$as_dir" && as_dir=.
14318   for ac_exec_ext in '' $ac_executable_extensions; do
14319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14320     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14322     break 2
14323   fi
14324 done
14325 done
14326 IFS=$as_save_IFS
14327
14328 fi
14329 fi
14330 RANLIB=$ac_cv_prog_RANLIB
14331 if test -n "$RANLIB"; then
14332   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14333 echo "${ECHO_T}$RANLIB" >&6; }
14334 else
14335   { echo "$as_me:$LINENO: result: no" >&5
14336 echo "${ECHO_T}no" >&6; }
14337 fi
14338
14339
14340 fi
14341 if test -z "$ac_cv_prog_RANLIB"; then
14342   ac_ct_RANLIB=$RANLIB
14343   # Extract the first word of "ranlib", so it can be a program name with args.
14344 set dummy ranlib; ac_word=$2
14345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14347 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   if test -n "$ac_ct_RANLIB"; then
14351   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14352 else
14353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354 for as_dir in $PATH
14355 do
14356   IFS=$as_save_IFS
14357   test -z "$as_dir" && as_dir=.
14358   for ac_exec_ext in '' $ac_executable_extensions; do
14359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14360     ac_cv_prog_ac_ct_RANLIB="ranlib"
14361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14362     break 2
14363   fi
14364 done
14365 done
14366 IFS=$as_save_IFS
14367
14368 fi
14369 fi
14370 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14371 if test -n "$ac_ct_RANLIB"; then
14372   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14373 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14374 else
14375   { echo "$as_me:$LINENO: result: no" >&5
14376 echo "${ECHO_T}no" >&6; }
14377 fi
14378
14379   if test "x$ac_ct_RANLIB" = x; then
14380     RANLIB=":"
14381   else
14382     case $cross_compiling:$ac_tool_warned in
14383 yes:)
14384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14385 whose name does not start with the host triplet.  If you think this
14386 configuration is useful to you, please write to autoconf@gnu.org." >&5
14387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14388 whose name does not start with the host triplet.  If you think this
14389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14390 ac_tool_warned=yes ;;
14391 esac
14392     RANLIB=$ac_ct_RANLIB
14393   fi
14394 else
14395   RANLIB="$ac_cv_prog_RANLIB"
14396 fi
14397
14398 if test -n "$ac_tool_prefix"; then
14399   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14400 set dummy ${ac_tool_prefix}strip; ac_word=$2
14401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14403 if test "${ac_cv_prog_STRIP+set}" = set; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   if test -n "$STRIP"; then
14407   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14408 else
14409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14411 do
14412   IFS=$as_save_IFS
14413   test -z "$as_dir" && as_dir=.
14414   for ac_exec_ext in '' $ac_executable_extensions; do
14415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14416     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14418     break 2
14419   fi
14420 done
14421 done
14422 IFS=$as_save_IFS
14423
14424 fi
14425 fi
14426 STRIP=$ac_cv_prog_STRIP
14427 if test -n "$STRIP"; then
14428   { echo "$as_me:$LINENO: result: $STRIP" >&5
14429 echo "${ECHO_T}$STRIP" >&6; }
14430 else
14431   { echo "$as_me:$LINENO: result: no" >&5
14432 echo "${ECHO_T}no" >&6; }
14433 fi
14434
14435
14436 fi
14437 if test -z "$ac_cv_prog_STRIP"; then
14438   ac_ct_STRIP=$STRIP
14439   # Extract the first word of "strip", so it can be a program name with args.
14440 set dummy strip; ac_word=$2
14441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14443 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   if test -n "$ac_ct_STRIP"; then
14447   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14448 else
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14451 do
14452   IFS=$as_save_IFS
14453   test -z "$as_dir" && as_dir=.
14454   for ac_exec_ext in '' $ac_executable_extensions; do
14455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14456     ac_cv_prog_ac_ct_STRIP="strip"
14457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14458     break 2
14459   fi
14460 done
14461 done
14462 IFS=$as_save_IFS
14463
14464 fi
14465 fi
14466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14467 if test -n "$ac_ct_STRIP"; then
14468   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14469 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14470 else
14471   { echo "$as_me:$LINENO: result: no" >&5
14472 echo "${ECHO_T}no" >&6; }
14473 fi
14474
14475   if test "x$ac_ct_STRIP" = x; then
14476     STRIP=":"
14477   else
14478     case $cross_compiling:$ac_tool_warned in
14479 yes:)
14480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14481 whose name does not start with the host triplet.  If you think this
14482 configuration is useful to you, please write to autoconf@gnu.org." >&5
14483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14484 whose name does not start with the host triplet.  If you think this
14485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14486 ac_tool_warned=yes ;;
14487 esac
14488     STRIP=$ac_ct_STRIP
14489   fi
14490 else
14491   STRIP="$ac_cv_prog_STRIP"
14492 fi
14493
14494
14495 old_CC="$CC"
14496 old_CFLAGS="$CFLAGS"
14497
14498 # Set sane defaults for various variables
14499 test -z "$AR" && AR=ar
14500 test -z "$AR_FLAGS" && AR_FLAGS=cru
14501 test -z "$AS" && AS=as
14502 test -z "$CC" && CC=cc
14503 test -z "$LTCC" && LTCC=$CC
14504 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14505 test -z "$DLLTOOL" && DLLTOOL=dlltool
14506 test -z "$LD" && LD=ld
14507 test -z "$LN_S" && LN_S="ln -s"
14508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14509 test -z "$NM" && NM=nm
14510 test -z "$SED" && SED=sed
14511 test -z "$OBJDUMP" && OBJDUMP=objdump
14512 test -z "$RANLIB" && RANLIB=:
14513 test -z "$STRIP" && STRIP=:
14514 test -z "$ac_objext" && ac_objext=o
14515
14516 # Determine commands to create old-style static archives.
14517 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14518 old_postinstall_cmds='chmod 644 $oldlib'
14519 old_postuninstall_cmds=
14520
14521 if test -n "$RANLIB"; then
14522   case $host_os in
14523   openbsd*)
14524     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14525     ;;
14526   *)
14527     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14528     ;;
14529   esac
14530   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14531 fi
14532
14533 for cc_temp in $compiler""; do
14534   case $cc_temp in
14535     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14536     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14537     \-*) ;;
14538     *) break;;
14539   esac
14540 done
14541 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14542
14543
14544 # Only perform the check for file, if the check method requires it
14545 case $deplibs_check_method in
14546 file_magic*)
14547   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14548     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14549 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14551   echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553   case $MAGIC_CMD in
14554 [\\/*] |  ?:[\\/]*)
14555   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14556   ;;
14557 *)
14558   lt_save_MAGIC_CMD="$MAGIC_CMD"
14559   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14560   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14561   for ac_dir in $ac_dummy; do
14562     IFS="$lt_save_ifs"
14563     test -z "$ac_dir" && ac_dir=.
14564     if test -f $ac_dir/${ac_tool_prefix}file; then
14565       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14566       if test -n "$file_magic_test_file"; then
14567         case $deplibs_check_method in
14568         "file_magic "*)
14569           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14570           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14571           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14572             $EGREP "$file_magic_regex" > /dev/null; then
14573             :
14574           else
14575             cat <<EOF 1>&2
14576
14577 *** Warning: the command libtool uses to detect shared libraries,
14578 *** $file_magic_cmd, produces output that libtool cannot recognize.
14579 *** The result is that libtool may fail to recognize shared libraries
14580 *** as such.  This will affect the creation of libtool libraries that
14581 *** depend on shared libraries, but programs linked with such libtool
14582 *** libraries will work regardless of this problem.  Nevertheless, you
14583 *** may want to report the problem to your system manager and/or to
14584 *** bug-libtool@gnu.org
14585
14586 EOF
14587           fi ;;
14588         esac
14589       fi
14590       break
14591     fi
14592   done
14593   IFS="$lt_save_ifs"
14594   MAGIC_CMD="$lt_save_MAGIC_CMD"
14595   ;;
14596 esac
14597 fi
14598
14599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14600 if test -n "$MAGIC_CMD"; then
14601   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14602 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14603 else
14604   { echo "$as_me:$LINENO: result: no" >&5
14605 echo "${ECHO_T}no" >&6; }
14606 fi
14607
14608 if test -z "$lt_cv_path_MAGIC_CMD"; then
14609   if test -n "$ac_tool_prefix"; then
14610     { echo "$as_me:$LINENO: checking for file" >&5
14611 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   case $MAGIC_CMD in
14616 [\\/*] |  ?:[\\/]*)
14617   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14618   ;;
14619 *)
14620   lt_save_MAGIC_CMD="$MAGIC_CMD"
14621   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14622   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14623   for ac_dir in $ac_dummy; do
14624     IFS="$lt_save_ifs"
14625     test -z "$ac_dir" && ac_dir=.
14626     if test -f $ac_dir/file; then
14627       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14628       if test -n "$file_magic_test_file"; then
14629         case $deplibs_check_method in
14630         "file_magic "*)
14631           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14632           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14633           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14634             $EGREP "$file_magic_regex" > /dev/null; then
14635             :
14636           else
14637             cat <<EOF 1>&2
14638
14639 *** Warning: the command libtool uses to detect shared libraries,
14640 *** $file_magic_cmd, produces output that libtool cannot recognize.
14641 *** The result is that libtool may fail to recognize shared libraries
14642 *** as such.  This will affect the creation of libtool libraries that
14643 *** depend on shared libraries, but programs linked with such libtool
14644 *** libraries will work regardless of this problem.  Nevertheless, you
14645 *** may want to report the problem to your system manager and/or to
14646 *** bug-libtool@gnu.org
14647
14648 EOF
14649           fi ;;
14650         esac
14651       fi
14652       break
14653     fi
14654   done
14655   IFS="$lt_save_ifs"
14656   MAGIC_CMD="$lt_save_MAGIC_CMD"
14657   ;;
14658 esac
14659 fi
14660
14661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14662 if test -n "$MAGIC_CMD"; then
14663   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14664 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14665 else
14666   { echo "$as_me:$LINENO: result: no" >&5
14667 echo "${ECHO_T}no" >&6; }
14668 fi
14669
14670   else
14671     MAGIC_CMD=:
14672   fi
14673 fi
14674
14675   fi
14676   ;;
14677 esac
14678
14679 enable_dlopen=yes
14680 enable_win32_dll=no
14681
14682 # Check whether --enable-libtool-lock was given.
14683 if test "${enable_libtool_lock+set}" = set; then
14684   enableval=$enable_libtool_lock;
14685 fi
14686
14687 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14688
14689
14690 # Check whether --with-pic was given.
14691 if test "${with_pic+set}" = set; then
14692   withval=$with_pic; pic_mode="$withval"
14693 else
14694   pic_mode=default
14695 fi
14696
14697 test -z "$pic_mode" && pic_mode=default
14698
14699 # Use C for the default configuration in the libtool script
14700 tagname=
14701 lt_save_CC="$CC"
14702 ac_ext=c
14703 ac_cpp='$CPP $CPPFLAGS'
14704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14707
14708
14709 # Source file extension for C test sources.
14710 ac_ext=c
14711
14712 # Object file extension for compiled C test sources.
14713 objext=o
14714 objext=$objext
14715
14716 # Code to be used in simple compile tests
14717 lt_simple_compile_test_code="int some_variable = 0;\n"
14718
14719 # Code to be used in simple link tests
14720 lt_simple_link_test_code='int main(){return(0);}\n'
14721
14722
14723 # If no C compiler was specified, use CC.
14724 LTCC=${LTCC-"$CC"}
14725
14726 # If no C compiler flags were specified, use CFLAGS.
14727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
14729 # Allow CC to be a program name with arguments.
14730 compiler=$CC
14731
14732
14733 # save warnings/boilerplate of simple test code
14734 ac_outfile=conftest.$ac_objext
14735 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14736 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14737 _lt_compiler_boilerplate=`cat conftest.err`
14738 $rm conftest*
14739
14740 ac_outfile=conftest.$ac_objext
14741 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14742 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14743 _lt_linker_boilerplate=`cat conftest.err`
14744 $rm conftest*
14745
14746
14747
14748 lt_prog_compiler_no_builtin_flag=
14749
14750 if test "$GCC" = yes; then
14751   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14752
14753
14754 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14755 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14756 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   lt_cv_prog_compiler_rtti_exceptions=no
14760   ac_outfile=conftest.$ac_objext
14761    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14762    lt_compiler_flag="-fno-rtti -fno-exceptions"
14763    # Insert the option either (1) after the last *FLAGS variable, or
14764    # (2) before a word containing "conftest.", or (3) at the end.
14765    # Note that $ac_compile itself does not contain backslashes and begins
14766    # with a dollar sign (not a hyphen), so the echo should work correctly.
14767    # The option is referenced via a variable to avoid confusing sed.
14768    lt_compile=`echo "$ac_compile" | $SED \
14769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771    -e 's:$: $lt_compiler_flag:'`
14772    (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
14773    (eval "$lt_compile" 2>conftest.err)
14774    ac_status=$?
14775    cat conftest.err >&5
14776    echo "$as_me:14771: \$? = $ac_status" >&5
14777    if (exit $ac_status) && test -s "$ac_outfile"; then
14778      # The compiler can only warn and ignore the option if not recognized
14779      # So say no if there are warnings other than the usual output.
14780      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14783        lt_cv_prog_compiler_rtti_exceptions=yes
14784      fi
14785    fi
14786    $rm conftest*
14787
14788 fi
14789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14790 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14791
14792 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14793     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14794 else
14795     :
14796 fi
14797
14798 fi
14799
14800 lt_prog_compiler_wl=
14801 lt_prog_compiler_pic=
14802 lt_prog_compiler_static=
14803
14804 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14805 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14806
14807   if test "$GCC" = yes; then
14808     lt_prog_compiler_wl='-Wl,'
14809     lt_prog_compiler_static='-static'
14810
14811     case $host_os in
14812       aix*)
14813       # All AIX code is PIC.
14814       if test "$host_cpu" = ia64; then
14815         # AIX 5 now supports IA64 processor
14816         lt_prog_compiler_static='-Bstatic'
14817       fi
14818       ;;
14819
14820     amigaos*)
14821       # FIXME: we need at least 68020 code to build shared libraries, but
14822       # adding the `-m68020' flag to GCC prevents building anything better,
14823       # like `-m68040'.
14824       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14825       ;;
14826
14827     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14828       # PIC is the default for these OSes.
14829       ;;
14830
14831     mingw* | pw32* | os2*)
14832       # This hack is so that the source file can tell whether it is being
14833       # built for inclusion in a dll (and should export symbols for example).
14834       lt_prog_compiler_pic='-DDLL_EXPORT'
14835       ;;
14836
14837     darwin* | rhapsody*)
14838       # PIC is the default on this platform
14839       # Common symbols not allowed in MH_DYLIB files
14840       lt_prog_compiler_pic='-fno-common'
14841       ;;
14842
14843     interix3*)
14844       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14845       # Instead, we relocate shared libraries at runtime.
14846       ;;
14847
14848     msdosdjgpp*)
14849       # Just because we use GCC doesn't mean we suddenly get shared libraries
14850       # on systems that don't support them.
14851       lt_prog_compiler_can_build_shared=no
14852       enable_shared=no
14853       ;;
14854
14855     sysv4*MP*)
14856       if test -d /usr/nec; then
14857         lt_prog_compiler_pic=-Kconform_pic
14858       fi
14859       ;;
14860
14861     hpux*)
14862       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14863       # not for PA HP-UX.
14864       case $host_cpu in
14865       hppa*64*|ia64*)
14866         # +Z the default
14867         ;;
14868       *)
14869         lt_prog_compiler_pic='-fPIC'
14870         ;;
14871       esac
14872       ;;
14873
14874     *)
14875       lt_prog_compiler_pic='-fPIC'
14876       ;;
14877     esac
14878   else
14879     # PORTME Check for flag to pass linker flags through the system compiler.
14880     case $host_os in
14881     aix*)
14882       lt_prog_compiler_wl='-Wl,'
14883       if test "$host_cpu" = ia64; then
14884         # AIX 5 now supports IA64 processor
14885         lt_prog_compiler_static='-Bstatic'
14886       else
14887         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14888       fi
14889       ;;
14890       darwin*)
14891         # PIC is the default on this platform
14892         # Common symbols not allowed in MH_DYLIB files
14893        case $cc_basename in
14894          xlc*)
14895          lt_prog_compiler_pic='-qnocommon'
14896          lt_prog_compiler_wl='-Wl,'
14897          ;;
14898        esac
14899        ;;
14900
14901     mingw* | pw32* | os2*)
14902       # This hack is so that the source file can tell whether it is being
14903       # built for inclusion in a dll (and should export symbols for example).
14904       lt_prog_compiler_pic='-DDLL_EXPORT'
14905       ;;
14906
14907     hpux9* | hpux10* | hpux11*)
14908       lt_prog_compiler_wl='-Wl,'
14909       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14910       # not for PA HP-UX.
14911       case $host_cpu in
14912       hppa*64*|ia64*)
14913         # +Z the default
14914         ;;
14915       *)
14916         lt_prog_compiler_pic='+Z'
14917         ;;
14918       esac
14919       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14920       lt_prog_compiler_static='${wl}-a ${wl}archive'
14921       ;;
14922
14923     irix5* | irix6* | nonstopux*)
14924       lt_prog_compiler_wl='-Wl,'
14925       # PIC (with -KPIC) is the default.
14926       lt_prog_compiler_static='-non_shared'
14927       ;;
14928
14929     newsos6)
14930       lt_prog_compiler_pic='-KPIC'
14931       lt_prog_compiler_static='-Bstatic'
14932       ;;
14933
14934     linux*)
14935       case $cc_basename in
14936       icc* | ecc*)
14937         lt_prog_compiler_wl='-Wl,'
14938         lt_prog_compiler_pic='-KPIC'
14939         lt_prog_compiler_static='-static'
14940         ;;
14941       pgcc* | pgf77* | pgf90* | pgf95*)
14942         # Portland Group compilers (*not* the Pentium gcc compiler,
14943         # which looks to be a dead project)
14944         lt_prog_compiler_wl='-Wl,'
14945         lt_prog_compiler_pic='-fpic'
14946         lt_prog_compiler_static='-Bstatic'
14947         ;;
14948       ccc*)
14949         lt_prog_compiler_wl='-Wl,'
14950         # All Alpha code is PIC.
14951         lt_prog_compiler_static='-non_shared'
14952         ;;
14953       esac
14954       ;;
14955
14956     osf3* | osf4* | osf5*)
14957       lt_prog_compiler_wl='-Wl,'
14958       # All OSF/1 code is PIC.
14959       lt_prog_compiler_static='-non_shared'
14960       ;;
14961
14962     solaris*)
14963       lt_prog_compiler_pic='-KPIC'
14964       lt_prog_compiler_static='-Bstatic'
14965       case $cc_basename in
14966       f77* | f90* | f95*)
14967         lt_prog_compiler_wl='-Qoption ld ';;
14968       *)
14969         lt_prog_compiler_wl='-Wl,';;
14970       esac
14971       ;;
14972
14973     sunos4*)
14974       lt_prog_compiler_wl='-Qoption ld '
14975       lt_prog_compiler_pic='-PIC'
14976       lt_prog_compiler_static='-Bstatic'
14977       ;;
14978
14979     sysv4 | sysv4.2uw2* | sysv4.3*)
14980       lt_prog_compiler_wl='-Wl,'
14981       lt_prog_compiler_pic='-KPIC'
14982       lt_prog_compiler_static='-Bstatic'
14983       ;;
14984
14985     sysv4*MP*)
14986       if test -d /usr/nec ;then
14987         lt_prog_compiler_pic='-Kconform_pic'
14988         lt_prog_compiler_static='-Bstatic'
14989       fi
14990       ;;
14991
14992     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14993       lt_prog_compiler_wl='-Wl,'
14994       lt_prog_compiler_pic='-KPIC'
14995       lt_prog_compiler_static='-Bstatic'
14996       ;;
14997
14998     unicos*)
14999       lt_prog_compiler_wl='-Wl,'
15000       lt_prog_compiler_can_build_shared=no
15001       ;;
15002
15003     uts4*)
15004       lt_prog_compiler_pic='-pic'
15005       lt_prog_compiler_static='-Bstatic'
15006       ;;
15007
15008     *)
15009       lt_prog_compiler_can_build_shared=no
15010       ;;
15011     esac
15012   fi
15013
15014 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15015 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15016
15017 #
15018 # Check to make sure the PIC flag actually works.
15019 #
15020 if test -n "$lt_prog_compiler_pic"; then
15021
15022 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15023 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15024 if test "${lt_prog_compiler_pic_works+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   lt_prog_compiler_pic_works=no
15028   ac_outfile=conftest.$ac_objext
15029    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15031    # Insert the option either (1) after the last *FLAGS variable, or
15032    # (2) before a word containing "conftest.", or (3) at the end.
15033    # Note that $ac_compile itself does not contain backslashes and begins
15034    # with a dollar sign (not a hyphen), so the echo should work correctly.
15035    # The option is referenced via a variable to avoid confusing sed.
15036    lt_compile=`echo "$ac_compile" | $SED \
15037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039    -e 's:$: $lt_compiler_flag:'`
15040    (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
15041    (eval "$lt_compile" 2>conftest.err)
15042    ac_status=$?
15043    cat conftest.err >&5
15044    echo "$as_me:15039: \$? = $ac_status" >&5
15045    if (exit $ac_status) && test -s "$ac_outfile"; then
15046      # The compiler can only warn and ignore the option if not recognized
15047      # So say no if there are warnings other than the usual output.
15048      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15049      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15050      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15051        lt_prog_compiler_pic_works=yes
15052      fi
15053    fi
15054    $rm conftest*
15055
15056 fi
15057 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15058 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15059
15060 if test x"$lt_prog_compiler_pic_works" = xyes; then
15061     case $lt_prog_compiler_pic in
15062      "" | " "*) ;;
15063      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15064      esac
15065 else
15066     lt_prog_compiler_pic=
15067      lt_prog_compiler_can_build_shared=no
15068 fi
15069
15070 fi
15071 case $host_os in
15072   # For platforms which do not support PIC, -DPIC is meaningless:
15073   *djgpp*)
15074     lt_prog_compiler_pic=
15075     ;;
15076   *)
15077     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15078     ;;
15079 esac
15080
15081 #
15082 # Check to make sure the static flag actually works.
15083 #
15084 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15085 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15086 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15087 if test "${lt_prog_compiler_static_works+set}" = set; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   lt_prog_compiler_static_works=no
15091    save_LDFLAGS="$LDFLAGS"
15092    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15093    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15094    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15095      # The linker can only warn and ignore the option if not recognized
15096      # So say no if there are warnings
15097      if test -s conftest.err; then
15098        # Append any errors to the config.log.
15099        cat conftest.err 1>&5
15100        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15101        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15102        if diff conftest.exp conftest.er2 >/dev/null; then
15103          lt_prog_compiler_static_works=yes
15104        fi
15105      else
15106        lt_prog_compiler_static_works=yes
15107      fi
15108    fi
15109    $rm conftest*
15110    LDFLAGS="$save_LDFLAGS"
15111
15112 fi
15113 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15114 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15115
15116 if test x"$lt_prog_compiler_static_works" = xyes; then
15117     :
15118 else
15119     lt_prog_compiler_static=
15120 fi
15121
15122
15123 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15124 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15125 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15126   echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128   lt_cv_prog_compiler_c_o=no
15129    $rm -r conftest 2>/dev/null
15130    mkdir conftest
15131    cd conftest
15132    mkdir out
15133    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15134
15135    lt_compiler_flag="-o out/conftest2.$ac_objext"
15136    # Insert the option either (1) after the last *FLAGS variable, or
15137    # (2) before a word containing "conftest.", or (3) at the end.
15138    # Note that $ac_compile itself does not contain backslashes and begins
15139    # with a dollar sign (not a hyphen), so the echo should work correctly.
15140    lt_compile=`echo "$ac_compile" | $SED \
15141    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15142    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143    -e 's:$: $lt_compiler_flag:'`
15144    (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
15145    (eval "$lt_compile" 2>out/conftest.err)
15146    ac_status=$?
15147    cat out/conftest.err >&5
15148    echo "$as_me:15143: \$? = $ac_status" >&5
15149    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15150    then
15151      # The compiler can only warn and ignore the option if not recognized
15152      # So say no if there are warnings
15153      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15154      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15155      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15156        lt_cv_prog_compiler_c_o=yes
15157      fi
15158    fi
15159    chmod u+w . 2>&5
15160    $rm conftest*
15161    # SGI C++ compiler will create directory out/ii_files/ for
15162    # template instantiation
15163    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15164    $rm out/* && rmdir out
15165    cd ..
15166    rmdir conftest
15167    $rm conftest*
15168
15169 fi
15170 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15172
15173
15174 hard_links="nottested"
15175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15176   # do not overwrite the value of need_locks provided by the user
15177   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15179   hard_links=yes
15180   $rm conftest*
15181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182   touch conftest.a
15183   ln conftest.a conftest.b 2>&5 || hard_links=no
15184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15185   { echo "$as_me:$LINENO: result: $hard_links" >&5
15186 echo "${ECHO_T}$hard_links" >&6; }
15187   if test "$hard_links" = no; then
15188     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15190     need_locks=warn
15191   fi
15192 else
15193   need_locks=no
15194 fi
15195
15196 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15198
15199   runpath_var=
15200   allow_undefined_flag=
15201   enable_shared_with_static_runtimes=no
15202   archive_cmds=
15203   archive_expsym_cmds=
15204   old_archive_From_new_cmds=
15205   old_archive_from_expsyms_cmds=
15206   export_dynamic_flag_spec=
15207   whole_archive_flag_spec=
15208   thread_safe_flag_spec=
15209   hardcode_libdir_flag_spec=
15210   hardcode_libdir_flag_spec_ld=
15211   hardcode_libdir_separator=
15212   hardcode_direct=no
15213   hardcode_minus_L=no
15214   hardcode_shlibpath_var=unsupported
15215   link_all_deplibs=unknown
15216   hardcode_automatic=no
15217   module_cmds=
15218   module_expsym_cmds=
15219   always_export_symbols=no
15220   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15221   # include_expsyms should be a list of space-separated symbols to be *always*
15222   # included in the symbol list
15223   include_expsyms=
15224   # exclude_expsyms can be an extended regexp of symbols to exclude
15225   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15226   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15227   # as well as any symbol that contains `d'.
15228   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15229   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15230   # platforms (ab)use it in PIC code, but their linkers get confused if
15231   # the symbol is explicitly referenced.  Since portable code cannot
15232   # rely on this symbol name, it's probably fine to never include it in
15233   # preloaded symbol tables.
15234   extract_expsyms_cmds=
15235   # Just being paranoid about ensuring that cc_basename is set.
15236   for cc_temp in $compiler""; do
15237   case $cc_temp in
15238     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15239     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15240     \-*) ;;
15241     *) break;;
15242   esac
15243 done
15244 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15245
15246   case $host_os in
15247   cygwin* | mingw* | pw32*)
15248     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15249     # When not using gcc, we currently assume that we are using
15250     # Microsoft Visual C++.
15251     if test "$GCC" != yes; then
15252       with_gnu_ld=no
15253     fi
15254     ;;
15255   interix*)
15256     # we just hope/assume this is gcc and not c89 (= MSVC++)
15257     with_gnu_ld=yes
15258     ;;
15259   openbsd*)
15260     with_gnu_ld=no
15261     ;;
15262   esac
15263
15264   ld_shlibs=yes
15265   if test "$with_gnu_ld" = yes; then
15266     # If archive_cmds runs LD, not CC, wlarc should be empty
15267     wlarc='${wl}'
15268
15269     # Set some defaults for GNU ld with shared library support. These
15270     # are reset later if shared libraries are not supported. Putting them
15271     # here allows them to be overridden if necessary.
15272     runpath_var=LD_RUN_PATH
15273     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15274     export_dynamic_flag_spec='${wl}--export-dynamic'
15275     # ancient GNU ld didn't support --whole-archive et. al.
15276     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15277         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15278       else
15279         whole_archive_flag_spec=
15280     fi
15281     supports_anon_versioning=no
15282     case `$LD -v 2>/dev/null` in
15283       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15284       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15285       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15286       *\ 2.11.*) ;; # other 2.11 versions
15287       *) supports_anon_versioning=yes ;;
15288     esac
15289
15290     # See if GNU ld supports shared libraries.
15291     case $host_os in
15292     aix3* | aix4* | aix5*)
15293       # On AIX/PPC, the GNU linker is very broken
15294       if test "$host_cpu" != ia64; then
15295         ld_shlibs=no
15296         cat <<EOF 1>&2
15297
15298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15299 *** to be unable to reliably create shared libraries on AIX.
15300 *** Therefore, libtool is disabling shared libraries support.  If you
15301 *** really care for shared libraries, you may want to modify your PATH
15302 *** so that a non-GNU linker is found, and then restart.
15303
15304 EOF
15305       fi
15306       ;;
15307
15308     amigaos*)
15309       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)'
15310       hardcode_libdir_flag_spec='-L$libdir'
15311       hardcode_minus_L=yes
15312
15313       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15314       # that the semantics of dynamic libraries on AmigaOS, at least up
15315       # to version 4, is to share data among multiple programs linked
15316       # with the same dynamic library.  Since this doesn't match the
15317       # behavior of shared libraries on other platforms, we can't use
15318       # them.
15319       ld_shlibs=no
15320       ;;
15321
15322     beos*)
15323       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15324         allow_undefined_flag=unsupported
15325         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15326         # support --undefined.  This deserves some investigation.  FIXME
15327         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328       else
15329         ld_shlibs=no
15330       fi
15331       ;;
15332
15333     cygwin* | mingw* | pw32*)
15334       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15335       # as there is no search path for DLLs.
15336       hardcode_libdir_flag_spec='-L$libdir'
15337       allow_undefined_flag=unsupported
15338       always_export_symbols=no
15339       enable_shared_with_static_runtimes=yes
15340       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15341
15342       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15343         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15344         # If the export-symbols file already is a .def file (1st line
15345         # is EXPORTS), use it as is; otherwise, prepend...
15346         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15347           cp $export_symbols $output_objdir/$soname.def;
15348         else
15349           echo EXPORTS > $output_objdir/$soname.def;
15350           cat $export_symbols >> $output_objdir/$soname.def;
15351         fi~
15352         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15353       else
15354         ld_shlibs=no
15355       fi
15356       ;;
15357
15358     interix3*)
15359       hardcode_direct=no
15360       hardcode_shlibpath_var=no
15361       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15362       export_dynamic_flag_spec='${wl}-E'
15363       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15364       # Instead, shared libraries are loaded at an image base (0x10000000 by
15365       # default) and relocated if they conflict, which is a slow very memory
15366       # consuming and fragmenting process.  To avoid this, we pick a random,
15367       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15368       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15369       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15370       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'
15371       ;;
15372
15373     linux*)
15374       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15375         tmp_addflag=
15376         case $cc_basename,$host_cpu in
15377         pgcc*)                          # Portland Group C compiler
15378           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'
15379           tmp_addflag=' $pic_flag'
15380           ;;
15381         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15382           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'
15383           tmp_addflag=' $pic_flag -Mnomain' ;;
15384         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15385           tmp_addflag=' -i_dynamic' ;;
15386         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15387           tmp_addflag=' -i_dynamic -nofor_main' ;;
15388         ifc* | ifort*)                  # Intel Fortran compiler
15389           tmp_addflag=' -nofor_main' ;;
15390         esac
15391         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392
15393         if test $supports_anon_versioning = yes; then
15394           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15395   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15396   $echo "local: *; };" >> $output_objdir/$libname.ver~
15397           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15398         fi
15399       else
15400         ld_shlibs=no
15401       fi
15402       ;;
15403
15404     netbsd*)
15405       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15406         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15407         wlarc=
15408       else
15409         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15411       fi
15412       ;;
15413
15414     solaris*)
15415       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15416         ld_shlibs=no
15417         cat <<EOF 1>&2
15418
15419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15420 *** create shared libraries on Solaris systems.  Therefore, libtool
15421 *** is disabling shared libraries support.  We urge you to upgrade GNU
15422 *** binutils to release 2.9.1 or newer.  Another option is to modify
15423 *** your PATH or compiler configuration so that the native linker is
15424 *** used, and then restart.
15425
15426 EOF
15427       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15428         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15430       else
15431         ld_shlibs=no
15432       fi
15433       ;;
15434
15435     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15436       case `$LD -v 2>&1` in
15437         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15438         ld_shlibs=no
15439         cat <<_LT_EOF 1>&2
15440
15441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15442 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15443 *** is disabling shared libraries support.  We urge you to upgrade GNU
15444 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15445 *** your PATH or compiler configuration so that the native linker is
15446 *** used, and then restart.
15447
15448 _LT_EOF
15449         ;;
15450         *)
15451           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15452             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15453             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15454             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15455           else
15456             ld_shlibs=no
15457           fi
15458         ;;
15459       esac
15460       ;;
15461
15462     sunos4*)
15463       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15464       wlarc=
15465       hardcode_direct=yes
15466       hardcode_shlibpath_var=no
15467       ;;
15468
15469     *)
15470       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15471         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15473       else
15474         ld_shlibs=no
15475       fi
15476       ;;
15477     esac
15478
15479     if test "$ld_shlibs" = no; then
15480       runpath_var=
15481       hardcode_libdir_flag_spec=
15482       export_dynamic_flag_spec=
15483       whole_archive_flag_spec=
15484     fi
15485   else
15486     # PORTME fill in a description of your system's linker (not GNU ld)
15487     case $host_os in
15488     aix3*)
15489       allow_undefined_flag=unsupported
15490       always_export_symbols=yes
15491       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'
15492       # Note: this linker hardcodes the directories in LIBPATH if there
15493       # are no directories specified by -L.
15494       hardcode_minus_L=yes
15495       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15496         # Neither direct hardcoding nor static linking is supported with a
15497         # broken collect2.
15498         hardcode_direct=unsupported
15499       fi
15500       ;;
15501
15502     aix4* | aix5*)
15503       if test "$host_cpu" = ia64; then
15504         # On IA64, the linker does run time linking by default, so we don't
15505         # have to do anything special.
15506         aix_use_runtimelinking=no
15507         exp_sym_flag='-Bexport'
15508         no_entry_flag=""
15509       else
15510         # If we're using GNU nm, then we don't want the "-C" option.
15511         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15512         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15513           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'
15514         else
15515           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'
15516         fi
15517         aix_use_runtimelinking=no
15518
15519         # Test if we are trying to use run time linking or normal
15520         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15521         # need to do runtime linking.
15522         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15523           for ld_flag in $LDFLAGS; do
15524           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15525             aix_use_runtimelinking=yes
15526             break
15527           fi
15528           done
15529           ;;
15530         esac
15531
15532         exp_sym_flag='-bexport'
15533         no_entry_flag='-bnoentry'
15534       fi
15535
15536       # When large executables or shared objects are built, AIX ld can
15537       # have problems creating the table of contents.  If linking a library
15538       # or program results in "error TOC overflow" add -mminimal-toc to
15539       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15540       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15541
15542       archive_cmds=''
15543       hardcode_direct=yes
15544       hardcode_libdir_separator=':'
15545       link_all_deplibs=yes
15546
15547       if test "$GCC" = yes; then
15548         case $host_os in aix4.[012]|aix4.[012].*)
15549         # We only want to do this on AIX 4.2 and lower, the check
15550         # below for broken collect2 doesn't work under 4.3+
15551           collect2name=`${CC} -print-prog-name=collect2`
15552           if test -f "$collect2name" && \
15553            strings "$collect2name" | grep resolve_lib_name >/dev/null
15554           then
15555           # We have reworked collect2
15556           hardcode_direct=yes
15557           else
15558           # We have old collect2
15559           hardcode_direct=unsupported
15560           # It fails to find uninstalled libraries when the uninstalled
15561           # path is not listed in the libpath.  Setting hardcode_minus_L
15562           # to unsupported forces relinking
15563           hardcode_minus_L=yes
15564           hardcode_libdir_flag_spec='-L$libdir'
15565           hardcode_libdir_separator=
15566           fi
15567           ;;
15568         esac
15569         shared_flag='-shared'
15570         if test "$aix_use_runtimelinking" = yes; then
15571           shared_flag="$shared_flag "'${wl}-G'
15572         fi
15573       else
15574         # not using gcc
15575         if test "$host_cpu" = ia64; then
15576         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15577         # chokes on -Wl,-G. The following line is correct:
15578           shared_flag='-G'
15579         else
15580           if test "$aix_use_runtimelinking" = yes; then
15581             shared_flag='${wl}-G'
15582           else
15583             shared_flag='${wl}-bM:SRE'
15584           fi
15585         fi
15586       fi
15587
15588       # It seems that -bexpall does not export symbols beginning with
15589       # underscore (_), so it is better to generate a list of symbols to export.
15590       always_export_symbols=yes
15591       if test "$aix_use_runtimelinking" = yes; then
15592         # Warning - without using the other runtime loading flags (-brtl),
15593         # -berok will link without error, but may produce a broken library.
15594         allow_undefined_flag='-berok'
15595        # Determine the default libpath from the value encoded in an empty executable.
15596        cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h.  */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h.  */
15602
15603 int
15604 main ()
15605 {
15606
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (ac_try="$ac_link"
15613 case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_link") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626   { (case "(($ac_try" in
15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628   *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631   (eval "$ac_try") 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); }; } &&
15635          { ac_try='test -s conftest$ac_exeext'
15636   { (case "(($ac_try" in
15637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638   *) ac_try_echo=$ac_try;;
15639 esac
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641   (eval "$ac_try") 2>&5
15642   ac_status=$?
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); }; }; then
15645
15646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15647 }'`
15648 # Check for a 64-bit object if we didn't find anything.
15649 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; }
15650 }'`; fi
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655
15656 fi
15657
15658 rm -f core conftest.err conftest.$ac_objext \
15659       conftest$ac_exeext conftest.$ac_ext
15660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15661
15662        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15663         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"
15664        else
15665         if test "$host_cpu" = ia64; then
15666           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15667           allow_undefined_flag="-z nodefs"
15668           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"
15669         else
15670          # Determine the default libpath from the value encoded in an empty executable.
15671          cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677
15678 int
15679 main ()
15680 {
15681
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (ac_try="$ac_link"
15688 case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_link") 2>conftest.er1
15694   ac_status=$?
15695   grep -v '^ *+' conftest.er1 >conftest.err
15696   rm -f conftest.er1
15697   cat conftest.err >&5
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } &&
15700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701   { (case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_try") 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; } &&
15710          { ac_try='test -s conftest$ac_exeext'
15711   { (case "(($ac_try" in
15712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713   *) ac_try_echo=$ac_try;;
15714 esac
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716   (eval "$ac_try") 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; }; then
15720
15721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15722 }'`
15723 # Check for a 64-bit object if we didn't find anything.
15724 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; }
15725 }'`; fi
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730
15731 fi
15732
15733 rm -f core conftest.err conftest.$ac_objext \
15734       conftest$ac_exeext conftest.$ac_ext
15735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15736
15737          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15738           # Warning - without using the other run time loading flags,
15739           # -berok will link without error, but may produce a broken library.
15740           no_undefined_flag=' ${wl}-bernotok'
15741           allow_undefined_flag=' ${wl}-berok'
15742           # Exported symbols can be pulled into shared objects from archives
15743           whole_archive_flag_spec='$convenience'
15744           archive_cmds_need_lc=yes
15745           # This is similar to how AIX traditionally builds its shared libraries.
15746           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'
15747         fi
15748       fi
15749       ;;
15750
15751     amigaos*)
15752       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)'
15753       hardcode_libdir_flag_spec='-L$libdir'
15754       hardcode_minus_L=yes
15755       # see comment about different semantics on the GNU ld section
15756       ld_shlibs=no
15757       ;;
15758
15759     bsdi[45]*)
15760       export_dynamic_flag_spec=-rdynamic
15761       ;;
15762
15763     cygwin* | mingw* | pw32*)
15764       # When not using gcc, we currently assume that we are using
15765       # Microsoft Visual C++.
15766       # hardcode_libdir_flag_spec is actually meaningless, as there is
15767       # no search path for DLLs.
15768       hardcode_libdir_flag_spec=' '
15769       allow_undefined_flag=unsupported
15770       # Tell ltmain to make .lib files, not .a files.
15771       libext=lib
15772       # Tell ltmain to make .dll files, not .so files.
15773       shrext_cmds=".dll"
15774       # FIXME: Setting linknames here is a bad hack.
15775       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15776       # The linker will automatically build a .lib file if we build a DLL.
15777       old_archive_From_new_cmds='true'
15778       # FIXME: Should let the user specify the lib program.
15779       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15780       fix_srcfile_path='`cygpath -w "$srcfile"`'
15781       enable_shared_with_static_runtimes=yes
15782       ;;
15783
15784     darwin* | rhapsody*)
15785       case $host_os in
15786         rhapsody* | darwin1.[012])
15787          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15788          ;;
15789        *) # Darwin 1.3 on
15790          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15791            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15792          else
15793            case ${MACOSX_DEPLOYMENT_TARGET} in
15794              10.[012])
15795                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15796                ;;
15797              10.*)
15798                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15799                ;;
15800            esac
15801          fi
15802          ;;
15803       esac
15804       archive_cmds_need_lc=no
15805       hardcode_direct=no
15806       hardcode_automatic=yes
15807       hardcode_shlibpath_var=unsupported
15808       whole_archive_flag_spec=''
15809       link_all_deplibs=yes
15810     if test "$GCC" = yes ; then
15811         output_verbose_link_cmd='echo'
15812         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15813       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15814       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15815       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}'
15816       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}'
15817     else
15818       case $cc_basename in
15819         xlc*)
15820          output_verbose_link_cmd='echo'
15821          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15822          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15823           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15824          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}'
15825           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}'
15826           ;;
15827        *)
15828          ld_shlibs=no
15829           ;;
15830       esac
15831     fi
15832       ;;
15833
15834     dgux*)
15835       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836       hardcode_libdir_flag_spec='-L$libdir'
15837       hardcode_shlibpath_var=no
15838       ;;
15839
15840     freebsd1*)
15841       ld_shlibs=no
15842       ;;
15843
15844     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15845     # support.  Future versions do this automatically, but an explicit c++rt0.o
15846     # does not break anything, and helps significantly (at the cost of a little
15847     # extra space).
15848     freebsd2.2*)
15849       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15850       hardcode_libdir_flag_spec='-R$libdir'
15851       hardcode_direct=yes
15852       hardcode_shlibpath_var=no
15853       ;;
15854
15855     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15856     freebsd2*)
15857       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15858       hardcode_direct=yes
15859       hardcode_minus_L=yes
15860       hardcode_shlibpath_var=no
15861       ;;
15862
15863     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15864     freebsd* | kfreebsd*-gnu | dragonfly*)
15865       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15866       hardcode_libdir_flag_spec='-R$libdir'
15867       hardcode_direct=yes
15868       hardcode_shlibpath_var=no
15869       ;;
15870
15871     hpux9*)
15872       if test "$GCC" = yes; then
15873         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'
15874       else
15875         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'
15876       fi
15877       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15878       hardcode_libdir_separator=:
15879       hardcode_direct=yes
15880
15881       # hardcode_minus_L: Not really in the search PATH,
15882       # but as the default location of the library.
15883       hardcode_minus_L=yes
15884       export_dynamic_flag_spec='${wl}-E'
15885       ;;
15886
15887     hpux10*)
15888       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15889         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15890       else
15891         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15892       fi
15893       if test "$with_gnu_ld" = no; then
15894         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15895         hardcode_libdir_separator=:
15896
15897         hardcode_direct=yes
15898         export_dynamic_flag_spec='${wl}-E'
15899
15900         # hardcode_minus_L: Not really in the search PATH,
15901         # but as the default location of the library.
15902         hardcode_minus_L=yes
15903       fi
15904       ;;
15905
15906     hpux11*)
15907       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15908         case $host_cpu in
15909         hppa*64*)
15910           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911           ;;
15912         ia64*)
15913           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15914           ;;
15915         *)
15916           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15917           ;;
15918         esac
15919       else
15920         case $host_cpu in
15921         hppa*64*)
15922           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923           ;;
15924         ia64*)
15925           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15926           ;;
15927         *)
15928           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15929           ;;
15930         esac
15931       fi
15932       if test "$with_gnu_ld" = no; then
15933         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15934         hardcode_libdir_separator=:
15935
15936         case $host_cpu in
15937         hppa*64*|ia64*)
15938           hardcode_libdir_flag_spec_ld='+b $libdir'
15939           hardcode_direct=no
15940           hardcode_shlibpath_var=no
15941           ;;
15942         *)
15943           hardcode_direct=yes
15944           export_dynamic_flag_spec='${wl}-E'
15945
15946           # hardcode_minus_L: Not really in the search PATH,
15947           # but as the default location of the library.
15948           hardcode_minus_L=yes
15949           ;;
15950         esac
15951       fi
15952       ;;
15953
15954     irix5* | irix6* | nonstopux*)
15955       if test "$GCC" = yes; then
15956         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'
15957       else
15958         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'
15959         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15960       fi
15961       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15962       hardcode_libdir_separator=:
15963       link_all_deplibs=yes
15964       ;;
15965
15966     netbsd*)
15967       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15968         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15969       else
15970         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15971       fi
15972       hardcode_libdir_flag_spec='-R$libdir'
15973       hardcode_direct=yes
15974       hardcode_shlibpath_var=no
15975       ;;
15976
15977     newsos6)
15978       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979       hardcode_direct=yes
15980       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15981       hardcode_libdir_separator=:
15982       hardcode_shlibpath_var=no
15983       ;;
15984
15985     openbsd*)
15986       hardcode_direct=yes
15987       hardcode_shlibpath_var=no
15988       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15989         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15990         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15991         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15992         export_dynamic_flag_spec='${wl}-E'
15993       else
15994        case $host_os in
15995          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15996            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997            hardcode_libdir_flag_spec='-R$libdir'
15998            ;;
15999          *)
16000            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16001            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16002            ;;
16003        esac
16004       fi
16005       ;;
16006
16007     os2*)
16008       hardcode_libdir_flag_spec='-L$libdir'
16009       hardcode_minus_L=yes
16010       allow_undefined_flag=unsupported
16011       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'
16012       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16013       ;;
16014
16015     osf3*)
16016       if test "$GCC" = yes; then
16017         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16018         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'
16019       else
16020         allow_undefined_flag=' -expect_unresolved \*'
16021         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'
16022       fi
16023       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16024       hardcode_libdir_separator=:
16025       ;;
16026
16027     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16028       if test "$GCC" = yes; then
16029         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16030         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'
16031         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16032       else
16033         allow_undefined_flag=' -expect_unresolved \*'
16034         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'
16035         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16036         $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'
16037
16038         # Both c and cxx compiler support -rpath directly
16039         hardcode_libdir_flag_spec='-rpath $libdir'
16040       fi
16041       hardcode_libdir_separator=:
16042       ;;
16043
16044     solaris*)
16045       no_undefined_flag=' -z text'
16046       if test "$GCC" = yes; then
16047         wlarc='${wl}'
16048         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16051       else
16052         wlarc=''
16053         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16055         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16056       fi
16057       hardcode_libdir_flag_spec='-R$libdir'
16058       hardcode_shlibpath_var=no
16059       case $host_os in
16060       solaris2.[0-5] | solaris2.[0-5].*) ;;
16061       *)
16062         # The compiler driver will combine linker options so we
16063         # cannot just pass the convience library names through
16064         # without $wl, iff we do not link with $LD.
16065         # Luckily, gcc supports the same syntax we need for Sun Studio.
16066         # Supported since Solaris 2.6 (maybe 2.5.1?)
16067         case $wlarc in
16068         '')
16069           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16070         *)
16071           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' ;;
16072         esac ;;
16073       esac
16074       link_all_deplibs=yes
16075       ;;
16076
16077     sunos4*)
16078       if test "x$host_vendor" = xsequent; then
16079         # Use $CC to link under sequent, because it throws in some extra .o
16080         # files that make .init and .fini sections work.
16081         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16082       else
16083         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16084       fi
16085       hardcode_libdir_flag_spec='-L$libdir'
16086       hardcode_direct=yes
16087       hardcode_minus_L=yes
16088       hardcode_shlibpath_var=no
16089       ;;
16090
16091     sysv4)
16092       case $host_vendor in
16093         sni)
16094           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095           hardcode_direct=yes # is this really true???
16096         ;;
16097         siemens)
16098           ## LD is ld it makes a PLAMLIB
16099           ## CC just makes a GrossModule.
16100           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16101           reload_cmds='$CC -r -o $output$reload_objs'
16102           hardcode_direct=no
16103         ;;
16104         motorola)
16105           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16107         ;;
16108       esac
16109       runpath_var='LD_RUN_PATH'
16110       hardcode_shlibpath_var=no
16111       ;;
16112
16113     sysv4.3*)
16114       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115       hardcode_shlibpath_var=no
16116       export_dynamic_flag_spec='-Bexport'
16117       ;;
16118
16119     sysv4*MP*)
16120       if test -d /usr/nec; then
16121         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122         hardcode_shlibpath_var=no
16123         runpath_var=LD_RUN_PATH
16124         hardcode_runpath_var=yes
16125         ld_shlibs=yes
16126       fi
16127       ;;
16128
16129     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16130       no_undefined_flag='${wl}-z,text'
16131       archive_cmds_need_lc=no
16132       hardcode_shlibpath_var=no
16133       runpath_var='LD_RUN_PATH'
16134
16135       if test "$GCC" = yes; then
16136         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16137         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138       else
16139         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141       fi
16142       ;;
16143
16144     sysv5* | sco3.2v5* | sco5v6*)
16145       # Note: We can NOT use -z defs as we might desire, because we do not
16146       # link with -lc, and that would cause any symbols used from libc to
16147       # always be unresolved, which means just about no library would
16148       # ever link correctly.  If we're not using GNU ld we use -z text
16149       # though, which does catch some bad symbols but isn't as heavy-handed
16150       # as -z defs.
16151       no_undefined_flag='${wl}-z,text'
16152       allow_undefined_flag='${wl}-z,nodefs'
16153       archive_cmds_need_lc=no
16154       hardcode_shlibpath_var=no
16155       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16156       hardcode_libdir_separator=':'
16157       link_all_deplibs=yes
16158       export_dynamic_flag_spec='${wl}-Bexport'
16159       runpath_var='LD_RUN_PATH'
16160
16161       if test "$GCC" = yes; then
16162         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16163         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164       else
16165         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167       fi
16168       ;;
16169
16170     uts4*)
16171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172       hardcode_libdir_flag_spec='-L$libdir'
16173       hardcode_shlibpath_var=no
16174       ;;
16175
16176     *)
16177       ld_shlibs=no
16178       ;;
16179     esac
16180   fi
16181
16182 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16183 echo "${ECHO_T}$ld_shlibs" >&6; }
16184 test "$ld_shlibs" = no && can_build_shared=no
16185
16186 #
16187 # Do we need to explicitly link libc?
16188 #
16189 case "x$archive_cmds_need_lc" in
16190 x|xyes)
16191   # Assume -lc should be added
16192   archive_cmds_need_lc=yes
16193
16194   if test "$enable_shared" = yes && test "$GCC" = yes; then
16195     case $archive_cmds in
16196     *'~'*)
16197       # FIXME: we may have to deal with multi-command sequences.
16198       ;;
16199     '$CC '*)
16200       # Test whether the compiler implicitly links with -lc since on some
16201       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16202       # to ld, don't add -lc before -lgcc.
16203       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16205       $rm conftest*
16206       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16207
16208       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209   (eval $ac_compile) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } 2>conftest.err; then
16213         soname=conftest
16214         lib=conftest
16215         libobjs=conftest.$ac_objext
16216         deplibs=
16217         wl=$lt_prog_compiler_wl
16218         pic_flag=$lt_prog_compiler_pic
16219         compiler_flags=-v
16220         linker_flags=-v
16221         verstring=
16222         output_objdir=.
16223         libname=conftest
16224         lt_save_allow_undefined_flag=$allow_undefined_flag
16225         allow_undefined_flag=
16226         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16227   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }
16231         then
16232           archive_cmds_need_lc=no
16233         else
16234           archive_cmds_need_lc=yes
16235         fi
16236         allow_undefined_flag=$lt_save_allow_undefined_flag
16237       else
16238         cat conftest.err 1>&5
16239       fi
16240       $rm conftest*
16241       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16242 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16243       ;;
16244     esac
16245   fi
16246   ;;
16247 esac
16248
16249 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16250 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16251 library_names_spec=
16252 libname_spec='lib$name'
16253 soname_spec=
16254 shrext_cmds=".so"
16255 postinstall_cmds=
16256 postuninstall_cmds=
16257 finish_cmds=
16258 finish_eval=
16259 shlibpath_var=
16260 shlibpath_overrides_runpath=unknown
16261 version_type=none
16262 dynamic_linker="$host_os ld.so"
16263 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16264 if test "$GCC" = yes; then
16265   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16266   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16267     # if the path contains ";" then we assume it to be the separator
16268     # otherwise default to the standard path separator (i.e. ":") - it is
16269     # assumed that no part of a normal pathname contains ";" but that should
16270     # okay in the real world where ";" in dirpaths is itself problematic.
16271     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16272   else
16273     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16274   fi
16275 else
16276   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16277 fi
16278 need_lib_prefix=unknown
16279 hardcode_into_libs=no
16280
16281 # when you set need_version to no, make sure it does not cause -set_version
16282 # flags to be left without arguments
16283 need_version=unknown
16284
16285 case $host_os in
16286 aix3*)
16287   version_type=linux
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16289   shlibpath_var=LIBPATH
16290
16291   # AIX 3 has no versioning support, so we append a major version to the name.
16292   soname_spec='${libname}${release}${shared_ext}$major'
16293   ;;
16294
16295 aix4* | aix5*)
16296   version_type=linux
16297   need_lib_prefix=no
16298   need_version=no
16299   hardcode_into_libs=yes
16300   if test "$host_cpu" = ia64; then
16301     # AIX 5 supports IA64
16302     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16303     shlibpath_var=LD_LIBRARY_PATH
16304   else
16305     # With GCC up to 2.95.x, collect2 would create an import file
16306     # for dependence libraries.  The import file would start with
16307     # the line `#! .'.  This would cause the generated library to
16308     # depend on `.', always an invalid library.  This was fixed in
16309     # development snapshots of GCC prior to 3.0.
16310     case $host_os in
16311       aix4 | aix4.[01] | aix4.[01].*)
16312       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16313            echo ' yes '
16314            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16315         :
16316       else
16317         can_build_shared=no
16318       fi
16319       ;;
16320     esac
16321     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16322     # soname into executable. Probably we can add versioning support to
16323     # collect2, so additional links can be useful in future.
16324     if test "$aix_use_runtimelinking" = yes; then
16325       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16326       # instead of lib<name>.a to let people know that these are not
16327       # typical AIX shared libraries.
16328       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329     else
16330       # We preserve .a as extension for shared libraries through AIX4.2
16331       # and later when we are not doing run time linking.
16332       library_names_spec='${libname}${release}.a $libname.a'
16333       soname_spec='${libname}${release}${shared_ext}$major'
16334     fi
16335     shlibpath_var=LIBPATH
16336   fi
16337   ;;
16338
16339 amigaos*)
16340   library_names_spec='$libname.ixlibrary $libname.a'
16341   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16342   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'
16343   ;;
16344
16345 beos*)
16346   library_names_spec='${libname}${shared_ext}'
16347   dynamic_linker="$host_os ld.so"
16348   shlibpath_var=LIBRARY_PATH
16349   ;;
16350
16351 bsdi[45]*)
16352   version_type=linux
16353   need_version=no
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355   soname_spec='${libname}${release}${shared_ext}$major'
16356   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16357   shlibpath_var=LD_LIBRARY_PATH
16358   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16359   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16360   # the default ld.so.conf also contains /usr/contrib/lib and
16361   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16362   # libtool to hard-code these into programs
16363   ;;
16364
16365 cygwin* | mingw* | pw32*)
16366   version_type=windows
16367   shrext_cmds=".dll"
16368   need_version=no
16369   need_lib_prefix=no
16370
16371   case $GCC,$host_os in
16372   yes,cygwin* | yes,mingw* | yes,pw32*)
16373     library_names_spec='$libname.dll.a'
16374     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16375     postinstall_cmds='base_file=`basename \${file}`~
16376       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16377       dldir=$destdir/`dirname \$dlpath`~
16378       test -d \$dldir || mkdir -p \$dldir~
16379       $install_prog $dir/$dlname \$dldir/$dlname~
16380       chmod a+x \$dldir/$dlname'
16381     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16382       dlpath=$dir/\$dldll~
16383        $rm \$dlpath'
16384     shlibpath_overrides_runpath=yes
16385
16386     case $host_os in
16387     cygwin*)
16388       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16389       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16391       ;;
16392     mingw*)
16393       # MinGW DLLs use traditional 'lib' prefix
16394       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16395       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16396       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16397         # It is most probably a Windows format PATH printed by
16398         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16399         # path with ; separators, and with drive letters. We can handle the
16400         # drive letters (cygwin fileutils understands them), so leave them,
16401         # especially as we might pass files found there to a mingw objdump,
16402         # which wouldn't understand a cygwinified path. Ahh.
16403         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16404       else
16405         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16406       fi
16407       ;;
16408     pw32*)
16409       # pw32 DLLs use 'pw' prefix rather than 'lib'
16410       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16411       ;;
16412     esac
16413     ;;
16414
16415   *)
16416     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16417     ;;
16418   esac
16419   dynamic_linker='Win32 ld.exe'
16420   # FIXME: first we should search . and the directory the executable is in
16421   shlibpath_var=PATH
16422   ;;
16423
16424 darwin* | rhapsody*)
16425   dynamic_linker="$host_os dyld"
16426   version_type=darwin
16427   need_lib_prefix=no
16428   need_version=no
16429   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16430   soname_spec='${libname}${release}${major}$shared_ext'
16431   shlibpath_overrides_runpath=yes
16432   shlibpath_var=DYLD_LIBRARY_PATH
16433   shrext_cmds='.dylib'
16434   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16435   if test "$GCC" = yes; then
16436     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"`
16437   else
16438     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16439   fi
16440   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16441   ;;
16442
16443 dgux*)
16444   version_type=linux
16445   need_lib_prefix=no
16446   need_version=no
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16448   soname_spec='${libname}${release}${shared_ext}$major'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   ;;
16451
16452 freebsd1*)
16453   dynamic_linker=no
16454   ;;
16455
16456 kfreebsd*-gnu)
16457   version_type=linux
16458   need_lib_prefix=no
16459   need_version=no
16460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16461   soname_spec='${libname}${release}${shared_ext}$major'
16462   shlibpath_var=LD_LIBRARY_PATH
16463   shlibpath_overrides_runpath=no
16464   hardcode_into_libs=yes
16465   dynamic_linker='GNU ld.so'
16466   ;;
16467
16468 freebsd* | dragonfly*)
16469   # DragonFly does not have aout.  When/if they implement a new
16470   # versioning mechanism, adjust this.
16471   if test -x /usr/bin/objformat; then
16472     objformat=`/usr/bin/objformat`
16473   else
16474     case $host_os in
16475     freebsd[123]*) objformat=aout ;;
16476     *) objformat=elf ;;
16477     esac
16478   fi
16479   version_type=freebsd-$objformat
16480   case $version_type in
16481     freebsd-elf*)
16482       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16483       need_version=no
16484       need_lib_prefix=no
16485       ;;
16486     freebsd-*)
16487       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16488       need_version=yes
16489       ;;
16490   esac
16491   shlibpath_var=LD_LIBRARY_PATH
16492   case $host_os in
16493   freebsd2*)
16494     shlibpath_overrides_runpath=yes
16495     ;;
16496   freebsd3.[01]* | freebsdelf3.[01]*)
16497     shlibpath_overrides_runpath=yes
16498     hardcode_into_libs=yes
16499     ;;
16500   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16501   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16502     shlibpath_overrides_runpath=no
16503     hardcode_into_libs=yes
16504     ;;
16505   freebsd*) # from 4.6 on
16506     shlibpath_overrides_runpath=yes
16507     hardcode_into_libs=yes
16508     ;;
16509   esac
16510   ;;
16511
16512 gnu*)
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   hardcode_into_libs=yes
16520   ;;
16521
16522 hpux9* | hpux10* | hpux11*)
16523   # Give a soname corresponding to the major version so that dld.sl refuses to
16524   # link against other versions.
16525   version_type=sunos
16526   need_lib_prefix=no
16527   need_version=no
16528   case $host_cpu in
16529   ia64*)
16530     shrext_cmds='.so'
16531     hardcode_into_libs=yes
16532     dynamic_linker="$host_os dld.so"
16533     shlibpath_var=LD_LIBRARY_PATH
16534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536     soname_spec='${libname}${release}${shared_ext}$major'
16537     if test "X$HPUX_IA64_MODE" = X32; then
16538       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16539     else
16540       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16541     fi
16542     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16543     ;;
16544    hppa*64*)
16545      shrext_cmds='.sl'
16546      hardcode_into_libs=yes
16547      dynamic_linker="$host_os dld.sl"
16548      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16549      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16550      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551      soname_spec='${libname}${release}${shared_ext}$major'
16552      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16553      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16554      ;;
16555    *)
16556     shrext_cmds='.sl'
16557     dynamic_linker="$host_os dld.sl"
16558     shlibpath_var=SHLIB_PATH
16559     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561     soname_spec='${libname}${release}${shared_ext}$major'
16562     ;;
16563   esac
16564   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16565   postinstall_cmds='chmod 555 $lib'
16566   ;;
16567
16568 interix3*)
16569   version_type=linux
16570   need_lib_prefix=no
16571   need_version=no
16572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16573   soname_spec='${libname}${release}${shared_ext}$major'
16574   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16575   shlibpath_var=LD_LIBRARY_PATH
16576   shlibpath_overrides_runpath=no
16577   hardcode_into_libs=yes
16578   ;;
16579
16580 irix5* | irix6* | nonstopux*)
16581   case $host_os in
16582     nonstopux*) version_type=nonstopux ;;
16583     *)
16584         if test "$lt_cv_prog_gnu_ld" = yes; then
16585                 version_type=linux
16586         else
16587                 version_type=irix
16588         fi ;;
16589   esac
16590   need_lib_prefix=no
16591   need_version=no
16592   soname_spec='${libname}${release}${shared_ext}$major'
16593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16594   case $host_os in
16595   irix5* | nonstopux*)
16596     libsuff= shlibsuff=
16597     ;;
16598   *)
16599     case $LD in # libtool.m4 will add one of these switches to LD
16600     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16601       libsuff= shlibsuff= libmagic=32-bit;;
16602     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16603       libsuff=32 shlibsuff=N32 libmagic=N32;;
16604     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16605       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16606     *) libsuff= shlibsuff= libmagic=never-match;;
16607     esac
16608     ;;
16609   esac
16610   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16611   shlibpath_overrides_runpath=no
16612   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16613   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16614   hardcode_into_libs=yes
16615   ;;
16616
16617 # No shared lib support for Linux oldld, aout, or coff.
16618 linux*oldld* | linux*aout* | linux*coff*)
16619   dynamic_linker=no
16620   ;;
16621
16622 # This must be Linux ELF.
16623 linux*)
16624   version_type=linux
16625   need_lib_prefix=no
16626   need_version=no
16627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628   soname_spec='${libname}${release}${shared_ext}$major'
16629   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16630   shlibpath_var=LD_LIBRARY_PATH
16631   shlibpath_overrides_runpath=no
16632   # This implies no fast_install, which is unacceptable.
16633   # Some rework will be needed to allow for fast_install
16634   # before this can be enabled.
16635   hardcode_into_libs=yes
16636
16637   # Append ld.so.conf contents to the search path
16638   if test -f /etc/ld.so.conf; then
16639     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' ' '`
16640     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16641   fi
16642
16643   # We used to test for /lib/ld.so.1 and disable shared libraries on
16644   # powerpc, because MkLinux only supported shared libraries with the
16645   # GNU dynamic linker.  Since this was broken with cross compilers,
16646   # most powerpc-linux boxes support dynamic linking these days and
16647   # people can always --disable-shared, the test was removed, and we
16648   # assume the GNU/Linux dynamic linker is in use.
16649   dynamic_linker='GNU/Linux ld.so'
16650   ;;
16651
16652 knetbsd*-gnu)
16653   version_type=linux
16654   need_lib_prefix=no
16655   need_version=no
16656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16657   soname_spec='${libname}${release}${shared_ext}$major'
16658   shlibpath_var=LD_LIBRARY_PATH
16659   shlibpath_overrides_runpath=no
16660   hardcode_into_libs=yes
16661   dynamic_linker='GNU ld.so'
16662   ;;
16663
16664 netbsd*)
16665   version_type=sunos
16666   need_lib_prefix=no
16667   need_version=no
16668   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16670     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671     dynamic_linker='NetBSD (a.out) ld.so'
16672   else
16673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674     soname_spec='${libname}${release}${shared_ext}$major'
16675     dynamic_linker='NetBSD ld.elf_so'
16676   fi
16677   shlibpath_var=LD_LIBRARY_PATH
16678   shlibpath_overrides_runpath=yes
16679   hardcode_into_libs=yes
16680   ;;
16681
16682 newsos6)
16683   version_type=linux
16684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685   shlibpath_var=LD_LIBRARY_PATH
16686   shlibpath_overrides_runpath=yes
16687   ;;
16688
16689 nto-qnx*)
16690   version_type=linux
16691   need_lib_prefix=no
16692   need_version=no
16693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694   soname_spec='${libname}${release}${shared_ext}$major'
16695   shlibpath_var=LD_LIBRARY_PATH
16696   shlibpath_overrides_runpath=yes
16697   ;;
16698
16699 openbsd*)
16700   version_type=sunos
16701   sys_lib_dlsearch_path_spec="/usr/lib"
16702   need_lib_prefix=no
16703   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16704   case $host_os in
16705     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16706     *)                         need_version=no  ;;
16707   esac
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710   shlibpath_var=LD_LIBRARY_PATH
16711   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16712     case $host_os in
16713       openbsd2.[89] | openbsd2.[89].*)
16714         shlibpath_overrides_runpath=no
16715         ;;
16716       *)
16717         shlibpath_overrides_runpath=yes
16718         ;;
16719       esac
16720   else
16721     shlibpath_overrides_runpath=yes
16722   fi
16723   ;;
16724
16725 os2*)
16726   libname_spec='$name'
16727   shrext_cmds=".dll"
16728   need_lib_prefix=no
16729   library_names_spec='$libname${shared_ext} $libname.a'
16730   dynamic_linker='OS/2 ld.exe'
16731   shlibpath_var=LIBPATH
16732   ;;
16733
16734 osf3* | osf4* | osf5*)
16735   version_type=osf
16736   need_lib_prefix=no
16737   need_version=no
16738   soname_spec='${libname}${release}${shared_ext}$major'
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740   shlibpath_var=LD_LIBRARY_PATH
16741   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16742   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16743   ;;
16744
16745 solaris*)
16746   version_type=linux
16747   need_lib_prefix=no
16748   need_version=no
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750   soname_spec='${libname}${release}${shared_ext}$major'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=yes
16753   hardcode_into_libs=yes
16754   # ldd complains unless libraries are executable
16755   postinstall_cmds='chmod +x $lib'
16756   ;;
16757
16758 sunos4*)
16759   version_type=sunos
16760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16761   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16762   shlibpath_var=LD_LIBRARY_PATH
16763   shlibpath_overrides_runpath=yes
16764   if test "$with_gnu_ld" = yes; then
16765     need_lib_prefix=no
16766   fi
16767   need_version=yes
16768   ;;
16769
16770 sysv4 | sysv4.3*)
16771   version_type=linux
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   case $host_vendor in
16776     sni)
16777       shlibpath_overrides_runpath=no
16778       need_lib_prefix=no
16779       export_dynamic_flag_spec='${wl}-Blargedynsym'
16780       runpath_var=LD_RUN_PATH
16781       ;;
16782     siemens)
16783       need_lib_prefix=no
16784       ;;
16785     motorola)
16786       need_lib_prefix=no
16787       need_version=no
16788       shlibpath_overrides_runpath=no
16789       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16790       ;;
16791   esac
16792   ;;
16793
16794 sysv4*MP*)
16795   if test -d /usr/nec ;then
16796     version_type=linux
16797     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16798     soname_spec='$libname${shared_ext}.$major'
16799     shlibpath_var=LD_LIBRARY_PATH
16800   fi
16801   ;;
16802
16803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16804   version_type=freebsd-elf
16805   need_lib_prefix=no
16806   need_version=no
16807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16808   soname_spec='${libname}${release}${shared_ext}$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   hardcode_into_libs=yes
16811   if test "$with_gnu_ld" = yes; then
16812     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16813     shlibpath_overrides_runpath=no
16814   else
16815     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16816     shlibpath_overrides_runpath=yes
16817     case $host_os in
16818       sco3.2v5*)
16819         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16820         ;;
16821     esac
16822   fi
16823   sys_lib_dlsearch_path_spec='/usr/lib'
16824   ;;
16825
16826 uts4*)
16827   version_type=linux
16828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829   soname_spec='${libname}${release}${shared_ext}$major'
16830   shlibpath_var=LD_LIBRARY_PATH
16831   ;;
16832
16833 *)
16834   dynamic_linker=no
16835   ;;
16836 esac
16837 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16838 echo "${ECHO_T}$dynamic_linker" >&6; }
16839 test "$dynamic_linker" = no && can_build_shared=no
16840
16841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16842 if test "$GCC" = yes; then
16843   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16844 fi
16845
16846 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16847 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16848 hardcode_action=
16849 if test -n "$hardcode_libdir_flag_spec" || \
16850    test -n "$runpath_var" || \
16851    test "X$hardcode_automatic" = "Xyes" ; then
16852
16853   # We can hardcode non-existant directories.
16854   if test "$hardcode_direct" != no &&
16855      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16856      # have to relink, otherwise we might link with an installed library
16857      # when we should be linking with a yet-to-be-installed one
16858      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16859      test "$hardcode_minus_L" != no; then
16860     # Linking always hardcodes the temporary library directory.
16861     hardcode_action=relink
16862   else
16863     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16864     hardcode_action=immediate
16865   fi
16866 else
16867   # We cannot hardcode anything, or else we can only hardcode existing
16868   # directories.
16869   hardcode_action=unsupported
16870 fi
16871 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16872 echo "${ECHO_T}$hardcode_action" >&6; }
16873
16874 if test "$hardcode_action" = relink; then
16875   # Fast installation is not supported
16876   enable_fast_install=no
16877 elif test "$shlibpath_overrides_runpath" = yes ||
16878      test "$enable_shared" = no; then
16879   # Fast installation is not necessary
16880   enable_fast_install=needless
16881 fi
16882
16883 striplib=
16884 old_striplib=
16885 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16886 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16887 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16888   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16889   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16890   { echo "$as_me:$LINENO: result: yes" >&5
16891 echo "${ECHO_T}yes" >&6; }
16892 else
16893 # FIXME - insert some real tests, host_os isn't really good enough
16894   case $host_os in
16895    darwin*)
16896        if test -n "$STRIP" ; then
16897          striplib="$STRIP -x"
16898          { echo "$as_me:$LINENO: result: yes" >&5
16899 echo "${ECHO_T}yes" >&6; }
16900        else
16901   { echo "$as_me:$LINENO: result: no" >&5
16902 echo "${ECHO_T}no" >&6; }
16903 fi
16904        ;;
16905    *)
16906   { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16908     ;;
16909   esac
16910 fi
16911
16912 if test "x$enable_dlopen" != xyes; then
16913   enable_dlopen=unknown
16914   enable_dlopen_self=unknown
16915   enable_dlopen_self_static=unknown
16916 else
16917   lt_cv_dlopen=no
16918   lt_cv_dlopen_libs=
16919
16920   case $host_os in
16921   beos*)
16922     lt_cv_dlopen="load_add_on"
16923     lt_cv_dlopen_libs=
16924     lt_cv_dlopen_self=yes
16925     ;;
16926
16927   mingw* | pw32*)
16928     lt_cv_dlopen="LoadLibrary"
16929     lt_cv_dlopen_libs=
16930    ;;
16931
16932   cygwin*)
16933     lt_cv_dlopen="dlopen"
16934     lt_cv_dlopen_libs=
16935    ;;
16936
16937   darwin*)
16938   # if libdl is installed we need to link against it
16939     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16940 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16942   echo $ECHO_N "(cached) $ECHO_C" >&6
16943 else
16944   ac_check_lib_save_LIBS=$LIBS
16945 LIBS="-ldl  $LIBS"
16946 cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h.  */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h.  */
16952
16953 /* Override any GCC internal prototype to avoid an error.
16954    Use char because int might match the return type of a GCC
16955    builtin and then its argument prototype would still apply.  */
16956 #ifdef __cplusplus
16957 extern "C"
16958 #endif
16959 char dlopen ();
16960 int
16961 main ()
16962 {
16963 return dlopen ();
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (ac_try="$ac_link"
16970 case "(($ac_try" in
16971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972   *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975   (eval "$ac_link") 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983   { (case "(($ac_try" in
16984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985   *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988   (eval "$ac_try") 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); }; } &&
16992          { ac_try='test -s conftest$ac_exeext'
16993   { (case "(($ac_try" in
16994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995   *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998   (eval "$ac_try") 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; }; then
17002   ac_cv_lib_dl_dlopen=yes
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007         ac_cv_lib_dl_dlopen=no
17008 fi
17009
17010 rm -f core conftest.err conftest.$ac_objext \
17011       conftest$ac_exeext conftest.$ac_ext
17012 LIBS=$ac_check_lib_save_LIBS
17013 fi
17014 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17015 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17016 if test $ac_cv_lib_dl_dlopen = yes; then
17017   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17018 else
17019
17020     lt_cv_dlopen="dyld"
17021     lt_cv_dlopen_libs=
17022     lt_cv_dlopen_self=yes
17023
17024 fi
17025
17026    ;;
17027
17028   *)
17029     { echo "$as_me:$LINENO: checking for shl_load" >&5
17030 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17031 if test "${ac_cv_func_shl_load+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034   cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17042 #define shl_load innocuous_shl_load
17043
17044 /* System header to define __stub macros and hopefully few prototypes,
17045     which can conflict with char shl_load (); below.
17046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047     <limits.h> exists even on freestanding compilers.  */
17048
17049 #ifdef __STDC__
17050 # include <limits.h>
17051 #else
17052 # include <assert.h>
17053 #endif
17054
17055 #undef shl_load
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char shl_load ();
17064 /* The GNU C library defines this for functions which it implements
17065     to always fail with ENOSYS.  Some functions are actually named
17066     something starting with __ and the normal name is an alias.  */
17067 #if defined __stub_shl_load || defined __stub___shl_load
17068 choke me
17069 #endif
17070
17071 int
17072 main ()
17073 {
17074 return shl_load ();
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_link") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } &&
17093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094   { (case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_try") 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; } &&
17103          { ac_try='test -s conftest$ac_exeext'
17104   { (case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_try") 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; }; then
17113   ac_cv_func_shl_load=yes
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118         ac_cv_func_shl_load=no
17119 fi
17120
17121 rm -f core conftest.err conftest.$ac_objext \
17122       conftest$ac_exeext conftest.$ac_ext
17123 fi
17124 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17125 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17126 if test $ac_cv_func_shl_load = yes; then
17127   lt_cv_dlopen="shl_load"
17128 else
17129   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17130 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134   ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-ldld  $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142
17143 /* Override any GCC internal prototype to avoid an error.
17144    Use char because int might match the return type of a GCC
17145    builtin and then its argument prototype would still apply.  */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 char shl_load ();
17150 int
17151 main ()
17152 {
17153 return shl_load ();
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_link") 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17182          { ac_try='test -s conftest$ac_exeext'
17183   { (case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188   (eval "$ac_try") 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; }; then
17192   ac_cv_lib_dld_shl_load=yes
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197         ac_cv_lib_dld_shl_load=no
17198 fi
17199
17200 rm -f core conftest.err conftest.$ac_objext \
17201       conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_lib_save_LIBS
17203 fi
17204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17205 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17206 if test $ac_cv_lib_dld_shl_load = yes; then
17207   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17208 else
17209   { echo "$as_me:$LINENO: checking for dlopen" >&5
17210 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17211 if test "${ac_cv_func_dlopen+set}" = set; then
17212   echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214   cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h.  */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h.  */
17220 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17222 #define dlopen innocuous_dlopen
17223
17224 /* System header to define __stub macros and hopefully few prototypes,
17225     which can conflict with char dlopen (); below.
17226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17227     <limits.h> exists even on freestanding compilers.  */
17228
17229 #ifdef __STDC__
17230 # include <limits.h>
17231 #else
17232 # include <assert.h>
17233 #endif
17234
17235 #undef dlopen
17236
17237 /* Override any GCC internal prototype to avoid an error.
17238    Use char because int might match the return type of a GCC
17239    builtin and then its argument prototype would still apply.  */
17240 #ifdef __cplusplus
17241 extern "C"
17242 #endif
17243 char dlopen ();
17244 /* The GNU C library defines this for functions which it implements
17245     to always fail with ENOSYS.  Some functions are actually named
17246     something starting with __ and the normal name is an alias.  */
17247 #if defined __stub_dlopen || defined __stub___dlopen
17248 choke me
17249 #endif
17250
17251 int
17252 main ()
17253 {
17254 return dlopen ();
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_link") 2>conftest.er1
17267   ac_status=$?
17268   grep -v '^ *+' conftest.er1 >conftest.err
17269   rm -f conftest.er1
17270   cat conftest.err >&5
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } &&
17273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274   { (case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_try") 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; } &&
17283          { ac_try='test -s conftest$ac_exeext'
17284   { (case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289   (eval "$ac_try") 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; }; then
17293   ac_cv_func_dlopen=yes
17294 else
17295   echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298         ac_cv_func_dlopen=no
17299 fi
17300
17301 rm -f core conftest.err conftest.$ac_objext \
17302       conftest$ac_exeext conftest.$ac_ext
17303 fi
17304 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17306 if test $ac_cv_func_dlopen = yes; then
17307   lt_cv_dlopen="dlopen"
17308 else
17309   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17312   echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314   ac_check_lib_save_LIBS=$LIBS
17315 LIBS="-ldl  $LIBS"
17316 cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322
17323 /* Override any GCC internal prototype to avoid an error.
17324    Use char because int might match the return type of a GCC
17325    builtin and then its argument prototype would still apply.  */
17326 #ifdef __cplusplus
17327 extern "C"
17328 #endif
17329 char dlopen ();
17330 int
17331 main ()
17332 {
17333 return dlopen ();
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345   (eval "$ac_link") 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } &&
17352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17362          { ac_try='test -s conftest$ac_exeext'
17363   { (case "(($ac_try" in
17364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365   *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368   (eval "$ac_try") 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; }; then
17372   ac_cv_lib_dl_dlopen=yes
17373 else
17374   echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377         ac_cv_lib_dl_dlopen=no
17378 fi
17379
17380 rm -f core conftest.err conftest.$ac_objext \
17381       conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17383 fi
17384 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17385 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17386 if test $ac_cv_lib_dl_dlopen = yes; then
17387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17388 else
17389   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17390 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17391 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17392   echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394   ac_check_lib_save_LIBS=$LIBS
17395 LIBS="-lsvld  $LIBS"
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402
17403 /* Override any GCC internal prototype to avoid an error.
17404    Use char because int might match the return type of a GCC
17405    builtin and then its argument prototype would still apply.  */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char dlopen ();
17410 int
17411 main ()
17412 {
17413 return dlopen ();
17414   ;
17415   return 0;
17416 }
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_link") 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } &&
17432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433   { (case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_try") 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }; } &&
17442          { ac_try='test -s conftest$ac_exeext'
17443   { (case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_try") 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); }; }; then
17452   ac_cv_lib_svld_dlopen=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         ac_cv_lib_svld_dlopen=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext \
17461       conftest$ac_exeext conftest.$ac_ext
17462 LIBS=$ac_check_lib_save_LIBS
17463 fi
17464 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17465 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17466 if test $ac_cv_lib_svld_dlopen = yes; then
17467   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17468 else
17469   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17470 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17471 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   ac_check_lib_save_LIBS=$LIBS
17475 LIBS="-ldld  $LIBS"
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482
17483 /* Override any GCC internal prototype to avoid an error.
17484    Use char because int might match the return type of a GCC
17485    builtin and then its argument prototype would still apply.  */
17486 #ifdef __cplusplus
17487 extern "C"
17488 #endif
17489 char dld_link ();
17490 int
17491 main ()
17492 {
17493 return dld_link ();
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_link") 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } &&
17512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513   { (case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_try") 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; } &&
17522          { ac_try='test -s conftest$ac_exeext'
17523   { (case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_try") 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; }; then
17532   ac_cv_lib_dld_dld_link=yes
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537         ac_cv_lib_dld_dld_link=no
17538 fi
17539
17540 rm -f core conftest.err conftest.$ac_objext \
17541       conftest$ac_exeext conftest.$ac_ext
17542 LIBS=$ac_check_lib_save_LIBS
17543 fi
17544 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17545 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17546 if test $ac_cv_lib_dld_dld_link = yes; then
17547   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17548 fi
17549
17550
17551 fi
17552
17553
17554 fi
17555
17556
17557 fi
17558
17559
17560 fi
17561
17562
17563 fi
17564
17565     ;;
17566   esac
17567
17568   if test "x$lt_cv_dlopen" != xno; then
17569     enable_dlopen=yes
17570   else
17571     enable_dlopen=no
17572   fi
17573
17574   case $lt_cv_dlopen in
17575   dlopen)
17576     save_CPPFLAGS="$CPPFLAGS"
17577     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17578
17579     save_LDFLAGS="$LDFLAGS"
17580     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17581
17582     save_LIBS="$LIBS"
17583     LIBS="$lt_cv_dlopen_libs $LIBS"
17584
17585     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17586 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17587 if test "${lt_cv_dlopen_self+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590           if test "$cross_compiling" = yes; then :
17591   lt_cv_dlopen_self=cross
17592 else
17593   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17594   lt_status=$lt_dlunknown
17595   cat > conftest.$ac_ext <<EOF
17596 #line 17591 "configure"
17597 #include "confdefs.h"
17598
17599 #if HAVE_DLFCN_H
17600 #include <dlfcn.h>
17601 #endif
17602
17603 #include <stdio.h>
17604
17605 #ifdef RTLD_GLOBAL
17606 #  define LT_DLGLOBAL           RTLD_GLOBAL
17607 #else
17608 #  ifdef DL_GLOBAL
17609 #    define LT_DLGLOBAL         DL_GLOBAL
17610 #  else
17611 #    define LT_DLGLOBAL         0
17612 #  endif
17613 #endif
17614
17615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17616    find out it does not work in some platform. */
17617 #ifndef LT_DLLAZY_OR_NOW
17618 #  ifdef RTLD_LAZY
17619 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17620 #  else
17621 #    ifdef DL_LAZY
17622 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17623 #    else
17624 #      ifdef RTLD_NOW
17625 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17626 #      else
17627 #        ifdef DL_NOW
17628 #          define LT_DLLAZY_OR_NOW      DL_NOW
17629 #        else
17630 #          define LT_DLLAZY_OR_NOW      0
17631 #        endif
17632 #      endif
17633 #    endif
17634 #  endif
17635 #endif
17636
17637 #ifdef __cplusplus
17638 extern "C" void exit (int);
17639 #endif
17640
17641 void fnord() { int i=42;}
17642 int main ()
17643 {
17644   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17645   int status = $lt_dlunknown;
17646
17647   if (self)
17648     {
17649       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17650       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17651       /* dlclose (self); */
17652     }
17653   else
17654     puts (dlerror ());
17655
17656     exit (status);
17657 }
17658 EOF
17659   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660   (eval $ac_link) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17664     (./conftest; exit; ) >&5 2>/dev/null
17665     lt_status=$?
17666     case x$lt_status in
17667       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17668       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17669       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17670     esac
17671   else :
17672     # compilation failed
17673     lt_cv_dlopen_self=no
17674   fi
17675 fi
17676 rm -fr conftest*
17677
17678
17679 fi
17680 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17681 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17682
17683     if test "x$lt_cv_dlopen_self" = xyes; then
17684       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17685       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17686 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17687 if test "${lt_cv_dlopen_self_static+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690           if test "$cross_compiling" = yes; then :
17691   lt_cv_dlopen_self_static=cross
17692 else
17693   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17694   lt_status=$lt_dlunknown
17695   cat > conftest.$ac_ext <<EOF
17696 #line 17691 "configure"
17697 #include "confdefs.h"
17698
17699 #if HAVE_DLFCN_H
17700 #include <dlfcn.h>
17701 #endif
17702
17703 #include <stdio.h>
17704
17705 #ifdef RTLD_GLOBAL
17706 #  define LT_DLGLOBAL           RTLD_GLOBAL
17707 #else
17708 #  ifdef DL_GLOBAL
17709 #    define LT_DLGLOBAL         DL_GLOBAL
17710 #  else
17711 #    define LT_DLGLOBAL         0
17712 #  endif
17713 #endif
17714
17715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17716    find out it does not work in some platform. */
17717 #ifndef LT_DLLAZY_OR_NOW
17718 #  ifdef RTLD_LAZY
17719 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17720 #  else
17721 #    ifdef DL_LAZY
17722 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17723 #    else
17724 #      ifdef RTLD_NOW
17725 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17726 #      else
17727 #        ifdef DL_NOW
17728 #          define LT_DLLAZY_OR_NOW      DL_NOW
17729 #        else
17730 #          define LT_DLLAZY_OR_NOW      0
17731 #        endif
17732 #      endif
17733 #    endif
17734 #  endif
17735 #endif
17736
17737 #ifdef __cplusplus
17738 extern "C" void exit (int);
17739 #endif
17740
17741 void fnord() { int i=42;}
17742 int main ()
17743 {
17744   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17745   int status = $lt_dlunknown;
17746
17747   if (self)
17748     {
17749       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17750       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17751       /* dlclose (self); */
17752     }
17753   else
17754     puts (dlerror ());
17755
17756     exit (status);
17757 }
17758 EOF
17759   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760   (eval $ac_link) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17764     (./conftest; exit; ) >&5 2>/dev/null
17765     lt_status=$?
17766     case x$lt_status in
17767       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17768       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17769       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17770     esac
17771   else :
17772     # compilation failed
17773     lt_cv_dlopen_self_static=no
17774   fi
17775 fi
17776 rm -fr conftest*
17777
17778
17779 fi
17780 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17781 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17782     fi
17783
17784     CPPFLAGS="$save_CPPFLAGS"
17785     LDFLAGS="$save_LDFLAGS"
17786     LIBS="$save_LIBS"
17787     ;;
17788   esac
17789
17790   case $lt_cv_dlopen_self in
17791   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17792   *) enable_dlopen_self=unknown ;;
17793   esac
17794
17795   case $lt_cv_dlopen_self_static in
17796   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17797   *) enable_dlopen_self_static=unknown ;;
17798   esac
17799 fi
17800
17801
17802 # Report which library types will actually be built
17803 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17804 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17805 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17806 echo "${ECHO_T}$can_build_shared" >&6; }
17807
17808 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17809 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17810 test "$can_build_shared" = "no" && enable_shared=no
17811
17812 # On AIX, shared libraries and static libraries use the same namespace, and
17813 # are all built from PIC.
17814 case $host_os in
17815 aix3*)
17816   test "$enable_shared" = yes && enable_static=no
17817   if test -n "$RANLIB"; then
17818     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17819     postinstall_cmds='$RANLIB $lib'
17820   fi
17821   ;;
17822
17823 aix4* | aix5*)
17824   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17825     test "$enable_shared" = yes && enable_static=no
17826   fi
17827     ;;
17828 esac
17829 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17830 echo "${ECHO_T}$enable_shared" >&6; }
17831
17832 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17833 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17834 # Make sure either enable_shared or enable_static is yes.
17835 test "$enable_shared" = yes || enable_static=yes
17836 { echo "$as_me:$LINENO: result: $enable_static" >&5
17837 echo "${ECHO_T}$enable_static" >&6; }
17838
17839 # The else clause should only fire when bootstrapping the
17840 # libtool distribution, otherwise you forgot to ship ltmain.sh
17841 # with your package, and you will get complaints that there are
17842 # no rules to generate ltmain.sh.
17843 if test -f "$ltmain"; then
17844   # See if we are running on zsh, and set the options which allow our commands through
17845   # without removal of \ escapes.
17846   if test -n "${ZSH_VERSION+set}" ; then
17847     setopt NO_GLOB_SUBST
17848   fi
17849   # Now quote all the things that may contain metacharacters while being
17850   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17851   # variables and quote the copies for generation of the libtool script.
17852   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17853     SED SHELL STRIP \
17854     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17855     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17856     deplibs_check_method reload_flag reload_cmds need_locks \
17857     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17858     lt_cv_sys_global_symbol_to_c_name_address \
17859     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17860     old_postinstall_cmds old_postuninstall_cmds \
17861     compiler \
17862     CC \
17863     LD \
17864     lt_prog_compiler_wl \
17865     lt_prog_compiler_pic \
17866     lt_prog_compiler_static \
17867     lt_prog_compiler_no_builtin_flag \
17868     export_dynamic_flag_spec \
17869     thread_safe_flag_spec \
17870     whole_archive_flag_spec \
17871     enable_shared_with_static_runtimes \
17872     old_archive_cmds \
17873     old_archive_from_new_cmds \
17874     predep_objects \
17875     postdep_objects \
17876     predeps \
17877     postdeps \
17878     compiler_lib_search_path \
17879     archive_cmds \
17880     archive_expsym_cmds \
17881     postinstall_cmds \
17882     postuninstall_cmds \
17883     old_archive_from_expsyms_cmds \
17884     allow_undefined_flag \
17885     no_undefined_flag \
17886     export_symbols_cmds \
17887     hardcode_libdir_flag_spec \
17888     hardcode_libdir_flag_spec_ld \
17889     hardcode_libdir_separator \
17890     hardcode_automatic \
17891     module_cmds \
17892     module_expsym_cmds \
17893     lt_cv_prog_compiler_c_o \
17894     exclude_expsyms \
17895     include_expsyms; do
17896
17897     case $var in
17898     old_archive_cmds | \
17899     old_archive_from_new_cmds | \
17900     archive_cmds | \
17901     archive_expsym_cmds | \
17902     module_cmds | \
17903     module_expsym_cmds | \
17904     old_archive_from_expsyms_cmds | \
17905     export_symbols_cmds | \
17906     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17907     postinstall_cmds | postuninstall_cmds | \
17908     old_postinstall_cmds | old_postuninstall_cmds | \
17909     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17910       # Double-quote double-evaled strings.
17911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17912       ;;
17913     *)
17914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17915       ;;
17916     esac
17917   done
17918
17919   case $lt_echo in
17920   *'\$0 --fallback-echo"')
17921     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17922     ;;
17923   esac
17924
17925 cfgfile="${ofile}T"
17926   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17927   $rm -f "$cfgfile"
17928   { echo "$as_me:$LINENO: creating $ofile" >&5
17929 echo "$as_me: creating $ofile" >&6;}
17930
17931   cat <<__EOF__ >> "$cfgfile"
17932 #! $SHELL
17933
17934 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17935 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17936 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17937 #
17938 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17939 # Free Software Foundation, Inc.
17940 #
17941 # This file is part of GNU Libtool:
17942 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17943 #
17944 # This program is free software; you can redistribute it and/or modify
17945 # it under the terms of the GNU General Public License as published by
17946 # the Free Software Foundation; either version 2 of the License, or
17947 # (at your option) any later version.
17948 #
17949 # This program is distributed in the hope that it will be useful, but
17950 # WITHOUT ANY WARRANTY; without even the implied warranty of
17951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17952 # General Public License for more details.
17953 #
17954 # You should have received a copy of the GNU General Public License
17955 # along with this program; if not, write to the Free Software
17956 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17957 #
17958 # As a special exception to the GNU General Public License, if you
17959 # distribute this file as part of a program that contains a
17960 # configuration script generated by Autoconf, you may include it under
17961 # the same distribution terms that you use for the rest of that program.
17962
17963 # A sed program that does not truncate output.
17964 SED=$lt_SED
17965
17966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17967 Xsed="$SED -e 1s/^X//"
17968
17969 # The HP-UX ksh and POSIX shell print the target directory to stdout
17970 # if CDPATH is set.
17971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17972
17973 # The names of the tagged configurations supported by this script.
17974 available_tags=
17975
17976 # ### BEGIN LIBTOOL CONFIG
17977
17978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17979
17980 # Shell to use when invoking shell scripts.
17981 SHELL=$lt_SHELL
17982
17983 # Whether or not to build shared libraries.
17984 build_libtool_libs=$enable_shared
17985
17986 # Whether or not to build static libraries.
17987 build_old_libs=$enable_static
17988
17989 # Whether or not to add -lc for building shared libraries.
17990 build_libtool_need_lc=$archive_cmds_need_lc
17991
17992 # Whether or not to disallow shared libs when runtime libs are static
17993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17994
17995 # Whether or not to optimize for fast installation.
17996 fast_install=$enable_fast_install
17997
17998 # The host system.
17999 host_alias=$host_alias
18000 host=$host
18001 host_os=$host_os
18002
18003 # The build system.
18004 build_alias=$build_alias
18005 build=$build
18006 build_os=$build_os
18007
18008 # An echo program that does not interpret backslashes.
18009 echo=$lt_echo
18010
18011 # The archiver.
18012 AR=$lt_AR
18013 AR_FLAGS=$lt_AR_FLAGS
18014
18015 # A C compiler.
18016 LTCC=$lt_LTCC
18017
18018 # LTCC compiler flags.
18019 LTCFLAGS=$lt_LTCFLAGS
18020
18021 # A language-specific compiler.
18022 CC=$lt_compiler
18023
18024 # Is the compiler the GNU C compiler?
18025 with_gcc=$GCC
18026
18027 # An ERE matcher.
18028 EGREP=$lt_EGREP
18029
18030 # The linker used to build libraries.
18031 LD=$lt_LD
18032
18033 # Whether we need hard or soft links.
18034 LN_S=$lt_LN_S
18035
18036 # A BSD-compatible nm program.
18037 NM=$lt_NM
18038
18039 # A symbol stripping program
18040 STRIP=$lt_STRIP
18041
18042 # Used to examine libraries when file_magic_cmd begins "file"
18043 MAGIC_CMD=$MAGIC_CMD
18044
18045 # Used on cygwin: DLL creation program.
18046 DLLTOOL="$DLLTOOL"
18047
18048 # Used on cygwin: object dumper.
18049 OBJDUMP="$OBJDUMP"
18050
18051 # Used on cygwin: assembler.
18052 AS="$AS"
18053
18054 # The name of the directory that contains temporary libtool files.
18055 objdir=$objdir
18056
18057 # How to create reloadable object files.
18058 reload_flag=$lt_reload_flag
18059 reload_cmds=$lt_reload_cmds
18060
18061 # How to pass a linker flag through the compiler.
18062 wl=$lt_lt_prog_compiler_wl
18063
18064 # Object file suffix (normally "o").
18065 objext="$ac_objext"
18066
18067 # Old archive suffix (normally "a").
18068 libext="$libext"
18069
18070 # Shared library suffix (normally ".so").
18071 shrext_cmds='$shrext_cmds'
18072
18073 # Executable file suffix (normally "").
18074 exeext="$exeext"
18075
18076 # Additional compiler flags for building library objects.
18077 pic_flag=$lt_lt_prog_compiler_pic
18078 pic_mode=$pic_mode
18079
18080 # What is the maximum length of a command?
18081 max_cmd_len=$lt_cv_sys_max_cmd_len
18082
18083 # Does compiler simultaneously support -c and -o options?
18084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18085
18086 # Must we lock files when doing compilation?
18087 need_locks=$lt_need_locks
18088
18089 # Do we need the lib prefix for modules?
18090 need_lib_prefix=$need_lib_prefix
18091
18092 # Do we need a version for libraries?
18093 need_version=$need_version
18094
18095 # Whether dlopen is supported.
18096 dlopen_support=$enable_dlopen
18097
18098 # Whether dlopen of programs is supported.
18099 dlopen_self=$enable_dlopen_self
18100
18101 # Whether dlopen of statically linked programs is supported.
18102 dlopen_self_static=$enable_dlopen_self_static
18103
18104 # Compiler flag to prevent dynamic linking.
18105 link_static_flag=$lt_lt_prog_compiler_static
18106
18107 # Compiler flag to turn off builtin functions.
18108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18109
18110 # Compiler flag to allow reflexive dlopens.
18111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18112
18113 # Compiler flag to generate shared objects directly from archives.
18114 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18115
18116 # Compiler flag to generate thread-safe objects.
18117 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18118
18119 # Library versioning type.
18120 version_type=$version_type
18121
18122 # Format of library name prefix.
18123 libname_spec=$lt_libname_spec
18124
18125 # List of archive names.  First name is the real one, the rest are links.
18126 # The last name is the one that the linker finds with -lNAME.
18127 library_names_spec=$lt_library_names_spec
18128
18129 # The coded name of the library, if different from the real name.
18130 soname_spec=$lt_soname_spec
18131
18132 # Commands used to build and install an old-style archive.
18133 RANLIB=$lt_RANLIB
18134 old_archive_cmds=$lt_old_archive_cmds
18135 old_postinstall_cmds=$lt_old_postinstall_cmds
18136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18137
18138 # Create an old-style archive from a shared archive.
18139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18140
18141 # Create a temporary old-style archive to link instead of a shared archive.
18142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18143
18144 # Commands used to build and install a shared archive.
18145 archive_cmds=$lt_archive_cmds
18146 archive_expsym_cmds=$lt_archive_expsym_cmds
18147 postinstall_cmds=$lt_postinstall_cmds
18148 postuninstall_cmds=$lt_postuninstall_cmds
18149
18150 # Commands used to build a loadable module (assumed same as above if empty)
18151 module_cmds=$lt_module_cmds
18152 module_expsym_cmds=$lt_module_expsym_cmds
18153
18154 # Commands to strip libraries.
18155 old_striplib=$lt_old_striplib
18156 striplib=$lt_striplib
18157
18158 # Dependencies to place before the objects being linked to create a
18159 # shared library.
18160 predep_objects=$lt_predep_objects
18161
18162 # Dependencies to place after the objects being linked to create a
18163 # shared library.
18164 postdep_objects=$lt_postdep_objects
18165
18166 # Dependencies to place before the objects being linked to create a
18167 # shared library.
18168 predeps=$lt_predeps
18169
18170 # Dependencies to place after the objects being linked to create a
18171 # shared library.
18172 postdeps=$lt_postdeps
18173
18174 # The library search path used internally by the compiler when linking
18175 # a shared library.
18176 compiler_lib_search_path=$lt_compiler_lib_search_path
18177
18178 # Method to check whether dependent libraries are shared objects.
18179 deplibs_check_method=$lt_deplibs_check_method
18180
18181 # Command to use when deplibs_check_method == file_magic.
18182 file_magic_cmd=$lt_file_magic_cmd
18183
18184 # Flag that allows shared libraries with undefined symbols to be built.
18185 allow_undefined_flag=$lt_allow_undefined_flag
18186
18187 # Flag that forces no undefined symbols.
18188 no_undefined_flag=$lt_no_undefined_flag
18189
18190 # Commands used to finish a libtool library installation in a directory.
18191 finish_cmds=$lt_finish_cmds
18192
18193 # Same as above, but a single script fragment to be evaled but not shown.
18194 finish_eval=$lt_finish_eval
18195
18196 # Take the output of nm and produce a listing of raw symbols and C names.
18197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18198
18199 # Transform the output of nm in a proper C declaration
18200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18201
18202 # Transform the output of nm in a C name address pair
18203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18204
18205 # This is the shared library runtime path variable.
18206 runpath_var=$runpath_var
18207
18208 # This is the shared library path variable.
18209 shlibpath_var=$shlibpath_var
18210
18211 # Is shlibpath searched before the hard-coded library search path?
18212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18213
18214 # How to hardcode a shared library path into an executable.
18215 hardcode_action=$hardcode_action
18216
18217 # Whether we should hardcode library paths into libraries.
18218 hardcode_into_libs=$hardcode_into_libs
18219
18220 # Flag to hardcode \$libdir into a binary during linking.
18221 # This must work even if \$libdir does not exist.
18222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18223
18224 # If ld is used when linking, flag to hardcode \$libdir into
18225 # a binary during linking. This must work even if \$libdir does
18226 # not exist.
18227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18228
18229 # Whether we need a single -rpath flag with a separated argument.
18230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18231
18232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18233 # resulting binary.
18234 hardcode_direct=$hardcode_direct
18235
18236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18237 # resulting binary.
18238 hardcode_minus_L=$hardcode_minus_L
18239
18240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18241 # the resulting binary.
18242 hardcode_shlibpath_var=$hardcode_shlibpath_var
18243
18244 # Set to yes if building a shared library automatically hardcodes DIR into the library
18245 # and all subsequent libraries and executables linked against it.
18246 hardcode_automatic=$hardcode_automatic
18247
18248 # Variables whose values should be saved in libtool wrapper scripts and
18249 # restored at relink time.
18250 variables_saved_for_relink="$variables_saved_for_relink"
18251
18252 # Whether libtool must link a program against all its dependency libraries.
18253 link_all_deplibs=$link_all_deplibs
18254
18255 # Compile-time system search path for libraries
18256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18257
18258 # Run-time system search path for libraries
18259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18260
18261 # Fix the shell variable \$srcfile for the compiler.
18262 fix_srcfile_path="$fix_srcfile_path"
18263
18264 # Set to yes if exported symbols are required.
18265 always_export_symbols=$always_export_symbols
18266
18267 # The commands to list exported symbols.
18268 export_symbols_cmds=$lt_export_symbols_cmds
18269
18270 # The commands to extract the exported symbol list from a shared archive.
18271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18272
18273 # Symbols that should not be listed in the preloaded symbols.
18274 exclude_expsyms=$lt_exclude_expsyms
18275
18276 # Symbols that must always be exported.
18277 include_expsyms=$lt_include_expsyms
18278
18279 # ### END LIBTOOL CONFIG
18280
18281 __EOF__
18282
18283
18284   case $host_os in
18285   aix3*)
18286     cat <<\EOF >> "$cfgfile"
18287
18288 # AIX sometimes has problems with the GCC collect2 program.  For some
18289 # reason, if we set the COLLECT_NAMES environment variable, the problems
18290 # vanish in a puff of smoke.
18291 if test "X${COLLECT_NAMES+set}" != Xset; then
18292   COLLECT_NAMES=
18293   export COLLECT_NAMES
18294 fi
18295 EOF
18296     ;;
18297   esac
18298
18299   # We use sed instead of cat because bash on DJGPP gets confused if
18300   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18301   # text mode, it properly converts lines to CR/LF.  This bash problem
18302   # is reportedly fixed, but why not run on old versions too?
18303   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18304
18305   mv -f "$cfgfile" "$ofile" || \
18306     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18307   chmod +x "$ofile"
18308
18309 else
18310   # If there is no Makefile yet, we rely on a make rule to execute
18311   # `config.status --recheck' to rerun these tests and create the
18312   # libtool script then.
18313   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18314   if test -f "$ltmain_in"; then
18315     test -f Makefile && make "$ltmain"
18316   fi
18317 fi
18318
18319
18320 ac_ext=c
18321 ac_cpp='$CPP $CPPFLAGS'
18322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18325
18326 CC="$lt_save_CC"
18327
18328
18329 # Check whether --with-tags was given.
18330 if test "${with_tags+set}" = set; then
18331   withval=$with_tags; tagnames="$withval"
18332 fi
18333
18334
18335 if test -f "$ltmain" && test -n "$tagnames"; then
18336   if test ! -f "${ofile}"; then
18337     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18338 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18339   fi
18340
18341   if test -z "$LTCC"; then
18342     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18343     if test -z "$LTCC"; then
18344       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18345 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18346     else
18347       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18348 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18349     fi
18350   fi
18351   if test -z "$LTCFLAGS"; then
18352     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18353   fi
18354
18355   # Extract list of available tagged configurations in $ofile.
18356   # Note that this assumes the entire list is on one line.
18357   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18358
18359   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18360   for tagname in $tagnames; do
18361     IFS="$lt_save_ifs"
18362     # Check whether tagname contains only valid characters
18363     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18364     "") ;;
18365     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18366 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18367    { (exit 1); exit 1; }; }
18368         ;;
18369     esac
18370
18371     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18372     then
18373       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18374 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18375    { (exit 1); exit 1; }; }
18376     fi
18377
18378     # Update the list of available tags.
18379     if test -n "$tagname"; then
18380       echo appending configuration tag \"$tagname\" to $ofile
18381
18382       case $tagname in
18383       CXX)
18384         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18385             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18386             (test "X$CXX" != "Xg++"))) ; then
18387           ac_ext=cpp
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18392
18393
18394
18395
18396 archive_cmds_need_lc_CXX=no
18397 allow_undefined_flag_CXX=
18398 always_export_symbols_CXX=no
18399 archive_expsym_cmds_CXX=
18400 export_dynamic_flag_spec_CXX=
18401 hardcode_direct_CXX=no
18402 hardcode_libdir_flag_spec_CXX=
18403 hardcode_libdir_flag_spec_ld_CXX=
18404 hardcode_libdir_separator_CXX=
18405 hardcode_minus_L_CXX=no
18406 hardcode_shlibpath_var_CXX=unsupported
18407 hardcode_automatic_CXX=no
18408 module_cmds_CXX=
18409 module_expsym_cmds_CXX=
18410 link_all_deplibs_CXX=unknown
18411 old_archive_cmds_CXX=$old_archive_cmds
18412 no_undefined_flag_CXX=
18413 whole_archive_flag_spec_CXX=
18414 enable_shared_with_static_runtimes_CXX=no
18415
18416 # Dependencies to place before and after the object being linked:
18417 predep_objects_CXX=
18418 postdep_objects_CXX=
18419 predeps_CXX=
18420 postdeps_CXX=
18421 compiler_lib_search_path_CXX=
18422
18423 # Source file extension for C++ test sources.
18424 ac_ext=cpp
18425
18426 # Object file extension for compiled C++ test sources.
18427 objext=o
18428 objext_CXX=$objext
18429
18430 # Code to be used in simple compile tests
18431 lt_simple_compile_test_code="int some_variable = 0;\n"
18432
18433 # Code to be used in simple link tests
18434 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18435
18436 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18437
18438 # If no C compiler was specified, use CC.
18439 LTCC=${LTCC-"$CC"}
18440
18441 # If no C compiler flags were specified, use CFLAGS.
18442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18443
18444 # Allow CC to be a program name with arguments.
18445 compiler=$CC
18446
18447
18448 # save warnings/boilerplate of simple test code
18449 ac_outfile=conftest.$ac_objext
18450 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18452 _lt_compiler_boilerplate=`cat conftest.err`
18453 $rm conftest*
18454
18455 ac_outfile=conftest.$ac_objext
18456 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458 _lt_linker_boilerplate=`cat conftest.err`
18459 $rm conftest*
18460
18461
18462 # Allow CC to be a program name with arguments.
18463 lt_save_CC=$CC
18464 lt_save_LD=$LD
18465 lt_save_GCC=$GCC
18466 GCC=$GXX
18467 lt_save_with_gnu_ld=$with_gnu_ld
18468 lt_save_path_LD=$lt_cv_path_LD
18469 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18470   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18471 else
18472   $as_unset lt_cv_prog_gnu_ld
18473 fi
18474 if test -n "${lt_cv_path_LDCXX+set}"; then
18475   lt_cv_path_LD=$lt_cv_path_LDCXX
18476 else
18477   $as_unset lt_cv_path_LD
18478 fi
18479 test -z "${LDCXX+set}" || LD=$LDCXX
18480 CC=${CXX-"c++"}
18481 compiler=$CC
18482 compiler_CXX=$CC
18483 for cc_temp in $compiler""; do
18484   case $cc_temp in
18485     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18486     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18487     \-*) ;;
18488     *) break;;
18489   esac
18490 done
18491 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18492
18493
18494 # We don't want -fno-exception wen compiling C++ code, so set the
18495 # no_builtin_flag separately
18496 if test "$GXX" = yes; then
18497   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18498 else
18499   lt_prog_compiler_no_builtin_flag_CXX=
18500 fi
18501
18502 if test "$GXX" = yes; then
18503   # Set up default GNU C++ configuration
18504
18505
18506 # Check whether --with-gnu-ld was given.
18507 if test "${with_gnu_ld+set}" = set; then
18508   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18509 else
18510   with_gnu_ld=no
18511 fi
18512
18513 ac_prog=ld
18514 if test "$GCC" = yes; then
18515   # Check if gcc -print-prog-name=ld gives a path.
18516   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18517 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18518   case $host in
18519   *-*-mingw*)
18520     # gcc leaves a trailing carriage return which upsets mingw
18521     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18522   *)
18523     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18524   esac
18525   case $ac_prog in
18526     # Accept absolute paths.
18527     [\\/]* | ?:[\\/]*)
18528       re_direlt='/[^/][^/]*/\.\./'
18529       # Canonicalize the pathname of ld
18530       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18531       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18532         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18533       done
18534       test -z "$LD" && LD="$ac_prog"
18535       ;;
18536   "")
18537     # If it fails, then pretend we aren't using GCC.
18538     ac_prog=ld
18539     ;;
18540   *)
18541     # If it is relative, then search for the first ld in PATH.
18542     with_gnu_ld=unknown
18543     ;;
18544   esac
18545 elif test "$with_gnu_ld" = yes; then
18546   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18547 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18548 else
18549   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18550 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18551 fi
18552 if test "${lt_cv_path_LD+set}" = set; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   if test -z "$LD"; then
18556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18557   for ac_dir in $PATH; do
18558     IFS="$lt_save_ifs"
18559     test -z "$ac_dir" && ac_dir=.
18560     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18561       lt_cv_path_LD="$ac_dir/$ac_prog"
18562       # Check to see if the program is GNU ld.  I'd rather use --version,
18563       # but apparently some variants of GNU ld only accept -v.
18564       # Break only if it was the GNU/non-GNU ld that we prefer.
18565       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18566       *GNU* | *'with BFD'*)
18567         test "$with_gnu_ld" != no && break
18568         ;;
18569       *)
18570         test "$with_gnu_ld" != yes && break
18571         ;;
18572       esac
18573     fi
18574   done
18575   IFS="$lt_save_ifs"
18576 else
18577   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18578 fi
18579 fi
18580
18581 LD="$lt_cv_path_LD"
18582 if test -n "$LD"; then
18583   { echo "$as_me:$LINENO: result: $LD" >&5
18584 echo "${ECHO_T}$LD" >&6; }
18585 else
18586   { echo "$as_me:$LINENO: result: no" >&5
18587 echo "${ECHO_T}no" >&6; }
18588 fi
18589 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18590 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18591    { (exit 1); exit 1; }; }
18592 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18593 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18594 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18595   echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18598 case `$LD -v 2>&1 </dev/null` in
18599 *GNU* | *'with BFD'*)
18600   lt_cv_prog_gnu_ld=yes
18601   ;;
18602 *)
18603   lt_cv_prog_gnu_ld=no
18604   ;;
18605 esac
18606 fi
18607 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18608 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18609 with_gnu_ld=$lt_cv_prog_gnu_ld
18610
18611
18612
18613   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18614   # archiving commands below assume that GNU ld is being used.
18615   if test "$with_gnu_ld" = yes; then
18616     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18617     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'
18618
18619     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18620     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18621
18622     # If archive_cmds runs LD, not CC, wlarc should be empty
18623     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18624     #     investigate it a little bit more. (MM)
18625     wlarc='${wl}'
18626
18627     # ancient GNU ld didn't support --whole-archive et. al.
18628     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18629         grep 'no-whole-archive' > /dev/null; then
18630       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18631     else
18632       whole_archive_flag_spec_CXX=
18633     fi
18634   else
18635     with_gnu_ld=no
18636     wlarc=
18637
18638     # A generic and very simple default shared library creation
18639     # command for GNU C++ for the case where it uses the native
18640     # linker, instead of GNU ld.  If possible, this setting should
18641     # overridden to take advantage of the native linker features on
18642     # the platform it is being used on.
18643     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18644   fi
18645
18646   # Commands to make compiler produce verbose output that lists
18647   # what "hidden" libraries, object files and flags are used when
18648   # linking a shared library.
18649   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18650
18651 else
18652   GXX=no
18653   with_gnu_ld=no
18654   wlarc=
18655 fi
18656
18657 # PORTME: fill in a description of your system's C++ link characteristics
18658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18660 ld_shlibs_CXX=yes
18661 case $host_os in
18662   aix3*)
18663     # FIXME: insert proper C++ library support
18664     ld_shlibs_CXX=no
18665     ;;
18666   aix4* | aix5*)
18667     if test "$host_cpu" = ia64; then
18668       # On IA64, the linker does run time linking by default, so we don't
18669       # have to do anything special.
18670       aix_use_runtimelinking=no
18671       exp_sym_flag='-Bexport'
18672       no_entry_flag=""
18673     else
18674       aix_use_runtimelinking=no
18675
18676       # Test if we are trying to use run time linking or normal
18677       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18678       # need to do runtime linking.
18679       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18680         for ld_flag in $LDFLAGS; do
18681           case $ld_flag in
18682           *-brtl*)
18683             aix_use_runtimelinking=yes
18684             break
18685             ;;
18686           esac
18687         done
18688         ;;
18689       esac
18690
18691       exp_sym_flag='-bexport'
18692       no_entry_flag='-bnoentry'
18693     fi
18694
18695     # When large executables or shared objects are built, AIX ld can
18696     # have problems creating the table of contents.  If linking a library
18697     # or program results in "error TOC overflow" add -mminimal-toc to
18698     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18699     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18700
18701     archive_cmds_CXX=''
18702     hardcode_direct_CXX=yes
18703     hardcode_libdir_separator_CXX=':'
18704     link_all_deplibs_CXX=yes
18705
18706     if test "$GXX" = yes; then
18707       case $host_os in aix4.[012]|aix4.[012].*)
18708       # We only want to do this on AIX 4.2 and lower, the check
18709       # below for broken collect2 doesn't work under 4.3+
18710         collect2name=`${CC} -print-prog-name=collect2`
18711         if test -f "$collect2name" && \
18712            strings "$collect2name" | grep resolve_lib_name >/dev/null
18713         then
18714           # We have reworked collect2
18715           hardcode_direct_CXX=yes
18716         else
18717           # We have old collect2
18718           hardcode_direct_CXX=unsupported
18719           # It fails to find uninstalled libraries when the uninstalled
18720           # path is not listed in the libpath.  Setting hardcode_minus_L
18721           # to unsupported forces relinking
18722           hardcode_minus_L_CXX=yes
18723           hardcode_libdir_flag_spec_CXX='-L$libdir'
18724           hardcode_libdir_separator_CXX=
18725         fi
18726         ;;
18727       esac
18728       shared_flag='-shared'
18729       if test "$aix_use_runtimelinking" = yes; then
18730         shared_flag="$shared_flag "'${wl}-G'
18731       fi
18732     else
18733       # not using gcc
18734       if test "$host_cpu" = ia64; then
18735         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18736         # chokes on -Wl,-G. The following line is correct:
18737         shared_flag='-G'
18738       else
18739         if test "$aix_use_runtimelinking" = yes; then
18740           shared_flag='${wl}-G'
18741         else
18742           shared_flag='${wl}-bM:SRE'
18743         fi
18744       fi
18745     fi
18746
18747     # It seems that -bexpall does not export symbols beginning with
18748     # underscore (_), so it is better to generate a list of symbols to export.
18749     always_export_symbols_CXX=yes
18750     if test "$aix_use_runtimelinking" = yes; then
18751       # Warning - without using the other runtime loading flags (-brtl),
18752       # -berok will link without error, but may produce a broken library.
18753       allow_undefined_flag_CXX='-berok'
18754       # Determine the default libpath from the value encoded in an empty executable.
18755       cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761
18762 int
18763 main ()
18764 {
18765
18766   ;
18767   return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_link") 2>conftest.er1
18778   ac_status=$?
18779   grep -v '^ *+' conftest.er1 >conftest.err
18780   rm -f conftest.er1
18781   cat conftest.err >&5
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } &&
18784          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18785   { (case "(($ac_try" in
18786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787   *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790   (eval "$ac_try") 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; } &&
18794          { ac_try='test -s conftest$ac_exeext'
18795   { (case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_try") 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804
18805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18806 }'`
18807 # Check for a 64-bit object if we didn't find anything.
18808 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; }
18809 }'`; fi
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18820
18821       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18822
18823       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"
18824      else
18825       if test "$host_cpu" = ia64; then
18826         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18827         allow_undefined_flag_CXX="-z nodefs"
18828         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"
18829       else
18830         # Determine the default libpath from the value encoded in an empty executable.
18831         cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837
18838 int
18839 main ()
18840 {
18841
18842   ;
18843   return 0;
18844 }
18845 _ACEOF
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (ac_try="$ac_link"
18848 case "(($ac_try" in
18849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850   *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853   (eval "$ac_link") 2>conftest.er1
18854   ac_status=$?
18855   grep -v '^ *+' conftest.er1 >conftest.err
18856   rm -f conftest.er1
18857   cat conftest.err >&5
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); } &&
18860          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18861   { (case "(($ac_try" in
18862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863   *) ac_try_echo=$ac_try;;
18864 esac
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866   (eval "$ac_try") 2>&5
18867   ac_status=$?
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); }; } &&
18870          { ac_try='test -s conftest$ac_exeext'
18871   { (case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_try") 2>&5
18877   ac_status=$?
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); }; }; then
18880
18881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18882 }'`
18883 # Check for a 64-bit object if we didn't find anything.
18884 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; }
18885 }'`; fi
18886 else
18887   echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18889
18890
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext \
18894       conftest$ac_exeext conftest.$ac_ext
18895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18896
18897         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18898         # Warning - without using the other run time loading flags,
18899         # -berok will link without error, but may produce a broken library.
18900         no_undefined_flag_CXX=' ${wl}-bernotok'
18901         allow_undefined_flag_CXX=' ${wl}-berok'
18902         # Exported symbols can be pulled into shared objects from archives
18903         whole_archive_flag_spec_CXX='$convenience'
18904         archive_cmds_need_lc_CXX=yes
18905         # This is similar to how AIX traditionally builds its shared libraries.
18906         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'
18907       fi
18908     fi
18909     ;;
18910
18911   beos*)
18912     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18913       allow_undefined_flag_CXX=unsupported
18914       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18915       # support --undefined.  This deserves some investigation.  FIXME
18916       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917     else
18918       ld_shlibs_CXX=no
18919     fi
18920     ;;
18921
18922   chorus*)
18923     case $cc_basename in
18924       *)
18925         # FIXME: insert proper C++ library support
18926         ld_shlibs_CXX=no
18927         ;;
18928     esac
18929     ;;
18930
18931   cygwin* | mingw* | pw32*)
18932     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18933     # as there is no search path for DLLs.
18934     hardcode_libdir_flag_spec_CXX='-L$libdir'
18935     allow_undefined_flag_CXX=unsupported
18936     always_export_symbols_CXX=no
18937     enable_shared_with_static_runtimes_CXX=yes
18938
18939     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18940       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'
18941       # If the export-symbols file already is a .def file (1st line
18942       # is EXPORTS), use it as is; otherwise, prepend...
18943       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18944         cp $export_symbols $output_objdir/$soname.def;
18945       else
18946         echo EXPORTS > $output_objdir/$soname.def;
18947         cat $export_symbols >> $output_objdir/$soname.def;
18948       fi~
18949       $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'
18950     else
18951       ld_shlibs_CXX=no
18952     fi
18953   ;;
18954       darwin* | rhapsody*)
18955         case $host_os in
18956         rhapsody* | darwin1.[012])
18957          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18958          ;;
18959        *) # Darwin 1.3 on
18960          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18961            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18962          else
18963            case ${MACOSX_DEPLOYMENT_TARGET} in
18964              10.[012])
18965                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18966                ;;
18967              10.*)
18968                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18969                ;;
18970            esac
18971          fi
18972          ;;
18973         esac
18974       archive_cmds_need_lc_CXX=no
18975       hardcode_direct_CXX=no
18976       hardcode_automatic_CXX=yes
18977       hardcode_shlibpath_var_CXX=unsupported
18978       whole_archive_flag_spec_CXX=''
18979       link_all_deplibs_CXX=yes
18980
18981     if test "$GXX" = yes ; then
18982       lt_int_apple_cc_single_mod=no
18983       output_verbose_link_cmd='echo'
18984       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18985        lt_int_apple_cc_single_mod=yes
18986       fi
18987       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18988        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18989       else
18990           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'
18991         fi
18992         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18993         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18994           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18995             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}'
18996           else
18997             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}'
18998           fi
18999             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}'
19000       else
19001       case $cc_basename in
19002         xlc*)
19003          output_verbose_link_cmd='echo'
19004           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'
19005           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19006           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19007           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}'
19008           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}'
19009           ;;
19010        *)
19011          ld_shlibs_CXX=no
19012           ;;
19013       esac
19014       fi
19015         ;;
19016
19017   dgux*)
19018     case $cc_basename in
19019       ec++*)
19020         # FIXME: insert proper C++ library support
19021         ld_shlibs_CXX=no
19022         ;;
19023       ghcx*)
19024         # Green Hills C++ Compiler
19025         # FIXME: insert proper C++ library support
19026         ld_shlibs_CXX=no
19027         ;;
19028       *)
19029         # FIXME: insert proper C++ library support
19030         ld_shlibs_CXX=no
19031         ;;
19032     esac
19033     ;;
19034   freebsd[12]*)
19035     # C++ shared libraries reported to be fairly broken before switch to ELF
19036     ld_shlibs_CXX=no
19037     ;;
19038   freebsd-elf*)
19039     archive_cmds_need_lc_CXX=no
19040     ;;
19041   freebsd* | kfreebsd*-gnu | dragonfly*)
19042     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19043     # conventions
19044     ld_shlibs_CXX=yes
19045     ;;
19046   gnu*)
19047     ;;
19048   hpux9*)
19049     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19050     hardcode_libdir_separator_CXX=:
19051     export_dynamic_flag_spec_CXX='${wl}-E'
19052     hardcode_direct_CXX=yes
19053     hardcode_minus_L_CXX=yes # Not in the search PATH,
19054                                 # but as the default
19055                                 # location of the library.
19056
19057     case $cc_basename in
19058     CC*)
19059       # FIXME: insert proper C++ library support
19060       ld_shlibs_CXX=no
19061       ;;
19062     aCC*)
19063       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'
19064       # Commands to make compiler produce verbose output that lists
19065       # what "hidden" libraries, object files and flags are used when
19066       # linking a shared library.
19067       #
19068       # There doesn't appear to be a way to prevent this compiler from
19069       # explicitly linking system object files so we need to strip them
19070       # from the output so that they don't get included in the library
19071       # dependencies.
19072       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'
19073       ;;
19074     *)
19075       if test "$GXX" = yes; then
19076         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'
19077       else
19078         # FIXME: insert proper C++ library support
19079         ld_shlibs_CXX=no
19080       fi
19081       ;;
19082     esac
19083     ;;
19084   hpux10*|hpux11*)
19085     if test $with_gnu_ld = no; then
19086       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19087       hardcode_libdir_separator_CXX=:
19088
19089       case $host_cpu in
19090       hppa*64*|ia64*)
19091         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19092         ;;
19093       *)
19094         export_dynamic_flag_spec_CXX='${wl}-E'
19095         ;;
19096       esac
19097     fi
19098     case $host_cpu in
19099     hppa*64*|ia64*)
19100       hardcode_direct_CXX=no
19101       hardcode_shlibpath_var_CXX=no
19102       ;;
19103     *)
19104       hardcode_direct_CXX=yes
19105       hardcode_minus_L_CXX=yes # Not in the search PATH,
19106                                               # but as the default
19107                                               # location of the library.
19108       ;;
19109     esac
19110
19111     case $cc_basename in
19112       CC*)
19113         # FIXME: insert proper C++ library support
19114         ld_shlibs_CXX=no
19115         ;;
19116       aCC*)
19117         case $host_cpu in
19118         hppa*64*)
19119           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19120           ;;
19121         ia64*)
19122           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19123           ;;
19124         *)
19125           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126           ;;
19127         esac
19128         # Commands to make compiler produce verbose output that lists
19129         # what "hidden" libraries, object files and flags are used when
19130         # linking a shared library.
19131         #
19132         # There doesn't appear to be a way to prevent this compiler from
19133         # explicitly linking system object files so we need to strip them
19134         # from the output so that they don't get included in the library
19135         # dependencies.
19136         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'
19137         ;;
19138       *)
19139         if test "$GXX" = yes; then
19140           if test $with_gnu_ld = no; then
19141             case $host_cpu in
19142             hppa*64*)
19143               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144               ;;
19145             ia64*)
19146               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19147               ;;
19148             *)
19149               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'
19150               ;;
19151             esac
19152           fi
19153         else
19154           # FIXME: insert proper C++ library support
19155           ld_shlibs_CXX=no
19156         fi
19157         ;;
19158     esac
19159     ;;
19160   interix3*)
19161     hardcode_direct_CXX=no
19162     hardcode_shlibpath_var_CXX=no
19163     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164     export_dynamic_flag_spec_CXX='${wl}-E'
19165     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19166     # Instead, shared libraries are loaded at an image base (0x10000000 by
19167     # default) and relocated if they conflict, which is a slow very memory
19168     # consuming and fragmenting process.  To avoid this, we pick a random,
19169     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19170     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19171     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'
19172     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'
19173     ;;
19174   irix5* | irix6*)
19175     case $cc_basename in
19176       CC*)
19177         # SGI C++
19178         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'
19179
19180         # Archives containing C++ object files must be created using
19181         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19182         # necessary to make sure instantiated templates are included
19183         # in the archive.
19184         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19185         ;;
19186       *)
19187         if test "$GXX" = yes; then
19188           if test "$with_gnu_ld" = no; then
19189             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'
19190           else
19191             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'
19192           fi
19193         fi
19194         link_all_deplibs_CXX=yes
19195         ;;
19196     esac
19197     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19198     hardcode_libdir_separator_CXX=:
19199     ;;
19200   linux*)
19201     case $cc_basename in
19202       KCC*)
19203         # Kuck and Associates, Inc. (KAI) C++ Compiler
19204
19205         # KCC will only create a shared library if the output file
19206         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19207         # to its proper name (with version) after linking.
19208         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'
19209         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'
19210         # Commands to make compiler produce verbose output that lists
19211         # what "hidden" libraries, object files and flags are used when
19212         # linking a shared library.
19213         #
19214         # There doesn't appear to be a way to prevent this compiler from
19215         # explicitly linking system object files so we need to strip them
19216         # from the output so that they don't get included in the library
19217         # dependencies.
19218         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'
19219
19220         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19221         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19222
19223         # Archives containing C++ object files must be created using
19224         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19225         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19226         ;;
19227       icpc*)
19228         # Intel C++
19229         with_gnu_ld=yes
19230         # version 8.0 and above of icpc choke on multiply defined symbols
19231         # if we add $predep_objects and $postdep_objects, however 7.1 and
19232         # earlier do not add the objects themselves.
19233         case `$CC -V 2>&1` in
19234         *"Version 7."*)
19235           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236           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'
19237           ;;
19238         *)  # Version 8.0 or newer
19239           tmp_idyn=
19240           case $host_cpu in
19241             ia64*) tmp_idyn=' -i_dynamic';;
19242           esac
19243           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244           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'
19245           ;;
19246         esac
19247         archive_cmds_need_lc_CXX=no
19248         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19250         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19251         ;;
19252       pgCC*)
19253         # Portland Group C++ compiler
19254         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255         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'
19256
19257         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19258         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19259         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'
19260         ;;
19261       cxx*)
19262         # Compaq C++
19263         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19264         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'
19265
19266         runpath_var=LD_RUN_PATH
19267         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19268         hardcode_libdir_separator_CXX=:
19269
19270         # Commands to make compiler produce verbose output that lists
19271         # what "hidden" libraries, object files and flags are used when
19272         # linking a shared library.
19273         #
19274         # There doesn't appear to be a way to prevent this compiler from
19275         # explicitly linking system object files so we need to strip them
19276         # from the output so that they don't get included in the library
19277         # dependencies.
19278         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'
19279         ;;
19280     esac
19281     ;;
19282   lynxos*)
19283     # FIXME: insert proper C++ library support
19284     ld_shlibs_CXX=no
19285     ;;
19286   m88k*)
19287     # FIXME: insert proper C++ library support
19288     ld_shlibs_CXX=no
19289     ;;
19290   mvs*)
19291     case $cc_basename in
19292       cxx*)
19293         # FIXME: insert proper C++ library support
19294         ld_shlibs_CXX=no
19295         ;;
19296       *)
19297         # FIXME: insert proper C++ library support
19298         ld_shlibs_CXX=no
19299         ;;
19300     esac
19301     ;;
19302   netbsd*)
19303     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19304       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19305       wlarc=
19306       hardcode_libdir_flag_spec_CXX='-R$libdir'
19307       hardcode_direct_CXX=yes
19308       hardcode_shlibpath_var_CXX=no
19309     fi
19310     # Workaround some broken pre-1.5 toolchains
19311     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19312     ;;
19313   openbsd2*)
19314     # C++ shared libraries are fairly broken
19315     ld_shlibs_CXX=no
19316     ;;
19317   openbsd*)
19318     hardcode_direct_CXX=yes
19319     hardcode_shlibpath_var_CXX=no
19320     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19321     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19322     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19323       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19324       export_dynamic_flag_spec_CXX='${wl}-E'
19325       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19326     fi
19327     output_verbose_link_cmd='echo'
19328     ;;
19329   osf3*)
19330     case $cc_basename in
19331       KCC*)
19332         # Kuck and Associates, Inc. (KAI) C++ Compiler
19333
19334         # KCC will only create a shared library if the output file
19335         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19336         # to its proper name (with version) after linking.
19337         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19338
19339         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19340         hardcode_libdir_separator_CXX=:
19341
19342         # Archives containing C++ object files must be created using
19343         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19344         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19345
19346         ;;
19347       RCC*)
19348         # Rational C++ 2.4.1
19349         # FIXME: insert proper C++ library support
19350         ld_shlibs_CXX=no
19351         ;;
19352       cxx*)
19353         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19354         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'
19355
19356         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19357         hardcode_libdir_separator_CXX=:
19358
19359         # Commands to make compiler produce verbose output that lists
19360         # what "hidden" libraries, object files and flags are used when
19361         # linking a shared library.
19362         #
19363         # There doesn't appear to be a way to prevent this compiler from
19364         # explicitly linking system object files so we need to strip them
19365         # from the output so that they don't get included in the library
19366         # dependencies.
19367         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'
19368         ;;
19369       *)
19370         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19371           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19372           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'
19373
19374           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19375           hardcode_libdir_separator_CXX=:
19376
19377           # Commands to make compiler produce verbose output that lists
19378           # what "hidden" libraries, object files and flags are used when
19379           # linking a shared library.
19380           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19381
19382         else
19383           # FIXME: insert proper C++ library support
19384           ld_shlibs_CXX=no
19385         fi
19386         ;;
19387     esac
19388     ;;
19389   osf4* | osf5*)
19390     case $cc_basename in
19391       KCC*)
19392         # Kuck and Associates, Inc. (KAI) C++ Compiler
19393
19394         # KCC will only create a shared library if the output file
19395         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19396         # to its proper name (with version) after linking.
19397         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'
19398
19399         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19400         hardcode_libdir_separator_CXX=:
19401
19402         # Archives containing C++ object files must be created using
19403         # the KAI C++ compiler.
19404         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19405         ;;
19406       RCC*)
19407         # Rational C++ 2.4.1
19408         # FIXME: insert proper C++ library support
19409         ld_shlibs_CXX=no
19410         ;;
19411       cxx*)
19412         allow_undefined_flag_CXX=' -expect_unresolved \*'
19413         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'
19414         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19415           echo "-hidden">> $lib.exp~
19416           $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~
19417           $rm $lib.exp'
19418
19419         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19420         hardcode_libdir_separator_CXX=:
19421
19422         # Commands to make compiler produce verbose output that lists
19423         # what "hidden" libraries, object files and flags are used when
19424         # linking a shared library.
19425         #
19426         # There doesn't appear to be a way to prevent this compiler from
19427         # explicitly linking system object files so we need to strip them
19428         # from the output so that they don't get included in the library
19429         # dependencies.
19430         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'
19431         ;;
19432       *)
19433         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19434           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19435          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'
19436
19437           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19438           hardcode_libdir_separator_CXX=:
19439
19440           # Commands to make compiler produce verbose output that lists
19441           # what "hidden" libraries, object files and flags are used when
19442           # linking a shared library.
19443           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19444
19445         else
19446           # FIXME: insert proper C++ library support
19447           ld_shlibs_CXX=no
19448         fi
19449         ;;
19450     esac
19451     ;;
19452   psos*)
19453     # FIXME: insert proper C++ library support
19454     ld_shlibs_CXX=no
19455     ;;
19456   sunos4*)
19457     case $cc_basename in
19458       CC*)
19459         # Sun C++ 4.x
19460         # FIXME: insert proper C++ library support
19461         ld_shlibs_CXX=no
19462         ;;
19463       lcc*)
19464         # Lucid
19465         # FIXME: insert proper C++ library support
19466         ld_shlibs_CXX=no
19467         ;;
19468       *)
19469         # FIXME: insert proper C++ library support
19470         ld_shlibs_CXX=no
19471         ;;
19472     esac
19473     ;;
19474   solaris*)
19475     case $cc_basename in
19476       CC*)
19477         # Sun C++ 4.2, 5.x and Centerline C++
19478         archive_cmds_need_lc_CXX=yes
19479         no_undefined_flag_CXX=' -zdefs'
19480         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19482         $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'
19483
19484         hardcode_libdir_flag_spec_CXX='-R$libdir'
19485         hardcode_shlibpath_var_CXX=no
19486         case $host_os in
19487           solaris2.[0-5] | solaris2.[0-5].*) ;;
19488           *)
19489             # The C++ compiler is used as linker so we must use $wl
19490             # flag to pass the commands to the underlying system
19491             # linker. We must also pass each convience library through
19492             # to the system linker between allextract/defaultextract.
19493             # The C++ compiler will combine linker options so we
19494             # cannot just pass the convience library names through
19495             # without $wl.
19496             # Supported since Solaris 2.6 (maybe 2.5.1?)
19497             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'
19498             ;;
19499         esac
19500         link_all_deplibs_CXX=yes
19501
19502         output_verbose_link_cmd='echo'
19503
19504         # Archives containing C++ object files must be created using
19505         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19506         # necessary to make sure instantiated templates are included
19507         # in the archive.
19508         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19509         ;;
19510       gcx*)
19511         # Green Hills C++ Compiler
19512         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19513
19514         # The C++ compiler must be used to create the archive.
19515         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19516         ;;
19517       *)
19518         # GNU C++ compiler with Solaris linker
19519         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19520           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19521           if $CC --version | grep -v '^2\.7' > /dev/null; then
19522             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19523             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19524                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19525
19526             # Commands to make compiler produce verbose output that lists
19527             # what "hidden" libraries, object files and flags are used when
19528             # linking a shared library.
19529             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19530           else
19531             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19532             # platform.
19533             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19534             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19535                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19536
19537             # Commands to make compiler produce verbose output that lists
19538             # what "hidden" libraries, object files and flags are used when
19539             # linking a shared library.
19540             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19541           fi
19542
19543           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19544         fi
19545         ;;
19546     esac
19547     ;;
19548   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19549     no_undefined_flag_CXX='${wl}-z,text'
19550     archive_cmds_need_lc_CXX=no
19551     hardcode_shlibpath_var_CXX=no
19552     runpath_var='LD_RUN_PATH'
19553
19554     case $cc_basename in
19555       CC*)
19556         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19558         ;;
19559       *)
19560         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562         ;;
19563     esac
19564     ;;
19565   sysv5* | sco3.2v5* | sco5v6*)
19566     # Note: We can NOT use -z defs as we might desire, because we do not
19567     # link with -lc, and that would cause any symbols used from libc to
19568     # always be unresolved, which means just about no library would
19569     # ever link correctly.  If we're not using GNU ld we use -z text
19570     # though, which does catch some bad symbols but isn't as heavy-handed
19571     # as -z defs.
19572     # For security reasons, it is highly recommended that you always
19573     # use absolute paths for naming shared libraries, and exclude the
19574     # DT_RUNPATH tag from executables and libraries.  But doing so
19575     # requires that you compile everything twice, which is a pain.
19576     # So that behaviour is only enabled if SCOABSPATH is set to a
19577     # non-empty value in the environment.  Most likely only useful for
19578     # creating official distributions of packages.
19579     # This is a hack until libtool officially supports absolute path
19580     # names for shared libraries.
19581     no_undefined_flag_CXX='${wl}-z,text'
19582     allow_undefined_flag_CXX='${wl}-z,nodefs'
19583     archive_cmds_need_lc_CXX=no
19584     hardcode_shlibpath_var_CXX=no
19585     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19586     hardcode_libdir_separator_CXX=':'
19587     link_all_deplibs_CXX=yes
19588     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19589     runpath_var='LD_RUN_PATH'
19590
19591     case $cc_basename in
19592       CC*)
19593         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19595         ;;
19596       *)
19597         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19599         ;;
19600     esac
19601     ;;
19602   tandem*)
19603     case $cc_basename in
19604       NCC*)
19605         # NonStop-UX NCC 3.20
19606         # FIXME: insert proper C++ library support
19607         ld_shlibs_CXX=no
19608         ;;
19609       *)
19610         # FIXME: insert proper C++ library support
19611         ld_shlibs_CXX=no
19612         ;;
19613     esac
19614     ;;
19615   vxworks*)
19616     # FIXME: insert proper C++ library support
19617     ld_shlibs_CXX=no
19618     ;;
19619   *)
19620     # FIXME: insert proper C++ library support
19621     ld_shlibs_CXX=no
19622     ;;
19623 esac
19624 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19625 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19626 test "$ld_shlibs_CXX" = no && can_build_shared=no
19627
19628 GCC_CXX="$GXX"
19629 LD_CXX="$LD"
19630
19631
19632 cat > conftest.$ac_ext <<EOF
19633 class Foo
19634 {
19635 public:
19636   Foo (void) { a = 0; }
19637 private:
19638   int a;
19639 };
19640 EOF
19641
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643   (eval $ac_compile) 2>&5
19644   ac_status=$?
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); }; then
19647   # Parse the compiler output and extract the necessary
19648   # objects, libraries and library flags.
19649
19650   # Sentinel used to keep track of whether or not we are before
19651   # the conftest object file.
19652   pre_test_object_deps_done=no
19653
19654   # The `*' in the case matches for architectures that use `case' in
19655   # $output_verbose_cmd can trigger glob expansion during the loop
19656   # eval without this substitution.
19657   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19658
19659   for p in `eval $output_verbose_link_cmd`; do
19660     case $p in
19661
19662     -L* | -R* | -l*)
19663        # Some compilers place space between "-{L,R}" and the path.
19664        # Remove the space.
19665        if test $p = "-L" \
19666           || test $p = "-R"; then
19667          prev=$p
19668          continue
19669        else
19670          prev=
19671        fi
19672
19673        if test "$pre_test_object_deps_done" = no; then
19674          case $p in
19675          -L* | -R*)
19676            # Internal compiler library paths should come after those
19677            # provided the user.  The postdeps already come after the
19678            # user supplied libs so there is no need to process them.
19679            if test -z "$compiler_lib_search_path_CXX"; then
19680              compiler_lib_search_path_CXX="${prev}${p}"
19681            else
19682              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19683            fi
19684            ;;
19685          # The "-l" case would never come before the object being
19686          # linked, so don't bother handling this case.
19687          esac
19688        else
19689          if test -z "$postdeps_CXX"; then
19690            postdeps_CXX="${prev}${p}"
19691          else
19692            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19693          fi
19694        fi
19695        ;;
19696
19697     *.$objext)
19698        # This assumes that the test object file only shows up
19699        # once in the compiler output.
19700        if test "$p" = "conftest.$objext"; then
19701          pre_test_object_deps_done=yes
19702          continue
19703        fi
19704
19705        if test "$pre_test_object_deps_done" = no; then
19706          if test -z "$predep_objects_CXX"; then
19707            predep_objects_CXX="$p"
19708          else
19709            predep_objects_CXX="$predep_objects_CXX $p"
19710          fi
19711        else
19712          if test -z "$postdep_objects_CXX"; then
19713            postdep_objects_CXX="$p"
19714          else
19715            postdep_objects_CXX="$postdep_objects_CXX $p"
19716          fi
19717        fi
19718        ;;
19719
19720     *) ;; # Ignore the rest.
19721
19722     esac
19723   done
19724
19725   # Clean up.
19726   rm -f a.out a.exe
19727 else
19728   echo "libtool.m4: error: problem compiling CXX test program"
19729 fi
19730
19731 $rm -f confest.$objext
19732
19733 # PORTME: override above test on systems where it is broken
19734 case $host_os in
19735 interix3*)
19736   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19737   # hack all around it, let's just trust "g++" to DTRT.
19738   predep_objects_CXX=
19739   postdep_objects_CXX=
19740   postdeps_CXX=
19741   ;;
19742
19743 solaris*)
19744   case $cc_basename in
19745   CC*)
19746     # Adding this requires a known-good setup of shared libraries for
19747     # Sun compiler versions before 5.6, else PIC objects from an old
19748     # archive will be linked into the output, leading to subtle bugs.
19749     postdeps_CXX='-lCstd -lCrun'
19750     ;;
19751   esac
19752   ;;
19753 esac
19754
19755
19756 case " $postdeps_CXX " in
19757 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19758 esac
19759
19760 lt_prog_compiler_wl_CXX=
19761 lt_prog_compiler_pic_CXX=
19762 lt_prog_compiler_static_CXX=
19763
19764 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19765 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19766
19767   # C++ specific cases for pic, static, wl, etc.
19768   if test "$GXX" = yes; then
19769     lt_prog_compiler_wl_CXX='-Wl,'
19770     lt_prog_compiler_static_CXX='-static'
19771
19772     case $host_os in
19773     aix*)
19774       # All AIX code is PIC.
19775       if test "$host_cpu" = ia64; then
19776         # AIX 5 now supports IA64 processor
19777         lt_prog_compiler_static_CXX='-Bstatic'
19778       fi
19779       ;;
19780     amigaos*)
19781       # FIXME: we need at least 68020 code to build shared libraries, but
19782       # adding the `-m68020' flag to GCC prevents building anything better,
19783       # like `-m68040'.
19784       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19785       ;;
19786     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19787       # PIC is the default for these OSes.
19788       ;;
19789     mingw* | os2* | pw32*)
19790       # This hack is so that the source file can tell whether it is being
19791       # built for inclusion in a dll (and should export symbols for example).
19792       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19793       ;;
19794     darwin* | rhapsody*)
19795       # PIC is the default on this platform
19796       # Common symbols not allowed in MH_DYLIB files
19797       lt_prog_compiler_pic_CXX='-fno-common'
19798       ;;
19799     *djgpp*)
19800       # DJGPP does not support shared libraries at all
19801       lt_prog_compiler_pic_CXX=
19802       ;;
19803     interix3*)
19804       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19805       # Instead, we relocate shared libraries at runtime.
19806       ;;
19807     sysv4*MP*)
19808       if test -d /usr/nec; then
19809         lt_prog_compiler_pic_CXX=-Kconform_pic
19810       fi
19811       ;;
19812     hpux*)
19813       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19814       # not for PA HP-UX.
19815       case $host_cpu in
19816       hppa*64*|ia64*)
19817         ;;
19818       *)
19819         lt_prog_compiler_pic_CXX='-fPIC'
19820         ;;
19821       esac
19822       ;;
19823     *)
19824       lt_prog_compiler_pic_CXX='-fPIC'
19825       ;;
19826     esac
19827   else
19828     case $host_os in
19829       aix4* | aix5*)
19830         # All AIX code is PIC.
19831         if test "$host_cpu" = ia64; then
19832           # AIX 5 now supports IA64 processor
19833           lt_prog_compiler_static_CXX='-Bstatic'
19834         else
19835           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19836         fi
19837         ;;
19838       chorus*)
19839         case $cc_basename in
19840         cxch68*)
19841           # Green Hills C++ Compiler
19842           # _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"
19843           ;;
19844         esac
19845         ;;
19846        darwin*)
19847          # PIC is the default on this platform
19848          # Common symbols not allowed in MH_DYLIB files
19849          case $cc_basename in
19850            xlc*)
19851            lt_prog_compiler_pic_CXX='-qnocommon'
19852            lt_prog_compiler_wl_CXX='-Wl,'
19853            ;;
19854          esac
19855        ;;
19856       dgux*)
19857         case $cc_basename in
19858           ec++*)
19859             lt_prog_compiler_pic_CXX='-KPIC'
19860             ;;
19861           ghcx*)
19862             # Green Hills C++ Compiler
19863             lt_prog_compiler_pic_CXX='-pic'
19864             ;;
19865           *)
19866             ;;
19867         esac
19868         ;;
19869       freebsd* | kfreebsd*-gnu | dragonfly*)
19870         # FreeBSD uses GNU C++
19871         ;;
19872       hpux9* | hpux10* | hpux11*)
19873         case $cc_basename in
19874           CC*)
19875             lt_prog_compiler_wl_CXX='-Wl,'
19876             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19877             if test "$host_cpu" != ia64; then
19878               lt_prog_compiler_pic_CXX='+Z'
19879             fi
19880             ;;
19881           aCC*)
19882             lt_prog_compiler_wl_CXX='-Wl,'
19883             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19884             case $host_cpu in
19885             hppa*64*|ia64*)
19886               # +Z the default
19887               ;;
19888             *)
19889               lt_prog_compiler_pic_CXX='+Z'
19890               ;;
19891             esac
19892             ;;
19893           *)
19894             ;;
19895         esac
19896         ;;
19897       interix*)
19898         # This is c89, which is MS Visual C++ (no shared libs)
19899         # Anyone wants to do a port?
19900         ;;
19901       irix5* | irix6* | nonstopux*)
19902         case $cc_basename in
19903           CC*)
19904             lt_prog_compiler_wl_CXX='-Wl,'
19905             lt_prog_compiler_static_CXX='-non_shared'
19906             # CC pic flag -KPIC is the default.
19907             ;;
19908           *)
19909             ;;
19910         esac
19911         ;;
19912       linux*)
19913         case $cc_basename in
19914           KCC*)
19915             # KAI C++ Compiler
19916             lt_prog_compiler_wl_CXX='--backend -Wl,'
19917             lt_prog_compiler_pic_CXX='-fPIC'
19918             ;;
19919           icpc* | ecpc*)
19920             # Intel C++
19921             lt_prog_compiler_wl_CXX='-Wl,'
19922             lt_prog_compiler_pic_CXX='-KPIC'
19923             lt_prog_compiler_static_CXX='-static'
19924             ;;
19925           pgCC*)
19926             # Portland Group C++ compiler.
19927             lt_prog_compiler_wl_CXX='-Wl,'
19928             lt_prog_compiler_pic_CXX='-fpic'
19929             lt_prog_compiler_static_CXX='-Bstatic'
19930             ;;
19931           cxx*)
19932             # Compaq C++
19933             # Make sure the PIC flag is empty.  It appears that all Alpha
19934             # Linux and Compaq Tru64 Unix objects are PIC.
19935             lt_prog_compiler_pic_CXX=
19936             lt_prog_compiler_static_CXX='-non_shared'
19937             ;;
19938           *)
19939             ;;
19940         esac
19941         ;;
19942       lynxos*)
19943         ;;
19944       m88k*)
19945         ;;
19946       mvs*)
19947         case $cc_basename in
19948           cxx*)
19949             lt_prog_compiler_pic_CXX='-W c,exportall'
19950             ;;
19951           *)
19952             ;;
19953         esac
19954         ;;
19955       netbsd*)
19956         ;;
19957       osf3* | osf4* | osf5*)
19958         case $cc_basename in
19959           KCC*)
19960             lt_prog_compiler_wl_CXX='--backend -Wl,'
19961             ;;
19962           RCC*)
19963             # Rational C++ 2.4.1
19964             lt_prog_compiler_pic_CXX='-pic'
19965             ;;
19966           cxx*)
19967             # Digital/Compaq C++
19968             lt_prog_compiler_wl_CXX='-Wl,'
19969             # Make sure the PIC flag is empty.  It appears that all Alpha
19970             # Linux and Compaq Tru64 Unix objects are PIC.
19971             lt_prog_compiler_pic_CXX=
19972             lt_prog_compiler_static_CXX='-non_shared'
19973             ;;
19974           *)
19975             ;;
19976         esac
19977         ;;
19978       psos*)
19979         ;;
19980       solaris*)
19981         case $cc_basename in
19982           CC*)
19983             # Sun C++ 4.2, 5.x and Centerline C++
19984             lt_prog_compiler_pic_CXX='-KPIC'
19985             lt_prog_compiler_static_CXX='-Bstatic'
19986             lt_prog_compiler_wl_CXX='-Qoption ld '
19987             ;;
19988           gcx*)
19989             # Green Hills C++ Compiler
19990             lt_prog_compiler_pic_CXX='-PIC'
19991             ;;
19992           *)
19993             ;;
19994         esac
19995         ;;
19996       sunos4*)
19997         case $cc_basename in
19998           CC*)
19999             # Sun C++ 4.x
20000             lt_prog_compiler_pic_CXX='-pic'
20001             lt_prog_compiler_static_CXX='-Bstatic'
20002             ;;
20003           lcc*)
20004             # Lucid
20005             lt_prog_compiler_pic_CXX='-pic'
20006             ;;
20007           *)
20008             ;;
20009         esac
20010         ;;
20011       tandem*)
20012         case $cc_basename in
20013           NCC*)
20014             # NonStop-UX NCC 3.20
20015             lt_prog_compiler_pic_CXX='-KPIC'
20016             ;;
20017           *)
20018             ;;
20019         esac
20020         ;;
20021       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20022         case $cc_basename in
20023           CC*)
20024             lt_prog_compiler_wl_CXX='-Wl,'
20025             lt_prog_compiler_pic_CXX='-KPIC'
20026             lt_prog_compiler_static_CXX='-Bstatic'
20027             ;;
20028         esac
20029         ;;
20030       vxworks*)
20031         ;;
20032       *)
20033         lt_prog_compiler_can_build_shared_CXX=no
20034         ;;
20035     esac
20036   fi
20037
20038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20040
20041 #
20042 # Check to make sure the PIC flag actually works.
20043 #
20044 if test -n "$lt_prog_compiler_pic_CXX"; then
20045
20046 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20049   echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051   lt_prog_compiler_pic_works_CXX=no
20052   ac_outfile=conftest.$ac_objext
20053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20054    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20055    # Insert the option either (1) after the last *FLAGS variable, or
20056    # (2) before a word containing "conftest.", or (3) at the end.
20057    # Note that $ac_compile itself does not contain backslashes and begins
20058    # with a dollar sign (not a hyphen), so the echo should work correctly.
20059    # The option is referenced via a variable to avoid confusing sed.
20060    lt_compile=`echo "$ac_compile" | $SED \
20061    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20063    -e 's:$: $lt_compiler_flag:'`
20064    (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
20065    (eval "$lt_compile" 2>conftest.err)
20066    ac_status=$?
20067    cat conftest.err >&5
20068    echo "$as_me:20063: \$? = $ac_status" >&5
20069    if (exit $ac_status) && test -s "$ac_outfile"; then
20070      # The compiler can only warn and ignore the option if not recognized
20071      # So say no if there are warnings other than the usual output.
20072      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20073      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20074      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20075        lt_prog_compiler_pic_works_CXX=yes
20076      fi
20077    fi
20078    $rm conftest*
20079
20080 fi
20081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20082 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20083
20084 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20085     case $lt_prog_compiler_pic_CXX in
20086      "" | " "*) ;;
20087      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20088      esac
20089 else
20090     lt_prog_compiler_pic_CXX=
20091      lt_prog_compiler_can_build_shared_CXX=no
20092 fi
20093
20094 fi
20095 case $host_os in
20096   # For platforms which do not support PIC, -DPIC is meaningless:
20097   *djgpp*)
20098     lt_prog_compiler_pic_CXX=
20099     ;;
20100   *)
20101     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20102     ;;
20103 esac
20104
20105 #
20106 # Check to make sure the static flag actually works.
20107 #
20108 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20109 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20110 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20111 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20112   echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114   lt_prog_compiler_static_works_CXX=no
20115    save_LDFLAGS="$LDFLAGS"
20116    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20117    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20118    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20119      # The linker can only warn and ignore the option if not recognized
20120      # So say no if there are warnings
20121      if test -s conftest.err; then
20122        # Append any errors to the config.log.
20123        cat conftest.err 1>&5
20124        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20125        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20126        if diff conftest.exp conftest.er2 >/dev/null; then
20127          lt_prog_compiler_static_works_CXX=yes
20128        fi
20129      else
20130        lt_prog_compiler_static_works_CXX=yes
20131      fi
20132    fi
20133    $rm conftest*
20134    LDFLAGS="$save_LDFLAGS"
20135
20136 fi
20137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20138 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20139
20140 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20141     :
20142 else
20143     lt_prog_compiler_static_CXX=
20144 fi
20145
20146
20147 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20148 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20149 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152   lt_cv_prog_compiler_c_o_CXX=no
20153    $rm -r conftest 2>/dev/null
20154    mkdir conftest
20155    cd conftest
20156    mkdir out
20157    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20158
20159    lt_compiler_flag="-o out/conftest2.$ac_objext"
20160    # Insert the option either (1) after the last *FLAGS variable, or
20161    # (2) before a word containing "conftest.", or (3) at the end.
20162    # Note that $ac_compile itself does not contain backslashes and begins
20163    # with a dollar sign (not a hyphen), so the echo should work correctly.
20164    lt_compile=`echo "$ac_compile" | $SED \
20165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20167    -e 's:$: $lt_compiler_flag:'`
20168    (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
20169    (eval "$lt_compile" 2>out/conftest.err)
20170    ac_status=$?
20171    cat out/conftest.err >&5
20172    echo "$as_me:20167: \$? = $ac_status" >&5
20173    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20174    then
20175      # The compiler can only warn and ignore the option if not recognized
20176      # So say no if there are warnings
20177      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20178      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20179      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20180        lt_cv_prog_compiler_c_o_CXX=yes
20181      fi
20182    fi
20183    chmod u+w . 2>&5
20184    $rm conftest*
20185    # SGI C++ compiler will create directory out/ii_files/ for
20186    # template instantiation
20187    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20188    $rm out/* && rmdir out
20189    cd ..
20190    rmdir conftest
20191    $rm conftest*
20192
20193 fi
20194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20196
20197
20198 hard_links="nottested"
20199 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20200   # do not overwrite the value of need_locks provided by the user
20201   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20203   hard_links=yes
20204   $rm conftest*
20205   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20206   touch conftest.a
20207   ln conftest.a conftest.b 2>&5 || hard_links=no
20208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20209   { echo "$as_me:$LINENO: result: $hard_links" >&5
20210 echo "${ECHO_T}$hard_links" >&6; }
20211   if test "$hard_links" = no; then
20212     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20214     need_locks=warn
20215   fi
20216 else
20217   need_locks=no
20218 fi
20219
20220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20222
20223   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20224   case $host_os in
20225   aix4* | aix5*)
20226     # If we're using GNU nm, then we don't want the "-C" option.
20227     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20228     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20229       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'
20230     else
20231       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'
20232     fi
20233     ;;
20234   pw32*)
20235     export_symbols_cmds_CXX="$ltdll_cmds"
20236   ;;
20237   cygwin* | mingw*)
20238     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'
20239   ;;
20240   *)
20241     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20242   ;;
20243   esac
20244
20245 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20246 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20247 test "$ld_shlibs_CXX" = no && can_build_shared=no
20248
20249 #
20250 # Do we need to explicitly link libc?
20251 #
20252 case "x$archive_cmds_need_lc_CXX" in
20253 x|xyes)
20254   # Assume -lc should be added
20255   archive_cmds_need_lc_CXX=yes
20256
20257   if test "$enable_shared" = yes && test "$GCC" = yes; then
20258     case $archive_cmds_CXX in
20259     *'~'*)
20260       # FIXME: we may have to deal with multi-command sequences.
20261       ;;
20262     '$CC '*)
20263       # Test whether the compiler implicitly links with -lc since on some
20264       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20265       # to ld, don't add -lc before -lgcc.
20266       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20267 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20268       $rm conftest*
20269       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20270
20271       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272   (eval $ac_compile) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } 2>conftest.err; then
20276         soname=conftest
20277         lib=conftest
20278         libobjs=conftest.$ac_objext
20279         deplibs=
20280         wl=$lt_prog_compiler_wl_CXX
20281         pic_flag=$lt_prog_compiler_pic_CXX
20282         compiler_flags=-v
20283         linker_flags=-v
20284         verstring=
20285         output_objdir=.
20286         libname=conftest
20287         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20288         allow_undefined_flag_CXX=
20289         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20290   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }
20294         then
20295           archive_cmds_need_lc_CXX=no
20296         else
20297           archive_cmds_need_lc_CXX=yes
20298         fi
20299         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20300       else
20301         cat conftest.err 1>&5
20302       fi
20303       $rm conftest*
20304       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20305 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20306       ;;
20307     esac
20308   fi
20309   ;;
20310 esac
20311
20312 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20314 library_names_spec=
20315 libname_spec='lib$name'
20316 soname_spec=
20317 shrext_cmds=".so"
20318 postinstall_cmds=
20319 postuninstall_cmds=
20320 finish_cmds=
20321 finish_eval=
20322 shlibpath_var=
20323 shlibpath_overrides_runpath=unknown
20324 version_type=none
20325 dynamic_linker="$host_os ld.so"
20326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20327 if test "$GCC" = yes; then
20328   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20329   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20330     # if the path contains ";" then we assume it to be the separator
20331     # otherwise default to the standard path separator (i.e. ":") - it is
20332     # assumed that no part of a normal pathname contains ";" but that should
20333     # okay in the real world where ";" in dirpaths is itself problematic.
20334     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20335   else
20336     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20337   fi
20338 else
20339   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20340 fi
20341 need_lib_prefix=unknown
20342 hardcode_into_libs=no
20343
20344 # when you set need_version to no, make sure it does not cause -set_version
20345 # flags to be left without arguments
20346 need_version=unknown
20347
20348 case $host_os in
20349 aix3*)
20350   version_type=linux
20351   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20352   shlibpath_var=LIBPATH
20353
20354   # AIX 3 has no versioning support, so we append a major version to the name.
20355   soname_spec='${libname}${release}${shared_ext}$major'
20356   ;;
20357
20358 aix4* | aix5*)
20359   version_type=linux
20360   need_lib_prefix=no
20361   need_version=no
20362   hardcode_into_libs=yes
20363   if test "$host_cpu" = ia64; then
20364     # AIX 5 supports IA64
20365     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20366     shlibpath_var=LD_LIBRARY_PATH
20367   else
20368     # With GCC up to 2.95.x, collect2 would create an import file
20369     # for dependence libraries.  The import file would start with
20370     # the line `#! .'.  This would cause the generated library to
20371     # depend on `.', always an invalid library.  This was fixed in
20372     # development snapshots of GCC prior to 3.0.
20373     case $host_os in
20374       aix4 | aix4.[01] | aix4.[01].*)
20375       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20376            echo ' yes '
20377            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20378         :
20379       else
20380         can_build_shared=no
20381       fi
20382       ;;
20383     esac
20384     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20385     # soname into executable. Probably we can add versioning support to
20386     # collect2, so additional links can be useful in future.
20387     if test "$aix_use_runtimelinking" = yes; then
20388       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20389       # instead of lib<name>.a to let people know that these are not
20390       # typical AIX shared libraries.
20391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392     else
20393       # We preserve .a as extension for shared libraries through AIX4.2
20394       # and later when we are not doing run time linking.
20395       library_names_spec='${libname}${release}.a $libname.a'
20396       soname_spec='${libname}${release}${shared_ext}$major'
20397     fi
20398     shlibpath_var=LIBPATH
20399   fi
20400   ;;
20401
20402 amigaos*)
20403   library_names_spec='$libname.ixlibrary $libname.a'
20404   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20405   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'
20406   ;;
20407
20408 beos*)
20409   library_names_spec='${libname}${shared_ext}'
20410   dynamic_linker="$host_os ld.so"
20411   shlibpath_var=LIBRARY_PATH
20412   ;;
20413
20414 bsdi[45]*)
20415   version_type=linux
20416   need_version=no
20417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418   soname_spec='${libname}${release}${shared_ext}$major'
20419   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20420   shlibpath_var=LD_LIBRARY_PATH
20421   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20422   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20423   # the default ld.so.conf also contains /usr/contrib/lib and
20424   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20425   # libtool to hard-code these into programs
20426   ;;
20427
20428 cygwin* | mingw* | pw32*)
20429   version_type=windows
20430   shrext_cmds=".dll"
20431   need_version=no
20432   need_lib_prefix=no
20433
20434   case $GCC,$host_os in
20435   yes,cygwin* | yes,mingw* | yes,pw32*)
20436     library_names_spec='$libname.dll.a'
20437     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20438     postinstall_cmds='base_file=`basename \${file}`~
20439       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20440       dldir=$destdir/`dirname \$dlpath`~
20441       test -d \$dldir || mkdir -p \$dldir~
20442       $install_prog $dir/$dlname \$dldir/$dlname~
20443       chmod a+x \$dldir/$dlname'
20444     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20445       dlpath=$dir/\$dldll~
20446        $rm \$dlpath'
20447     shlibpath_overrides_runpath=yes
20448
20449     case $host_os in
20450     cygwin*)
20451       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20452       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20454       ;;
20455     mingw*)
20456       # MinGW DLLs use traditional 'lib' prefix
20457       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20458       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20459       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20460         # It is most probably a Windows format PATH printed by
20461         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20462         # path with ; separators, and with drive letters. We can handle the
20463         # drive letters (cygwin fileutils understands them), so leave them,
20464         # especially as we might pass files found there to a mingw objdump,
20465         # which wouldn't understand a cygwinified path. Ahh.
20466         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20467       else
20468         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20469       fi
20470       ;;
20471     pw32*)
20472       # pw32 DLLs use 'pw' prefix rather than 'lib'
20473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20474       ;;
20475     esac
20476     ;;
20477
20478   *)
20479     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20480     ;;
20481   esac
20482   dynamic_linker='Win32 ld.exe'
20483   # FIXME: first we should search . and the directory the executable is in
20484   shlibpath_var=PATH
20485   ;;
20486
20487 darwin* | rhapsody*)
20488   dynamic_linker="$host_os dyld"
20489   version_type=darwin
20490   need_lib_prefix=no
20491   need_version=no
20492   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20493   soname_spec='${libname}${release}${major}$shared_ext'
20494   shlibpath_overrides_runpath=yes
20495   shlibpath_var=DYLD_LIBRARY_PATH
20496   shrext_cmds='.dylib'
20497   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20498   if test "$GCC" = yes; then
20499     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"`
20500   else
20501     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20502   fi
20503   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20504   ;;
20505
20506 dgux*)
20507   version_type=linux
20508   need_lib_prefix=no
20509   need_version=no
20510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20511   soname_spec='${libname}${release}${shared_ext}$major'
20512   shlibpath_var=LD_LIBRARY_PATH
20513   ;;
20514
20515 freebsd1*)
20516   dynamic_linker=no
20517   ;;
20518
20519 kfreebsd*-gnu)
20520   version_type=linux
20521   need_lib_prefix=no
20522   need_version=no
20523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20524   soname_spec='${libname}${release}${shared_ext}$major'
20525   shlibpath_var=LD_LIBRARY_PATH
20526   shlibpath_overrides_runpath=no
20527   hardcode_into_libs=yes
20528   dynamic_linker='GNU ld.so'
20529   ;;
20530
20531 freebsd* | dragonfly*)
20532   # DragonFly does not have aout.  When/if they implement a new
20533   # versioning mechanism, adjust this.
20534   if test -x /usr/bin/objformat; then
20535     objformat=`/usr/bin/objformat`
20536   else
20537     case $host_os in
20538     freebsd[123]*) objformat=aout ;;
20539     *) objformat=elf ;;
20540     esac
20541   fi
20542   version_type=freebsd-$objformat
20543   case $version_type in
20544     freebsd-elf*)
20545       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20546       need_version=no
20547       need_lib_prefix=no
20548       ;;
20549     freebsd-*)
20550       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20551       need_version=yes
20552       ;;
20553   esac
20554   shlibpath_var=LD_LIBRARY_PATH
20555   case $host_os in
20556   freebsd2*)
20557     shlibpath_overrides_runpath=yes
20558     ;;
20559   freebsd3.[01]* | freebsdelf3.[01]*)
20560     shlibpath_overrides_runpath=yes
20561     hardcode_into_libs=yes
20562     ;;
20563   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20564   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20565     shlibpath_overrides_runpath=no
20566     hardcode_into_libs=yes
20567     ;;
20568   freebsd*) # from 4.6 on
20569     shlibpath_overrides_runpath=yes
20570     hardcode_into_libs=yes
20571     ;;
20572   esac
20573   ;;
20574
20575 gnu*)
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   hardcode_into_libs=yes
20583   ;;
20584
20585 hpux9* | hpux10* | hpux11*)
20586   # Give a soname corresponding to the major version so that dld.sl refuses to
20587   # link against other versions.
20588   version_type=sunos
20589   need_lib_prefix=no
20590   need_version=no
20591   case $host_cpu in
20592   ia64*)
20593     shrext_cmds='.so'
20594     hardcode_into_libs=yes
20595     dynamic_linker="$host_os dld.so"
20596     shlibpath_var=LD_LIBRARY_PATH
20597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20599     soname_spec='${libname}${release}${shared_ext}$major'
20600     if test "X$HPUX_IA64_MODE" = X32; then
20601       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20602     else
20603       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20604     fi
20605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20606     ;;
20607    hppa*64*)
20608      shrext_cmds='.sl'
20609      hardcode_into_libs=yes
20610      dynamic_linker="$host_os dld.sl"
20611      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20612      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614      soname_spec='${libname}${release}${shared_ext}$major'
20615      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20616      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20617      ;;
20618    *)
20619     shrext_cmds='.sl'
20620     dynamic_linker="$host_os dld.sl"
20621     shlibpath_var=SHLIB_PATH
20622     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624     soname_spec='${libname}${release}${shared_ext}$major'
20625     ;;
20626   esac
20627   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20628   postinstall_cmds='chmod 555 $lib'
20629   ;;
20630
20631 interix3*)
20632   version_type=linux
20633   need_lib_prefix=no
20634   need_version=no
20635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20636   soname_spec='${libname}${release}${shared_ext}$major'
20637   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20638   shlibpath_var=LD_LIBRARY_PATH
20639   shlibpath_overrides_runpath=no
20640   hardcode_into_libs=yes
20641   ;;
20642
20643 irix5* | irix6* | nonstopux*)
20644   case $host_os in
20645     nonstopux*) version_type=nonstopux ;;
20646     *)
20647         if test "$lt_cv_prog_gnu_ld" = yes; then
20648                 version_type=linux
20649         else
20650                 version_type=irix
20651         fi ;;
20652   esac
20653   need_lib_prefix=no
20654   need_version=no
20655   soname_spec='${libname}${release}${shared_ext}$major'
20656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20657   case $host_os in
20658   irix5* | nonstopux*)
20659     libsuff= shlibsuff=
20660     ;;
20661   *)
20662     case $LD in # libtool.m4 will add one of these switches to LD
20663     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20664       libsuff= shlibsuff= libmagic=32-bit;;
20665     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20666       libsuff=32 shlibsuff=N32 libmagic=N32;;
20667     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20668       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20669     *) libsuff= shlibsuff= libmagic=never-match;;
20670     esac
20671     ;;
20672   esac
20673   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20674   shlibpath_overrides_runpath=no
20675   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20676   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20677   hardcode_into_libs=yes
20678   ;;
20679
20680 # No shared lib support for Linux oldld, aout, or coff.
20681 linux*oldld* | linux*aout* | linux*coff*)
20682   dynamic_linker=no
20683   ;;
20684
20685 # This must be Linux ELF.
20686 linux*)
20687   version_type=linux
20688   need_lib_prefix=no
20689   need_version=no
20690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691   soname_spec='${libname}${release}${shared_ext}$major'
20692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20693   shlibpath_var=LD_LIBRARY_PATH
20694   shlibpath_overrides_runpath=no
20695   # This implies no fast_install, which is unacceptable.
20696   # Some rework will be needed to allow for fast_install
20697   # before this can be enabled.
20698   hardcode_into_libs=yes
20699
20700   # Append ld.so.conf contents to the search path
20701   if test -f /etc/ld.so.conf; then
20702     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' ' '`
20703     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20704   fi
20705
20706   # We used to test for /lib/ld.so.1 and disable shared libraries on
20707   # powerpc, because MkLinux only supported shared libraries with the
20708   # GNU dynamic linker.  Since this was broken with cross compilers,
20709   # most powerpc-linux boxes support dynamic linking these days and
20710   # people can always --disable-shared, the test was removed, and we
20711   # assume the GNU/Linux dynamic linker is in use.
20712   dynamic_linker='GNU/Linux ld.so'
20713   ;;
20714
20715 knetbsd*-gnu)
20716   version_type=linux
20717   need_lib_prefix=no
20718   need_version=no
20719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20720   soname_spec='${libname}${release}${shared_ext}$major'
20721   shlibpath_var=LD_LIBRARY_PATH
20722   shlibpath_overrides_runpath=no
20723   hardcode_into_libs=yes
20724   dynamic_linker='GNU ld.so'
20725   ;;
20726
20727 netbsd*)
20728   version_type=sunos
20729   need_lib_prefix=no
20730   need_version=no
20731   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20734     dynamic_linker='NetBSD (a.out) ld.so'
20735   else
20736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737     soname_spec='${libname}${release}${shared_ext}$major'
20738     dynamic_linker='NetBSD ld.elf_so'
20739   fi
20740   shlibpath_var=LD_LIBRARY_PATH
20741   shlibpath_overrides_runpath=yes
20742   hardcode_into_libs=yes
20743   ;;
20744
20745 newsos6)
20746   version_type=linux
20747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748   shlibpath_var=LD_LIBRARY_PATH
20749   shlibpath_overrides_runpath=yes
20750   ;;
20751
20752 nto-qnx*)
20753   version_type=linux
20754   need_lib_prefix=no
20755   need_version=no
20756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757   soname_spec='${libname}${release}${shared_ext}$major'
20758   shlibpath_var=LD_LIBRARY_PATH
20759   shlibpath_overrides_runpath=yes
20760   ;;
20761
20762 openbsd*)
20763   version_type=sunos
20764   sys_lib_dlsearch_path_spec="/usr/lib"
20765   need_lib_prefix=no
20766   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20767   case $host_os in
20768     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20769     *)                         need_version=no  ;;
20770   esac
20771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20773   shlibpath_var=LD_LIBRARY_PATH
20774   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20775     case $host_os in
20776       openbsd2.[89] | openbsd2.[89].*)
20777         shlibpath_overrides_runpath=no
20778         ;;
20779       *)
20780         shlibpath_overrides_runpath=yes
20781         ;;
20782       esac
20783   else
20784     shlibpath_overrides_runpath=yes
20785   fi
20786   ;;
20787
20788 os2*)
20789   libname_spec='$name'
20790   shrext_cmds=".dll"
20791   need_lib_prefix=no
20792   library_names_spec='$libname${shared_ext} $libname.a'
20793   dynamic_linker='OS/2 ld.exe'
20794   shlibpath_var=LIBPATH
20795   ;;
20796
20797 osf3* | osf4* | osf5*)
20798   version_type=osf
20799   need_lib_prefix=no
20800   need_version=no
20801   soname_spec='${libname}${release}${shared_ext}$major'
20802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803   shlibpath_var=LD_LIBRARY_PATH
20804   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20805   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20806   ;;
20807
20808 solaris*)
20809   version_type=linux
20810   need_lib_prefix=no
20811   need_version=no
20812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813   soname_spec='${libname}${release}${shared_ext}$major'
20814   shlibpath_var=LD_LIBRARY_PATH
20815   shlibpath_overrides_runpath=yes
20816   hardcode_into_libs=yes
20817   # ldd complains unless libraries are executable
20818   postinstall_cmds='chmod +x $lib'
20819   ;;
20820
20821 sunos4*)
20822   version_type=sunos
20823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20825   shlibpath_var=LD_LIBRARY_PATH
20826   shlibpath_overrides_runpath=yes
20827   if test "$with_gnu_ld" = yes; then
20828     need_lib_prefix=no
20829   fi
20830   need_version=yes
20831   ;;
20832
20833 sysv4 | sysv4.3*)
20834   version_type=linux
20835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836   soname_spec='${libname}${release}${shared_ext}$major'
20837   shlibpath_var=LD_LIBRARY_PATH
20838   case $host_vendor in
20839     sni)
20840       shlibpath_overrides_runpath=no
20841       need_lib_prefix=no
20842       export_dynamic_flag_spec='${wl}-Blargedynsym'
20843       runpath_var=LD_RUN_PATH
20844       ;;
20845     siemens)
20846       need_lib_prefix=no
20847       ;;
20848     motorola)
20849       need_lib_prefix=no
20850       need_version=no
20851       shlibpath_overrides_runpath=no
20852       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20853       ;;
20854   esac
20855   ;;
20856
20857 sysv4*MP*)
20858   if test -d /usr/nec ;then
20859     version_type=linux
20860     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20861     soname_spec='$libname${shared_ext}.$major'
20862     shlibpath_var=LD_LIBRARY_PATH
20863   fi
20864   ;;
20865
20866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20867   version_type=freebsd-elf
20868   need_lib_prefix=no
20869   need_version=no
20870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20871   soname_spec='${libname}${release}${shared_ext}$major'
20872   shlibpath_var=LD_LIBRARY_PATH
20873   hardcode_into_libs=yes
20874   if test "$with_gnu_ld" = yes; then
20875     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20876     shlibpath_overrides_runpath=no
20877   else
20878     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20879     shlibpath_overrides_runpath=yes
20880     case $host_os in
20881       sco3.2v5*)
20882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20883         ;;
20884     esac
20885   fi
20886   sys_lib_dlsearch_path_spec='/usr/lib'
20887   ;;
20888
20889 uts4*)
20890   version_type=linux
20891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892   soname_spec='${libname}${release}${shared_ext}$major'
20893   shlibpath_var=LD_LIBRARY_PATH
20894   ;;
20895
20896 *)
20897   dynamic_linker=no
20898   ;;
20899 esac
20900 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20901 echo "${ECHO_T}$dynamic_linker" >&6; }
20902 test "$dynamic_linker" = no && can_build_shared=no
20903
20904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20905 if test "$GCC" = yes; then
20906   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20907 fi
20908
20909 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20910 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20911 hardcode_action_CXX=
20912 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20913    test -n "$runpath_var_CXX" || \
20914    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20915
20916   # We can hardcode non-existant directories.
20917   if test "$hardcode_direct_CXX" != no &&
20918      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20919      # have to relink, otherwise we might link with an installed library
20920      # when we should be linking with a yet-to-be-installed one
20921      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20922      test "$hardcode_minus_L_CXX" != no; then
20923     # Linking always hardcodes the temporary library directory.
20924     hardcode_action_CXX=relink
20925   else
20926     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20927     hardcode_action_CXX=immediate
20928   fi
20929 else
20930   # We cannot hardcode anything, or else we can only hardcode existing
20931   # directories.
20932   hardcode_action_CXX=unsupported
20933 fi
20934 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20935 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20936
20937 if test "$hardcode_action_CXX" = relink; then
20938   # Fast installation is not supported
20939   enable_fast_install=no
20940 elif test "$shlibpath_overrides_runpath" = yes ||
20941      test "$enable_shared" = no; then
20942   # Fast installation is not necessary
20943   enable_fast_install=needless
20944 fi
20945
20946
20947 # The else clause should only fire when bootstrapping the
20948 # libtool distribution, otherwise you forgot to ship ltmain.sh
20949 # with your package, and you will get complaints that there are
20950 # no rules to generate ltmain.sh.
20951 if test -f "$ltmain"; then
20952   # See if we are running on zsh, and set the options which allow our commands through
20953   # without removal of \ escapes.
20954   if test -n "${ZSH_VERSION+set}" ; then
20955     setopt NO_GLOB_SUBST
20956   fi
20957   # Now quote all the things that may contain metacharacters while being
20958   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20959   # variables and quote the copies for generation of the libtool script.
20960   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20961     SED SHELL STRIP \
20962     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20963     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20964     deplibs_check_method reload_flag reload_cmds need_locks \
20965     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20966     lt_cv_sys_global_symbol_to_c_name_address \
20967     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20968     old_postinstall_cmds old_postuninstall_cmds \
20969     compiler_CXX \
20970     CC_CXX \
20971     LD_CXX \
20972     lt_prog_compiler_wl_CXX \
20973     lt_prog_compiler_pic_CXX \
20974     lt_prog_compiler_static_CXX \
20975     lt_prog_compiler_no_builtin_flag_CXX \
20976     export_dynamic_flag_spec_CXX \
20977     thread_safe_flag_spec_CXX \
20978     whole_archive_flag_spec_CXX \
20979     enable_shared_with_static_runtimes_CXX \
20980     old_archive_cmds_CXX \
20981     old_archive_from_new_cmds_CXX \
20982     predep_objects_CXX \
20983     postdep_objects_CXX \
20984     predeps_CXX \
20985     postdeps_CXX \
20986     compiler_lib_search_path_CXX \
20987     archive_cmds_CXX \
20988     archive_expsym_cmds_CXX \
20989     postinstall_cmds_CXX \
20990     postuninstall_cmds_CXX \
20991     old_archive_from_expsyms_cmds_CXX \
20992     allow_undefined_flag_CXX \
20993     no_undefined_flag_CXX \
20994     export_symbols_cmds_CXX \
20995     hardcode_libdir_flag_spec_CXX \
20996     hardcode_libdir_flag_spec_ld_CXX \
20997     hardcode_libdir_separator_CXX \
20998     hardcode_automatic_CXX \
20999     module_cmds_CXX \
21000     module_expsym_cmds_CXX \
21001     lt_cv_prog_compiler_c_o_CXX \
21002     exclude_expsyms_CXX \
21003     include_expsyms_CXX; do
21004
21005     case $var in
21006     old_archive_cmds_CXX | \
21007     old_archive_from_new_cmds_CXX | \
21008     archive_cmds_CXX | \
21009     archive_expsym_cmds_CXX | \
21010     module_cmds_CXX | \
21011     module_expsym_cmds_CXX | \
21012     old_archive_from_expsyms_cmds_CXX | \
21013     export_symbols_cmds_CXX | \
21014     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21015     postinstall_cmds | postuninstall_cmds | \
21016     old_postinstall_cmds | old_postuninstall_cmds | \
21017     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21018       # Double-quote double-evaled strings.
21019       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21020       ;;
21021     *)
21022       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21023       ;;
21024     esac
21025   done
21026
21027   case $lt_echo in
21028   *'\$0 --fallback-echo"')
21029     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21030     ;;
21031   esac
21032
21033 cfgfile="$ofile"
21034
21035   cat <<__EOF__ >> "$cfgfile"
21036 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21037
21038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21039
21040 # Shell to use when invoking shell scripts.
21041 SHELL=$lt_SHELL
21042
21043 # Whether or not to build shared libraries.
21044 build_libtool_libs=$enable_shared
21045
21046 # Whether or not to build static libraries.
21047 build_old_libs=$enable_static
21048
21049 # Whether or not to add -lc for building shared libraries.
21050 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21051
21052 # Whether or not to disallow shared libs when runtime libs are static
21053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21054
21055 # Whether or not to optimize for fast installation.
21056 fast_install=$enable_fast_install
21057
21058 # The host system.
21059 host_alias=$host_alias
21060 host=$host
21061 host_os=$host_os
21062
21063 # The build system.
21064 build_alias=$build_alias
21065 build=$build
21066 build_os=$build_os
21067
21068 # An echo program that does not interpret backslashes.
21069 echo=$lt_echo
21070
21071 # The archiver.
21072 AR=$lt_AR
21073 AR_FLAGS=$lt_AR_FLAGS
21074
21075 # A C compiler.
21076 LTCC=$lt_LTCC
21077
21078 # LTCC compiler flags.
21079 LTCFLAGS=$lt_LTCFLAGS
21080
21081 # A language-specific compiler.
21082 CC=$lt_compiler_CXX
21083
21084 # Is the compiler the GNU C compiler?
21085 with_gcc=$GCC_CXX
21086
21087 # An ERE matcher.
21088 EGREP=$lt_EGREP
21089
21090 # The linker used to build libraries.
21091 LD=$lt_LD_CXX
21092
21093 # Whether we need hard or soft links.
21094 LN_S=$lt_LN_S
21095
21096 # A BSD-compatible nm program.
21097 NM=$lt_NM
21098
21099 # A symbol stripping program
21100 STRIP=$lt_STRIP
21101
21102 # Used to examine libraries when file_magic_cmd begins "file"
21103 MAGIC_CMD=$MAGIC_CMD
21104
21105 # Used on cygwin: DLL creation program.
21106 DLLTOOL="$DLLTOOL"
21107
21108 # Used on cygwin: object dumper.
21109 OBJDUMP="$OBJDUMP"
21110
21111 # Used on cygwin: assembler.
21112 AS="$AS"
21113
21114 # The name of the directory that contains temporary libtool files.
21115 objdir=$objdir
21116
21117 # How to create reloadable object files.
21118 reload_flag=$lt_reload_flag
21119 reload_cmds=$lt_reload_cmds
21120
21121 # How to pass a linker flag through the compiler.
21122 wl=$lt_lt_prog_compiler_wl_CXX
21123
21124 # Object file suffix (normally "o").
21125 objext="$ac_objext"
21126
21127 # Old archive suffix (normally "a").
21128 libext="$libext"
21129
21130 # Shared library suffix (normally ".so").
21131 shrext_cmds='$shrext_cmds'
21132
21133 # Executable file suffix (normally "").
21134 exeext="$exeext"
21135
21136 # Additional compiler flags for building library objects.
21137 pic_flag=$lt_lt_prog_compiler_pic_CXX
21138 pic_mode=$pic_mode
21139
21140 # What is the maximum length of a command?
21141 max_cmd_len=$lt_cv_sys_max_cmd_len
21142
21143 # Does compiler simultaneously support -c and -o options?
21144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21145
21146 # Must we lock files when doing compilation?
21147 need_locks=$lt_need_locks
21148
21149 # Do we need the lib prefix for modules?
21150 need_lib_prefix=$need_lib_prefix
21151
21152 # Do we need a version for libraries?
21153 need_version=$need_version
21154
21155 # Whether dlopen is supported.
21156 dlopen_support=$enable_dlopen
21157
21158 # Whether dlopen of programs is supported.
21159 dlopen_self=$enable_dlopen_self
21160
21161 # Whether dlopen of statically linked programs is supported.
21162 dlopen_self_static=$enable_dlopen_self_static
21163
21164 # Compiler flag to prevent dynamic linking.
21165 link_static_flag=$lt_lt_prog_compiler_static_CXX
21166
21167 # Compiler flag to turn off builtin functions.
21168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21169
21170 # Compiler flag to allow reflexive dlopens.
21171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21172
21173 # Compiler flag to generate shared objects directly from archives.
21174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21175
21176 # Compiler flag to generate thread-safe objects.
21177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21178
21179 # Library versioning type.
21180 version_type=$version_type
21181
21182 # Format of library name prefix.
21183 libname_spec=$lt_libname_spec
21184
21185 # List of archive names.  First name is the real one, the rest are links.
21186 # The last name is the one that the linker finds with -lNAME.
21187 library_names_spec=$lt_library_names_spec
21188
21189 # The coded name of the library, if different from the real name.
21190 soname_spec=$lt_soname_spec
21191
21192 # Commands used to build and install an old-style archive.
21193 RANLIB=$lt_RANLIB
21194 old_archive_cmds=$lt_old_archive_cmds_CXX
21195 old_postinstall_cmds=$lt_old_postinstall_cmds
21196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21197
21198 # Create an old-style archive from a shared archive.
21199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21200
21201 # Create a temporary old-style archive to link instead of a shared archive.
21202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21203
21204 # Commands used to build and install a shared archive.
21205 archive_cmds=$lt_archive_cmds_CXX
21206 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21207 postinstall_cmds=$lt_postinstall_cmds
21208 postuninstall_cmds=$lt_postuninstall_cmds
21209
21210 # Commands used to build a loadable module (assumed same as above if empty)
21211 module_cmds=$lt_module_cmds_CXX
21212 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21213
21214 # Commands to strip libraries.
21215 old_striplib=$lt_old_striplib
21216 striplib=$lt_striplib
21217
21218 # Dependencies to place before the objects being linked to create a
21219 # shared library.
21220 predep_objects=$lt_predep_objects_CXX
21221
21222 # Dependencies to place after the objects being linked to create a
21223 # shared library.
21224 postdep_objects=$lt_postdep_objects_CXX
21225
21226 # Dependencies to place before the objects being linked to create a
21227 # shared library.
21228 predeps=$lt_predeps_CXX
21229
21230 # Dependencies to place after the objects being linked to create a
21231 # shared library.
21232 postdeps=$lt_postdeps_CXX
21233
21234 # The library search path used internally by the compiler when linking
21235 # a shared library.
21236 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21237
21238 # Method to check whether dependent libraries are shared objects.
21239 deplibs_check_method=$lt_deplibs_check_method
21240
21241 # Command to use when deplibs_check_method == file_magic.
21242 file_magic_cmd=$lt_file_magic_cmd
21243
21244 # Flag that allows shared libraries with undefined symbols to be built.
21245 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21246
21247 # Flag that forces no undefined symbols.
21248 no_undefined_flag=$lt_no_undefined_flag_CXX
21249
21250 # Commands used to finish a libtool library installation in a directory.
21251 finish_cmds=$lt_finish_cmds
21252
21253 # Same as above, but a single script fragment to be evaled but not shown.
21254 finish_eval=$lt_finish_eval
21255
21256 # Take the output of nm and produce a listing of raw symbols and C names.
21257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21258
21259 # Transform the output of nm in a proper C declaration
21260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21261
21262 # Transform the output of nm in a C name address pair
21263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21264
21265 # This is the shared library runtime path variable.
21266 runpath_var=$runpath_var
21267
21268 # This is the shared library path variable.
21269 shlibpath_var=$shlibpath_var
21270
21271 # Is shlibpath searched before the hard-coded library search path?
21272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21273
21274 # How to hardcode a shared library path into an executable.
21275 hardcode_action=$hardcode_action_CXX
21276
21277 # Whether we should hardcode library paths into libraries.
21278 hardcode_into_libs=$hardcode_into_libs
21279
21280 # Flag to hardcode \$libdir into a binary during linking.
21281 # This must work even if \$libdir does not exist.
21282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21283
21284 # If ld is used when linking, flag to hardcode \$libdir into
21285 # a binary during linking. This must work even if \$libdir does
21286 # not exist.
21287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21288
21289 # Whether we need a single -rpath flag with a separated argument.
21290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21291
21292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21293 # resulting binary.
21294 hardcode_direct=$hardcode_direct_CXX
21295
21296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21297 # resulting binary.
21298 hardcode_minus_L=$hardcode_minus_L_CXX
21299
21300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21301 # the resulting binary.
21302 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21303
21304 # Set to yes if building a shared library automatically hardcodes DIR into the library
21305 # and all subsequent libraries and executables linked against it.
21306 hardcode_automatic=$hardcode_automatic_CXX
21307
21308 # Variables whose values should be saved in libtool wrapper scripts and
21309 # restored at relink time.
21310 variables_saved_for_relink="$variables_saved_for_relink"
21311
21312 # Whether libtool must link a program against all its dependency libraries.
21313 link_all_deplibs=$link_all_deplibs_CXX
21314
21315 # Compile-time system search path for libraries
21316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21317
21318 # Run-time system search path for libraries
21319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21320
21321 # Fix the shell variable \$srcfile for the compiler.
21322 fix_srcfile_path="$fix_srcfile_path_CXX"
21323
21324 # Set to yes if exported symbols are required.
21325 always_export_symbols=$always_export_symbols_CXX
21326
21327 # The commands to list exported symbols.
21328 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21329
21330 # The commands to extract the exported symbol list from a shared archive.
21331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21332
21333 # Symbols that should not be listed in the preloaded symbols.
21334 exclude_expsyms=$lt_exclude_expsyms_CXX
21335
21336 # Symbols that must always be exported.
21337 include_expsyms=$lt_include_expsyms_CXX
21338
21339 # ### END LIBTOOL TAG CONFIG: $tagname
21340
21341 __EOF__
21342
21343
21344 else
21345   # If there is no Makefile yet, we rely on a make rule to execute
21346   # `config.status --recheck' to rerun these tests and create the
21347   # libtool script then.
21348   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21349   if test -f "$ltmain_in"; then
21350     test -f Makefile && make "$ltmain"
21351   fi
21352 fi
21353
21354
21355 ac_ext=c
21356 ac_cpp='$CPP $CPPFLAGS'
21357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361 CC=$lt_save_CC
21362 LDCXX=$LD
21363 LD=$lt_save_LD
21364 GCC=$lt_save_GCC
21365 with_gnu_ldcxx=$with_gnu_ld
21366 with_gnu_ld=$lt_save_with_gnu_ld
21367 lt_cv_path_LDCXX=$lt_cv_path_LD
21368 lt_cv_path_LD=$lt_save_path_LD
21369 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21370 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21371
21372         else
21373           tagname=""
21374         fi
21375         ;;
21376
21377       F77)
21378         if test -n "$F77" && test "X$F77" != "Xno"; then
21379
21380 ac_ext=f
21381 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21382 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21384
21385
21386 archive_cmds_need_lc_F77=no
21387 allow_undefined_flag_F77=
21388 always_export_symbols_F77=no
21389 archive_expsym_cmds_F77=
21390 export_dynamic_flag_spec_F77=
21391 hardcode_direct_F77=no
21392 hardcode_libdir_flag_spec_F77=
21393 hardcode_libdir_flag_spec_ld_F77=
21394 hardcode_libdir_separator_F77=
21395 hardcode_minus_L_F77=no
21396 hardcode_automatic_F77=no
21397 module_cmds_F77=
21398 module_expsym_cmds_F77=
21399 link_all_deplibs_F77=unknown
21400 old_archive_cmds_F77=$old_archive_cmds
21401 no_undefined_flag_F77=
21402 whole_archive_flag_spec_F77=
21403 enable_shared_with_static_runtimes_F77=no
21404
21405 # Source file extension for f77 test sources.
21406 ac_ext=f
21407
21408 # Object file extension for compiled f77 test sources.
21409 objext=o
21410 objext_F77=$objext
21411
21412 # Code to be used in simple compile tests
21413 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21414
21415 # Code to be used in simple link tests
21416 lt_simple_link_test_code="      program t\n      end\n"
21417
21418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21419
21420 # If no C compiler was specified, use CC.
21421 LTCC=${LTCC-"$CC"}
21422
21423 # If no C compiler flags were specified, use CFLAGS.
21424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21425
21426 # Allow CC to be a program name with arguments.
21427 compiler=$CC
21428
21429
21430 # save warnings/boilerplate of simple test code
21431 ac_outfile=conftest.$ac_objext
21432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21434 _lt_compiler_boilerplate=`cat conftest.err`
21435 $rm conftest*
21436
21437 ac_outfile=conftest.$ac_objext
21438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21440 _lt_linker_boilerplate=`cat conftest.err`
21441 $rm conftest*
21442
21443
21444 # Allow CC to be a program name with arguments.
21445 lt_save_CC="$CC"
21446 CC=${F77-"f77"}
21447 compiler=$CC
21448 compiler_F77=$CC
21449 for cc_temp in $compiler""; do
21450   case $cc_temp in
21451     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21452     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21453     \-*) ;;
21454     *) break;;
21455   esac
21456 done
21457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21458
21459
21460 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21461 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21462 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21463 echo "${ECHO_T}$can_build_shared" >&6; }
21464
21465 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21466 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21467 test "$can_build_shared" = "no" && enable_shared=no
21468
21469 # On AIX, shared libraries and static libraries use the same namespace, and
21470 # are all built from PIC.
21471 case $host_os in
21472 aix3*)
21473   test "$enable_shared" = yes && enable_static=no
21474   if test -n "$RANLIB"; then
21475     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21476     postinstall_cmds='$RANLIB $lib'
21477   fi
21478   ;;
21479 aix4* | aix5*)
21480   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21481     test "$enable_shared" = yes && enable_static=no
21482   fi
21483   ;;
21484 esac
21485 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21486 echo "${ECHO_T}$enable_shared" >&6; }
21487
21488 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21490 # Make sure either enable_shared or enable_static is yes.
21491 test "$enable_shared" = yes || enable_static=yes
21492 { echo "$as_me:$LINENO: result: $enable_static" >&5
21493 echo "${ECHO_T}$enable_static" >&6; }
21494
21495 GCC_F77="$G77"
21496 LD_F77="$LD"
21497
21498 lt_prog_compiler_wl_F77=
21499 lt_prog_compiler_pic_F77=
21500 lt_prog_compiler_static_F77=
21501
21502 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21503 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21504
21505   if test "$GCC" = yes; then
21506     lt_prog_compiler_wl_F77='-Wl,'
21507     lt_prog_compiler_static_F77='-static'
21508
21509     case $host_os in
21510       aix*)
21511       # All AIX code is PIC.
21512       if test "$host_cpu" = ia64; then
21513         # AIX 5 now supports IA64 processor
21514         lt_prog_compiler_static_F77='-Bstatic'
21515       fi
21516       ;;
21517
21518     amigaos*)
21519       # FIXME: we need at least 68020 code to build shared libraries, but
21520       # adding the `-m68020' flag to GCC prevents building anything better,
21521       # like `-m68040'.
21522       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21523       ;;
21524
21525     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21526       # PIC is the default for these OSes.
21527       ;;
21528
21529     mingw* | pw32* | os2*)
21530       # This hack is so that the source file can tell whether it is being
21531       # built for inclusion in a dll (and should export symbols for example).
21532       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21533       ;;
21534
21535     darwin* | rhapsody*)
21536       # PIC is the default on this platform
21537       # Common symbols not allowed in MH_DYLIB files
21538       lt_prog_compiler_pic_F77='-fno-common'
21539       ;;
21540
21541     interix3*)
21542       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21543       # Instead, we relocate shared libraries at runtime.
21544       ;;
21545
21546     msdosdjgpp*)
21547       # Just because we use GCC doesn't mean we suddenly get shared libraries
21548       # on systems that don't support them.
21549       lt_prog_compiler_can_build_shared_F77=no
21550       enable_shared=no
21551       ;;
21552
21553     sysv4*MP*)
21554       if test -d /usr/nec; then
21555         lt_prog_compiler_pic_F77=-Kconform_pic
21556       fi
21557       ;;
21558
21559     hpux*)
21560       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21561       # not for PA HP-UX.
21562       case $host_cpu in
21563       hppa*64*|ia64*)
21564         # +Z the default
21565         ;;
21566       *)
21567         lt_prog_compiler_pic_F77='-fPIC'
21568         ;;
21569       esac
21570       ;;
21571
21572     *)
21573       lt_prog_compiler_pic_F77='-fPIC'
21574       ;;
21575     esac
21576   else
21577     # PORTME Check for flag to pass linker flags through the system compiler.
21578     case $host_os in
21579     aix*)
21580       lt_prog_compiler_wl_F77='-Wl,'
21581       if test "$host_cpu" = ia64; then
21582         # AIX 5 now supports IA64 processor
21583         lt_prog_compiler_static_F77='-Bstatic'
21584       else
21585         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21586       fi
21587       ;;
21588       darwin*)
21589         # PIC is the default on this platform
21590         # Common symbols not allowed in MH_DYLIB files
21591        case $cc_basename in
21592          xlc*)
21593          lt_prog_compiler_pic_F77='-qnocommon'
21594          lt_prog_compiler_wl_F77='-Wl,'
21595          ;;
21596        esac
21597        ;;
21598
21599     mingw* | pw32* | os2*)
21600       # This hack is so that the source file can tell whether it is being
21601       # built for inclusion in a dll (and should export symbols for example).
21602       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21603       ;;
21604
21605     hpux9* | hpux10* | hpux11*)
21606       lt_prog_compiler_wl_F77='-Wl,'
21607       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21608       # not for PA HP-UX.
21609       case $host_cpu in
21610       hppa*64*|ia64*)
21611         # +Z the default
21612         ;;
21613       *)
21614         lt_prog_compiler_pic_F77='+Z'
21615         ;;
21616       esac
21617       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21618       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21619       ;;
21620
21621     irix5* | irix6* | nonstopux*)
21622       lt_prog_compiler_wl_F77='-Wl,'
21623       # PIC (with -KPIC) is the default.
21624       lt_prog_compiler_static_F77='-non_shared'
21625       ;;
21626
21627     newsos6)
21628       lt_prog_compiler_pic_F77='-KPIC'
21629       lt_prog_compiler_static_F77='-Bstatic'
21630       ;;
21631
21632     linux*)
21633       case $cc_basename in
21634       icc* | ecc*)
21635         lt_prog_compiler_wl_F77='-Wl,'
21636         lt_prog_compiler_pic_F77='-KPIC'
21637         lt_prog_compiler_static_F77='-static'
21638         ;;
21639       pgcc* | pgf77* | pgf90* | pgf95*)
21640         # Portland Group compilers (*not* the Pentium gcc compiler,
21641         # which looks to be a dead project)
21642         lt_prog_compiler_wl_F77='-Wl,'
21643         lt_prog_compiler_pic_F77='-fpic'
21644         lt_prog_compiler_static_F77='-Bstatic'
21645         ;;
21646       ccc*)
21647         lt_prog_compiler_wl_F77='-Wl,'
21648         # All Alpha code is PIC.
21649         lt_prog_compiler_static_F77='-non_shared'
21650         ;;
21651       esac
21652       ;;
21653
21654     osf3* | osf4* | osf5*)
21655       lt_prog_compiler_wl_F77='-Wl,'
21656       # All OSF/1 code is PIC.
21657       lt_prog_compiler_static_F77='-non_shared'
21658       ;;
21659
21660     solaris*)
21661       lt_prog_compiler_pic_F77='-KPIC'
21662       lt_prog_compiler_static_F77='-Bstatic'
21663       case $cc_basename in
21664       f77* | f90* | f95*)
21665         lt_prog_compiler_wl_F77='-Qoption ld ';;
21666       *)
21667         lt_prog_compiler_wl_F77='-Wl,';;
21668       esac
21669       ;;
21670
21671     sunos4*)
21672       lt_prog_compiler_wl_F77='-Qoption ld '
21673       lt_prog_compiler_pic_F77='-PIC'
21674       lt_prog_compiler_static_F77='-Bstatic'
21675       ;;
21676
21677     sysv4 | sysv4.2uw2* | sysv4.3*)
21678       lt_prog_compiler_wl_F77='-Wl,'
21679       lt_prog_compiler_pic_F77='-KPIC'
21680       lt_prog_compiler_static_F77='-Bstatic'
21681       ;;
21682
21683     sysv4*MP*)
21684       if test -d /usr/nec ;then
21685         lt_prog_compiler_pic_F77='-Kconform_pic'
21686         lt_prog_compiler_static_F77='-Bstatic'
21687       fi
21688       ;;
21689
21690     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21691       lt_prog_compiler_wl_F77='-Wl,'
21692       lt_prog_compiler_pic_F77='-KPIC'
21693       lt_prog_compiler_static_F77='-Bstatic'
21694       ;;
21695
21696     unicos*)
21697       lt_prog_compiler_wl_F77='-Wl,'
21698       lt_prog_compiler_can_build_shared_F77=no
21699       ;;
21700
21701     uts4*)
21702       lt_prog_compiler_pic_F77='-pic'
21703       lt_prog_compiler_static_F77='-Bstatic'
21704       ;;
21705
21706     *)
21707       lt_prog_compiler_can_build_shared_F77=no
21708       ;;
21709     esac
21710   fi
21711
21712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21713 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21714
21715 #
21716 # Check to make sure the PIC flag actually works.
21717 #
21718 if test -n "$lt_prog_compiler_pic_F77"; then
21719
21720 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21721 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21722 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21723   echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725   lt_prog_compiler_pic_works_F77=no
21726   ac_outfile=conftest.$ac_objext
21727    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21728    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21729    # Insert the option either (1) after the last *FLAGS variable, or
21730    # (2) before a word containing "conftest.", or (3) at the end.
21731    # Note that $ac_compile itself does not contain backslashes and begins
21732    # with a dollar sign (not a hyphen), so the echo should work correctly.
21733    # The option is referenced via a variable to avoid confusing sed.
21734    lt_compile=`echo "$ac_compile" | $SED \
21735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21737    -e 's:$: $lt_compiler_flag:'`
21738    (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
21739    (eval "$lt_compile" 2>conftest.err)
21740    ac_status=$?
21741    cat conftest.err >&5
21742    echo "$as_me:21737: \$? = $ac_status" >&5
21743    if (exit $ac_status) && test -s "$ac_outfile"; then
21744      # The compiler can only warn and ignore the option if not recognized
21745      # So say no if there are warnings other than the usual output.
21746      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21747      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21748      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21749        lt_prog_compiler_pic_works_F77=yes
21750      fi
21751    fi
21752    $rm conftest*
21753
21754 fi
21755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21756 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21757
21758 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21759     case $lt_prog_compiler_pic_F77 in
21760      "" | " "*) ;;
21761      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21762      esac
21763 else
21764     lt_prog_compiler_pic_F77=
21765      lt_prog_compiler_can_build_shared_F77=no
21766 fi
21767
21768 fi
21769 case $host_os in
21770   # For platforms which do not support PIC, -DPIC is meaningless:
21771   *djgpp*)
21772     lt_prog_compiler_pic_F77=
21773     ;;
21774   *)
21775     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21776     ;;
21777 esac
21778
21779 #
21780 # Check to make sure the static flag actually works.
21781 #
21782 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21783 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21784 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21785 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21786   echo $ECHO_N "(cached) $ECHO_C" >&6
21787 else
21788   lt_prog_compiler_static_works_F77=no
21789    save_LDFLAGS="$LDFLAGS"
21790    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21791    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21792    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21793      # The linker can only warn and ignore the option if not recognized
21794      # So say no if there are warnings
21795      if test -s conftest.err; then
21796        # Append any errors to the config.log.
21797        cat conftest.err 1>&5
21798        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21799        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21800        if diff conftest.exp conftest.er2 >/dev/null; then
21801          lt_prog_compiler_static_works_F77=yes
21802        fi
21803      else
21804        lt_prog_compiler_static_works_F77=yes
21805      fi
21806    fi
21807    $rm conftest*
21808    LDFLAGS="$save_LDFLAGS"
21809
21810 fi
21811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21812 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21813
21814 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21815     :
21816 else
21817     lt_prog_compiler_static_F77=
21818 fi
21819
21820
21821 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21823 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21824   echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21826   lt_cv_prog_compiler_c_o_F77=no
21827    $rm -r conftest 2>/dev/null
21828    mkdir conftest
21829    cd conftest
21830    mkdir out
21831    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21832
21833    lt_compiler_flag="-o out/conftest2.$ac_objext"
21834    # Insert the option either (1) after the last *FLAGS variable, or
21835    # (2) before a word containing "conftest.", or (3) at the end.
21836    # Note that $ac_compile itself does not contain backslashes and begins
21837    # with a dollar sign (not a hyphen), so the echo should work correctly.
21838    lt_compile=`echo "$ac_compile" | $SED \
21839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21841    -e 's:$: $lt_compiler_flag:'`
21842    (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
21843    (eval "$lt_compile" 2>out/conftest.err)
21844    ac_status=$?
21845    cat out/conftest.err >&5
21846    echo "$as_me:21841: \$? = $ac_status" >&5
21847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21848    then
21849      # The compiler can only warn and ignore the option if not recognized
21850      # So say no if there are warnings
21851      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21852      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21853      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21854        lt_cv_prog_compiler_c_o_F77=yes
21855      fi
21856    fi
21857    chmod u+w . 2>&5
21858    $rm conftest*
21859    # SGI C++ compiler will create directory out/ii_files/ for
21860    # template instantiation
21861    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21862    $rm out/* && rmdir out
21863    cd ..
21864    rmdir conftest
21865    $rm conftest*
21866
21867 fi
21868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21870
21871
21872 hard_links="nottested"
21873 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21874   # do not overwrite the value of need_locks provided by the user
21875   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21876 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21877   hard_links=yes
21878   $rm conftest*
21879   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21880   touch conftest.a
21881   ln conftest.a conftest.b 2>&5 || hard_links=no
21882   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21883   { echo "$as_me:$LINENO: result: $hard_links" >&5
21884 echo "${ECHO_T}$hard_links" >&6; }
21885   if test "$hard_links" = no; then
21886     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21887 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21888     need_locks=warn
21889   fi
21890 else
21891   need_locks=no
21892 fi
21893
21894 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21895 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21896
21897   runpath_var=
21898   allow_undefined_flag_F77=
21899   enable_shared_with_static_runtimes_F77=no
21900   archive_cmds_F77=
21901   archive_expsym_cmds_F77=
21902   old_archive_From_new_cmds_F77=
21903   old_archive_from_expsyms_cmds_F77=
21904   export_dynamic_flag_spec_F77=
21905   whole_archive_flag_spec_F77=
21906   thread_safe_flag_spec_F77=
21907   hardcode_libdir_flag_spec_F77=
21908   hardcode_libdir_flag_spec_ld_F77=
21909   hardcode_libdir_separator_F77=
21910   hardcode_direct_F77=no
21911   hardcode_minus_L_F77=no
21912   hardcode_shlibpath_var_F77=unsupported
21913   link_all_deplibs_F77=unknown
21914   hardcode_automatic_F77=no
21915   module_cmds_F77=
21916   module_expsym_cmds_F77=
21917   always_export_symbols_F77=no
21918   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21919   # include_expsyms should be a list of space-separated symbols to be *always*
21920   # included in the symbol list
21921   include_expsyms_F77=
21922   # exclude_expsyms can be an extended regexp of symbols to exclude
21923   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21924   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21925   # as well as any symbol that contains `d'.
21926   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21927   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21928   # platforms (ab)use it in PIC code, but their linkers get confused if
21929   # the symbol is explicitly referenced.  Since portable code cannot
21930   # rely on this symbol name, it's probably fine to never include it in
21931   # preloaded symbol tables.
21932   extract_expsyms_cmds=
21933   # Just being paranoid about ensuring that cc_basename is set.
21934   for cc_temp in $compiler""; do
21935   case $cc_temp in
21936     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21937     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21938     \-*) ;;
21939     *) break;;
21940   esac
21941 done
21942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21943
21944   case $host_os in
21945   cygwin* | mingw* | pw32*)
21946     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21947     # When not using gcc, we currently assume that we are using
21948     # Microsoft Visual C++.
21949     if test "$GCC" != yes; then
21950       with_gnu_ld=no
21951     fi
21952     ;;
21953   interix*)
21954     # we just hope/assume this is gcc and not c89 (= MSVC++)
21955     with_gnu_ld=yes
21956     ;;
21957   openbsd*)
21958     with_gnu_ld=no
21959     ;;
21960   esac
21961
21962   ld_shlibs_F77=yes
21963   if test "$with_gnu_ld" = yes; then
21964     # If archive_cmds runs LD, not CC, wlarc should be empty
21965     wlarc='${wl}'
21966
21967     # Set some defaults for GNU ld with shared library support. These
21968     # are reset later if shared libraries are not supported. Putting them
21969     # here allows them to be overridden if necessary.
21970     runpath_var=LD_RUN_PATH
21971     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21972     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21973     # ancient GNU ld didn't support --whole-archive et. al.
21974     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21975         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21976       else
21977         whole_archive_flag_spec_F77=
21978     fi
21979     supports_anon_versioning=no
21980     case `$LD -v 2>/dev/null` in
21981       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21982       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21983       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21984       *\ 2.11.*) ;; # other 2.11 versions
21985       *) supports_anon_versioning=yes ;;
21986     esac
21987
21988     # See if GNU ld supports shared libraries.
21989     case $host_os in
21990     aix3* | aix4* | aix5*)
21991       # On AIX/PPC, the GNU linker is very broken
21992       if test "$host_cpu" != ia64; then
21993         ld_shlibs_F77=no
21994         cat <<EOF 1>&2
21995
21996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21997 *** to be unable to reliably create shared libraries on AIX.
21998 *** Therefore, libtool is disabling shared libraries support.  If you
21999 *** really care for shared libraries, you may want to modify your PATH
22000 *** so that a non-GNU linker is found, and then restart.
22001
22002 EOF
22003       fi
22004       ;;
22005
22006     amigaos*)
22007       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)'
22008       hardcode_libdir_flag_spec_F77='-L$libdir'
22009       hardcode_minus_L_F77=yes
22010
22011       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22012       # that the semantics of dynamic libraries on AmigaOS, at least up
22013       # to version 4, is to share data among multiple programs linked
22014       # with the same dynamic library.  Since this doesn't match the
22015       # behavior of shared libraries on other platforms, we can't use
22016       # them.
22017       ld_shlibs_F77=no
22018       ;;
22019
22020     beos*)
22021       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22022         allow_undefined_flag_F77=unsupported
22023         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22024         # support --undefined.  This deserves some investigation.  FIXME
22025         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026       else
22027         ld_shlibs_F77=no
22028       fi
22029       ;;
22030
22031     cygwin* | mingw* | pw32*)
22032       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22033       # as there is no search path for DLLs.
22034       hardcode_libdir_flag_spec_F77='-L$libdir'
22035       allow_undefined_flag_F77=unsupported
22036       always_export_symbols_F77=no
22037       enable_shared_with_static_runtimes_F77=yes
22038       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22039
22040       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22041         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22042         # If the export-symbols file already is a .def file (1st line
22043         # is EXPORTS), use it as is; otherwise, prepend...
22044         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22045           cp $export_symbols $output_objdir/$soname.def;
22046         else
22047           echo EXPORTS > $output_objdir/$soname.def;
22048           cat $export_symbols >> $output_objdir/$soname.def;
22049         fi~
22050         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22051       else
22052         ld_shlibs_F77=no
22053       fi
22054       ;;
22055
22056     interix3*)
22057       hardcode_direct_F77=no
22058       hardcode_shlibpath_var_F77=no
22059       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22060       export_dynamic_flag_spec_F77='${wl}-E'
22061       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22062       # Instead, shared libraries are loaded at an image base (0x10000000 by
22063       # default) and relocated if they conflict, which is a slow very memory
22064       # consuming and fragmenting process.  To avoid this, we pick a random,
22065       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22066       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22067       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'
22068       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'
22069       ;;
22070
22071     linux*)
22072       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22073         tmp_addflag=
22074         case $cc_basename,$host_cpu in
22075         pgcc*)                          # Portland Group C compiler
22076           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'
22077           tmp_addflag=' $pic_flag'
22078           ;;
22079         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22080           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'
22081           tmp_addflag=' $pic_flag -Mnomain' ;;
22082         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22083           tmp_addflag=' -i_dynamic' ;;
22084         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22085           tmp_addflag=' -i_dynamic -nofor_main' ;;
22086         ifc* | ifort*)                  # Intel Fortran compiler
22087           tmp_addflag=' -nofor_main' ;;
22088         esac
22089         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22090
22091         if test $supports_anon_versioning = yes; then
22092           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22093   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22094   $echo "local: *; };" >> $output_objdir/$libname.ver~
22095           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22096         fi
22097       else
22098         ld_shlibs_F77=no
22099       fi
22100       ;;
22101
22102     netbsd*)
22103       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22104         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22105         wlarc=
22106       else
22107         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22108         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22109       fi
22110       ;;
22111
22112     solaris*)
22113       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22114         ld_shlibs_F77=no
22115         cat <<EOF 1>&2
22116
22117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22118 *** create shared libraries on Solaris systems.  Therefore, libtool
22119 *** is disabling shared libraries support.  We urge you to upgrade GNU
22120 *** binutils to release 2.9.1 or newer.  Another option is to modify
22121 *** your PATH or compiler configuration so that the native linker is
22122 *** used, and then restart.
22123
22124 EOF
22125       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22126         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22127         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22128       else
22129         ld_shlibs_F77=no
22130       fi
22131       ;;
22132
22133     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22134       case `$LD -v 2>&1` in
22135         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22136         ld_shlibs_F77=no
22137         cat <<_LT_EOF 1>&2
22138
22139 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22140 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22141 *** is disabling shared libraries support.  We urge you to upgrade GNU
22142 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22143 *** your PATH or compiler configuration so that the native linker is
22144 *** used, and then restart.
22145
22146 _LT_EOF
22147         ;;
22148         *)
22149           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22150             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22151             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22152             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22153           else
22154             ld_shlibs_F77=no
22155           fi
22156         ;;
22157       esac
22158       ;;
22159
22160     sunos4*)
22161       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22162       wlarc=
22163       hardcode_direct_F77=yes
22164       hardcode_shlibpath_var_F77=no
22165       ;;
22166
22167     *)
22168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22169         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22170         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22171       else
22172         ld_shlibs_F77=no
22173       fi
22174       ;;
22175     esac
22176
22177     if test "$ld_shlibs_F77" = no; then
22178       runpath_var=
22179       hardcode_libdir_flag_spec_F77=
22180       export_dynamic_flag_spec_F77=
22181       whole_archive_flag_spec_F77=
22182     fi
22183   else
22184     # PORTME fill in a description of your system's linker (not GNU ld)
22185     case $host_os in
22186     aix3*)
22187       allow_undefined_flag_F77=unsupported
22188       always_export_symbols_F77=yes
22189       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'
22190       # Note: this linker hardcodes the directories in LIBPATH if there
22191       # are no directories specified by -L.
22192       hardcode_minus_L_F77=yes
22193       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22194         # Neither direct hardcoding nor static linking is supported with a
22195         # broken collect2.
22196         hardcode_direct_F77=unsupported
22197       fi
22198       ;;
22199
22200     aix4* | aix5*)
22201       if test "$host_cpu" = ia64; then
22202         # On IA64, the linker does run time linking by default, so we don't
22203         # have to do anything special.
22204         aix_use_runtimelinking=no
22205         exp_sym_flag='-Bexport'
22206         no_entry_flag=""
22207       else
22208         # If we're using GNU nm, then we don't want the "-C" option.
22209         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22210         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22211           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'
22212         else
22213           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'
22214         fi
22215         aix_use_runtimelinking=no
22216
22217         # Test if we are trying to use run time linking or normal
22218         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22219         # need to do runtime linking.
22220         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22221           for ld_flag in $LDFLAGS; do
22222           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22223             aix_use_runtimelinking=yes
22224             break
22225           fi
22226           done
22227           ;;
22228         esac
22229
22230         exp_sym_flag='-bexport'
22231         no_entry_flag='-bnoentry'
22232       fi
22233
22234       # When large executables or shared objects are built, AIX ld can
22235       # have problems creating the table of contents.  If linking a library
22236       # or program results in "error TOC overflow" add -mminimal-toc to
22237       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22238       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22239
22240       archive_cmds_F77=''
22241       hardcode_direct_F77=yes
22242       hardcode_libdir_separator_F77=':'
22243       link_all_deplibs_F77=yes
22244
22245       if test "$GCC" = yes; then
22246         case $host_os in aix4.[012]|aix4.[012].*)
22247         # We only want to do this on AIX 4.2 and lower, the check
22248         # below for broken collect2 doesn't work under 4.3+
22249           collect2name=`${CC} -print-prog-name=collect2`
22250           if test -f "$collect2name" && \
22251            strings "$collect2name" | grep resolve_lib_name >/dev/null
22252           then
22253           # We have reworked collect2
22254           hardcode_direct_F77=yes
22255           else
22256           # We have old collect2
22257           hardcode_direct_F77=unsupported
22258           # It fails to find uninstalled libraries when the uninstalled
22259           # path is not listed in the libpath.  Setting hardcode_minus_L
22260           # to unsupported forces relinking
22261           hardcode_minus_L_F77=yes
22262           hardcode_libdir_flag_spec_F77='-L$libdir'
22263           hardcode_libdir_separator_F77=
22264           fi
22265           ;;
22266         esac
22267         shared_flag='-shared'
22268         if test "$aix_use_runtimelinking" = yes; then
22269           shared_flag="$shared_flag "'${wl}-G'
22270         fi
22271       else
22272         # not using gcc
22273         if test "$host_cpu" = ia64; then
22274         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22275         # chokes on -Wl,-G. The following line is correct:
22276           shared_flag='-G'
22277         else
22278           if test "$aix_use_runtimelinking" = yes; then
22279             shared_flag='${wl}-G'
22280           else
22281             shared_flag='${wl}-bM:SRE'
22282           fi
22283         fi
22284       fi
22285
22286       # It seems that -bexpall does not export symbols beginning with
22287       # underscore (_), so it is better to generate a list of symbols to export.
22288       always_export_symbols_F77=yes
22289       if test "$aix_use_runtimelinking" = yes; then
22290         # Warning - without using the other runtime loading flags (-brtl),
22291         # -berok will link without error, but may produce a broken library.
22292         allow_undefined_flag_F77='-berok'
22293        # Determine the default libpath from the value encoded in an empty executable.
22294        cat >conftest.$ac_ext <<_ACEOF
22295       program main
22296
22297       end
22298 _ACEOF
22299 rm -f conftest.$ac_objext conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_link") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } &&
22313          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22314   { (case "(($ac_try" in
22315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316   *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319   (eval "$ac_try") 2>&5
22320   ac_status=$?
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); }; } &&
22323          { ac_try='test -s conftest$ac_exeext'
22324   { (case "(($ac_try" in
22325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326   *) ac_try_echo=$ac_try;;
22327 esac
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329   (eval "$ac_try") 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); }; }; then
22333
22334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22335 }'`
22336 # Check for a 64-bit object if we didn't find anything.
22337 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; }
22338 }'`; fi
22339 else
22340   echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343
22344 fi
22345
22346 rm -f core conftest.err conftest.$ac_objext \
22347       conftest$ac_exeext conftest.$ac_ext
22348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22349
22350        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22351         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"
22352        else
22353         if test "$host_cpu" = ia64; then
22354           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22355           allow_undefined_flag_F77="-z nodefs"
22356           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"
22357         else
22358          # Determine the default libpath from the value encoded in an empty executable.
22359          cat >conftest.$ac_ext <<_ACEOF
22360       program main
22361
22362       end
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368   *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371   (eval "$ac_link") 2>conftest.er1
22372   ac_status=$?
22373   grep -v '^ *+' conftest.er1 >conftest.err
22374   rm -f conftest.er1
22375   cat conftest.err >&5
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); } &&
22378          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379   { (case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_try") 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; } &&
22388          { ac_try='test -s conftest$ac_exeext'
22389   { (case "(($ac_try" in
22390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391   *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394   (eval "$ac_try") 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; }; then
22398
22399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22400 }'`
22401 # Check for a 64-bit object if we didn't find anything.
22402 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; }
22403 }'`; fi
22404 else
22405   echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22407
22408
22409 fi
22410
22411 rm -f core conftest.err conftest.$ac_objext \
22412       conftest$ac_exeext conftest.$ac_ext
22413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22414
22415          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22416           # Warning - without using the other run time loading flags,
22417           # -berok will link without error, but may produce a broken library.
22418           no_undefined_flag_F77=' ${wl}-bernotok'
22419           allow_undefined_flag_F77=' ${wl}-berok'
22420           # Exported symbols can be pulled into shared objects from archives
22421           whole_archive_flag_spec_F77='$convenience'
22422           archive_cmds_need_lc_F77=yes
22423           # This is similar to how AIX traditionally builds its shared libraries.
22424           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'
22425         fi
22426       fi
22427       ;;
22428
22429     amigaos*)
22430       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)'
22431       hardcode_libdir_flag_spec_F77='-L$libdir'
22432       hardcode_minus_L_F77=yes
22433       # see comment about different semantics on the GNU ld section
22434       ld_shlibs_F77=no
22435       ;;
22436
22437     bsdi[45]*)
22438       export_dynamic_flag_spec_F77=-rdynamic
22439       ;;
22440
22441     cygwin* | mingw* | pw32*)
22442       # When not using gcc, we currently assume that we are using
22443       # Microsoft Visual C++.
22444       # hardcode_libdir_flag_spec is actually meaningless, as there is
22445       # no search path for DLLs.
22446       hardcode_libdir_flag_spec_F77=' '
22447       allow_undefined_flag_F77=unsupported
22448       # Tell ltmain to make .lib files, not .a files.
22449       libext=lib
22450       # Tell ltmain to make .dll files, not .so files.
22451       shrext_cmds=".dll"
22452       # FIXME: Setting linknames here is a bad hack.
22453       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22454       # The linker will automatically build a .lib file if we build a DLL.
22455       old_archive_From_new_cmds_F77='true'
22456       # FIXME: Should let the user specify the lib program.
22457       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22458       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22459       enable_shared_with_static_runtimes_F77=yes
22460       ;;
22461
22462     darwin* | rhapsody*)
22463       case $host_os in
22464         rhapsody* | darwin1.[012])
22465          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22466          ;;
22467        *) # Darwin 1.3 on
22468          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22469            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22470          else
22471            case ${MACOSX_DEPLOYMENT_TARGET} in
22472              10.[012])
22473                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22474                ;;
22475              10.*)
22476                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22477                ;;
22478            esac
22479          fi
22480          ;;
22481       esac
22482       archive_cmds_need_lc_F77=no
22483       hardcode_direct_F77=no
22484       hardcode_automatic_F77=yes
22485       hardcode_shlibpath_var_F77=unsupported
22486       whole_archive_flag_spec_F77=''
22487       link_all_deplibs_F77=yes
22488     if test "$GCC" = yes ; then
22489         output_verbose_link_cmd='echo'
22490         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22491       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22492       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22493       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}'
22494       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}'
22495     else
22496       case $cc_basename in
22497         xlc*)
22498          output_verbose_link_cmd='echo'
22499          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22500          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22501           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22502          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}'
22503           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}'
22504           ;;
22505        *)
22506          ld_shlibs_F77=no
22507           ;;
22508       esac
22509     fi
22510       ;;
22511
22512     dgux*)
22513       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22514       hardcode_libdir_flag_spec_F77='-L$libdir'
22515       hardcode_shlibpath_var_F77=no
22516       ;;
22517
22518     freebsd1*)
22519       ld_shlibs_F77=no
22520       ;;
22521
22522     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22523     # support.  Future versions do this automatically, but an explicit c++rt0.o
22524     # does not break anything, and helps significantly (at the cost of a little
22525     # extra space).
22526     freebsd2.2*)
22527       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22528       hardcode_libdir_flag_spec_F77='-R$libdir'
22529       hardcode_direct_F77=yes
22530       hardcode_shlibpath_var_F77=no
22531       ;;
22532
22533     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22534     freebsd2*)
22535       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22536       hardcode_direct_F77=yes
22537       hardcode_minus_L_F77=yes
22538       hardcode_shlibpath_var_F77=no
22539       ;;
22540
22541     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22542     freebsd* | kfreebsd*-gnu | dragonfly*)
22543       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22544       hardcode_libdir_flag_spec_F77='-R$libdir'
22545       hardcode_direct_F77=yes
22546       hardcode_shlibpath_var_F77=no
22547       ;;
22548
22549     hpux9*)
22550       if test "$GCC" = yes; then
22551         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'
22552       else
22553         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'
22554       fi
22555       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22556       hardcode_libdir_separator_F77=:
22557       hardcode_direct_F77=yes
22558
22559       # hardcode_minus_L: Not really in the search PATH,
22560       # but as the default location of the library.
22561       hardcode_minus_L_F77=yes
22562       export_dynamic_flag_spec_F77='${wl}-E'
22563       ;;
22564
22565     hpux10*)
22566       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22567         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22568       else
22569         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22570       fi
22571       if test "$with_gnu_ld" = no; then
22572         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22573         hardcode_libdir_separator_F77=:
22574
22575         hardcode_direct_F77=yes
22576         export_dynamic_flag_spec_F77='${wl}-E'
22577
22578         # hardcode_minus_L: Not really in the search PATH,
22579         # but as the default location of the library.
22580         hardcode_minus_L_F77=yes
22581       fi
22582       ;;
22583
22584     hpux11*)
22585       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22586         case $host_cpu in
22587         hppa*64*)
22588           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22589           ;;
22590         ia64*)
22591           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22592           ;;
22593         *)
22594           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22595           ;;
22596         esac
22597       else
22598         case $host_cpu in
22599         hppa*64*)
22600           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22601           ;;
22602         ia64*)
22603           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22604           ;;
22605         *)
22606           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22607           ;;
22608         esac
22609       fi
22610       if test "$with_gnu_ld" = no; then
22611         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22612         hardcode_libdir_separator_F77=:
22613
22614         case $host_cpu in
22615         hppa*64*|ia64*)
22616           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22617           hardcode_direct_F77=no
22618           hardcode_shlibpath_var_F77=no
22619           ;;
22620         *)
22621           hardcode_direct_F77=yes
22622           export_dynamic_flag_spec_F77='${wl}-E'
22623
22624           # hardcode_minus_L: Not really in the search PATH,
22625           # but as the default location of the library.
22626           hardcode_minus_L_F77=yes
22627           ;;
22628         esac
22629       fi
22630       ;;
22631
22632     irix5* | irix6* | nonstopux*)
22633       if test "$GCC" = yes; then
22634         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'
22635       else
22636         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'
22637         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22638       fi
22639       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22640       hardcode_libdir_separator_F77=:
22641       link_all_deplibs_F77=yes
22642       ;;
22643
22644     netbsd*)
22645       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22646         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22647       else
22648         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22649       fi
22650       hardcode_libdir_flag_spec_F77='-R$libdir'
22651       hardcode_direct_F77=yes
22652       hardcode_shlibpath_var_F77=no
22653       ;;
22654
22655     newsos6)
22656       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22657       hardcode_direct_F77=yes
22658       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22659       hardcode_libdir_separator_F77=:
22660       hardcode_shlibpath_var_F77=no
22661       ;;
22662
22663     openbsd*)
22664       hardcode_direct_F77=yes
22665       hardcode_shlibpath_var_F77=no
22666       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22667         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22668         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22669         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22670         export_dynamic_flag_spec_F77='${wl}-E'
22671       else
22672        case $host_os in
22673          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22674            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22675            hardcode_libdir_flag_spec_F77='-R$libdir'
22676            ;;
22677          *)
22678            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22679            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22680            ;;
22681        esac
22682       fi
22683       ;;
22684
22685     os2*)
22686       hardcode_libdir_flag_spec_F77='-L$libdir'
22687       hardcode_minus_L_F77=yes
22688       allow_undefined_flag_F77=unsupported
22689       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'
22690       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22691       ;;
22692
22693     osf3*)
22694       if test "$GCC" = yes; then
22695         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22696         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'
22697       else
22698         allow_undefined_flag_F77=' -expect_unresolved \*'
22699         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'
22700       fi
22701       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22702       hardcode_libdir_separator_F77=:
22703       ;;
22704
22705     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22706       if test "$GCC" = yes; then
22707         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22708         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'
22709         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22710       else
22711         allow_undefined_flag_F77=' -expect_unresolved \*'
22712         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'
22713         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~
22714         $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'
22715
22716         # Both c and cxx compiler support -rpath directly
22717         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22718       fi
22719       hardcode_libdir_separator_F77=:
22720       ;;
22721
22722     solaris*)
22723       no_undefined_flag_F77=' -z text'
22724       if test "$GCC" = yes; then
22725         wlarc='${wl}'
22726         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22727         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22729       else
22730         wlarc=''
22731         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22732         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22733         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22734       fi
22735       hardcode_libdir_flag_spec_F77='-R$libdir'
22736       hardcode_shlibpath_var_F77=no
22737       case $host_os in
22738       solaris2.[0-5] | solaris2.[0-5].*) ;;
22739       *)
22740         # The compiler driver will combine linker options so we
22741         # cannot just pass the convience library names through
22742         # without $wl, iff we do not link with $LD.
22743         # Luckily, gcc supports the same syntax we need for Sun Studio.
22744         # Supported since Solaris 2.6 (maybe 2.5.1?)
22745         case $wlarc in
22746         '')
22747           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22748         *)
22749           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' ;;
22750         esac ;;
22751       esac
22752       link_all_deplibs_F77=yes
22753       ;;
22754
22755     sunos4*)
22756       if test "x$host_vendor" = xsequent; then
22757         # Use $CC to link under sequent, because it throws in some extra .o
22758         # files that make .init and .fini sections work.
22759         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22760       else
22761         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22762       fi
22763       hardcode_libdir_flag_spec_F77='-L$libdir'
22764       hardcode_direct_F77=yes
22765       hardcode_minus_L_F77=yes
22766       hardcode_shlibpath_var_F77=no
22767       ;;
22768
22769     sysv4)
22770       case $host_vendor in
22771         sni)
22772           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22773           hardcode_direct_F77=yes # is this really true???
22774         ;;
22775         siemens)
22776           ## LD is ld it makes a PLAMLIB
22777           ## CC just makes a GrossModule.
22778           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22779           reload_cmds_F77='$CC -r -o $output$reload_objs'
22780           hardcode_direct_F77=no
22781         ;;
22782         motorola)
22783           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22784           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22785         ;;
22786       esac
22787       runpath_var='LD_RUN_PATH'
22788       hardcode_shlibpath_var_F77=no
22789       ;;
22790
22791     sysv4.3*)
22792       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22793       hardcode_shlibpath_var_F77=no
22794       export_dynamic_flag_spec_F77='-Bexport'
22795       ;;
22796
22797     sysv4*MP*)
22798       if test -d /usr/nec; then
22799         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22800         hardcode_shlibpath_var_F77=no
22801         runpath_var=LD_RUN_PATH
22802         hardcode_runpath_var=yes
22803         ld_shlibs_F77=yes
22804       fi
22805       ;;
22806
22807     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22808       no_undefined_flag_F77='${wl}-z,text'
22809       archive_cmds_need_lc_F77=no
22810       hardcode_shlibpath_var_F77=no
22811       runpath_var='LD_RUN_PATH'
22812
22813       if test "$GCC" = yes; then
22814         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22815         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22816       else
22817         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22818         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22819       fi
22820       ;;
22821
22822     sysv5* | sco3.2v5* | sco5v6*)
22823       # Note: We can NOT use -z defs as we might desire, because we do not
22824       # link with -lc, and that would cause any symbols used from libc to
22825       # always be unresolved, which means just about no library would
22826       # ever link correctly.  If we're not using GNU ld we use -z text
22827       # though, which does catch some bad symbols but isn't as heavy-handed
22828       # as -z defs.
22829       no_undefined_flag_F77='${wl}-z,text'
22830       allow_undefined_flag_F77='${wl}-z,nodefs'
22831       archive_cmds_need_lc_F77=no
22832       hardcode_shlibpath_var_F77=no
22833       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22834       hardcode_libdir_separator_F77=':'
22835       link_all_deplibs_F77=yes
22836       export_dynamic_flag_spec_F77='${wl}-Bexport'
22837       runpath_var='LD_RUN_PATH'
22838
22839       if test "$GCC" = yes; then
22840         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22841         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22842       else
22843         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22845       fi
22846       ;;
22847
22848     uts4*)
22849       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22850       hardcode_libdir_flag_spec_F77='-L$libdir'
22851       hardcode_shlibpath_var_F77=no
22852       ;;
22853
22854     *)
22855       ld_shlibs_F77=no
22856       ;;
22857     esac
22858   fi
22859
22860 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22861 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22862 test "$ld_shlibs_F77" = no && can_build_shared=no
22863
22864 #
22865 # Do we need to explicitly link libc?
22866 #
22867 case "x$archive_cmds_need_lc_F77" in
22868 x|xyes)
22869   # Assume -lc should be added
22870   archive_cmds_need_lc_F77=yes
22871
22872   if test "$enable_shared" = yes && test "$GCC" = yes; then
22873     case $archive_cmds_F77 in
22874     *'~'*)
22875       # FIXME: we may have to deal with multi-command sequences.
22876       ;;
22877     '$CC '*)
22878       # Test whether the compiler implicitly links with -lc since on some
22879       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22880       # to ld, don't add -lc before -lgcc.
22881       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22882 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22883       $rm conftest*
22884       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22885
22886       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22887   (eval $ac_compile) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); } 2>conftest.err; then
22891         soname=conftest
22892         lib=conftest
22893         libobjs=conftest.$ac_objext
22894         deplibs=
22895         wl=$lt_prog_compiler_wl_F77
22896         pic_flag=$lt_prog_compiler_pic_F77
22897         compiler_flags=-v
22898         linker_flags=-v
22899         verstring=
22900         output_objdir=.
22901         libname=conftest
22902         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22903         allow_undefined_flag_F77=
22904         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22905   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }
22909         then
22910           archive_cmds_need_lc_F77=no
22911         else
22912           archive_cmds_need_lc_F77=yes
22913         fi
22914         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22915       else
22916         cat conftest.err 1>&5
22917       fi
22918       $rm conftest*
22919       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22920 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22921       ;;
22922     esac
22923   fi
22924   ;;
22925 esac
22926
22927 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22929 library_names_spec=
22930 libname_spec='lib$name'
22931 soname_spec=
22932 shrext_cmds=".so"
22933 postinstall_cmds=
22934 postuninstall_cmds=
22935 finish_cmds=
22936 finish_eval=
22937 shlibpath_var=
22938 shlibpath_overrides_runpath=unknown
22939 version_type=none
22940 dynamic_linker="$host_os ld.so"
22941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22942 if test "$GCC" = yes; then
22943   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22944   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22945     # if the path contains ";" then we assume it to be the separator
22946     # otherwise default to the standard path separator (i.e. ":") - it is
22947     # assumed that no part of a normal pathname contains ";" but that should
22948     # okay in the real world where ";" in dirpaths is itself problematic.
22949     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22950   else
22951     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22952   fi
22953 else
22954   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22955 fi
22956 need_lib_prefix=unknown
22957 hardcode_into_libs=no
22958
22959 # when you set need_version to no, make sure it does not cause -set_version
22960 # flags to be left without arguments
22961 need_version=unknown
22962
22963 case $host_os in
22964 aix3*)
22965   version_type=linux
22966   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22967   shlibpath_var=LIBPATH
22968
22969   # AIX 3 has no versioning support, so we append a major version to the name.
22970   soname_spec='${libname}${release}${shared_ext}$major'
22971   ;;
22972
22973 aix4* | aix5*)
22974   version_type=linux
22975   need_lib_prefix=no
22976   need_version=no
22977   hardcode_into_libs=yes
22978   if test "$host_cpu" = ia64; then
22979     # AIX 5 supports IA64
22980     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22981     shlibpath_var=LD_LIBRARY_PATH
22982   else
22983     # With GCC up to 2.95.x, collect2 would create an import file
22984     # for dependence libraries.  The import file would start with
22985     # the line `#! .'.  This would cause the generated library to
22986     # depend on `.', always an invalid library.  This was fixed in
22987     # development snapshots of GCC prior to 3.0.
22988     case $host_os in
22989       aix4 | aix4.[01] | aix4.[01].*)
22990       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22991            echo ' yes '
22992            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22993         :
22994       else
22995         can_build_shared=no
22996       fi
22997       ;;
22998     esac
22999     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23000     # soname into executable. Probably we can add versioning support to
23001     # collect2, so additional links can be useful in future.
23002     if test "$aix_use_runtimelinking" = yes; then
23003       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23004       # instead of lib<name>.a to let people know that these are not
23005       # typical AIX shared libraries.
23006       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007     else
23008       # We preserve .a as extension for shared libraries through AIX4.2
23009       # and later when we are not doing run time linking.
23010       library_names_spec='${libname}${release}.a $libname.a'
23011       soname_spec='${libname}${release}${shared_ext}$major'
23012     fi
23013     shlibpath_var=LIBPATH
23014   fi
23015   ;;
23016
23017 amigaos*)
23018   library_names_spec='$libname.ixlibrary $libname.a'
23019   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23020   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'
23021   ;;
23022
23023 beos*)
23024   library_names_spec='${libname}${shared_ext}'
23025   dynamic_linker="$host_os ld.so"
23026   shlibpath_var=LIBRARY_PATH
23027   ;;
23028
23029 bsdi[45]*)
23030   version_type=linux
23031   need_version=no
23032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033   soname_spec='${libname}${release}${shared_ext}$major'
23034   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23035   shlibpath_var=LD_LIBRARY_PATH
23036   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23037   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23038   # the default ld.so.conf also contains /usr/contrib/lib and
23039   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23040   # libtool to hard-code these into programs
23041   ;;
23042
23043 cygwin* | mingw* | pw32*)
23044   version_type=windows
23045   shrext_cmds=".dll"
23046   need_version=no
23047   need_lib_prefix=no
23048
23049   case $GCC,$host_os in
23050   yes,cygwin* | yes,mingw* | yes,pw32*)
23051     library_names_spec='$libname.dll.a'
23052     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23053     postinstall_cmds='base_file=`basename \${file}`~
23054       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23055       dldir=$destdir/`dirname \$dlpath`~
23056       test -d \$dldir || mkdir -p \$dldir~
23057       $install_prog $dir/$dlname \$dldir/$dlname~
23058       chmod a+x \$dldir/$dlname'
23059     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23060       dlpath=$dir/\$dldll~
23061        $rm \$dlpath'
23062     shlibpath_overrides_runpath=yes
23063
23064     case $host_os in
23065     cygwin*)
23066       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23067       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23069       ;;
23070     mingw*)
23071       # MinGW DLLs use traditional 'lib' prefix
23072       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23073       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23074       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23075         # It is most probably a Windows format PATH printed by
23076         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23077         # path with ; separators, and with drive letters. We can handle the
23078         # drive letters (cygwin fileutils understands them), so leave them,
23079         # especially as we might pass files found there to a mingw objdump,
23080         # which wouldn't understand a cygwinified path. Ahh.
23081         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23082       else
23083         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23084       fi
23085       ;;
23086     pw32*)
23087       # pw32 DLLs use 'pw' prefix rather than 'lib'
23088       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23089       ;;
23090     esac
23091     ;;
23092
23093   *)
23094     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23095     ;;
23096   esac
23097   dynamic_linker='Win32 ld.exe'
23098   # FIXME: first we should search . and the directory the executable is in
23099   shlibpath_var=PATH
23100   ;;
23101
23102 darwin* | rhapsody*)
23103   dynamic_linker="$host_os dyld"
23104   version_type=darwin
23105   need_lib_prefix=no
23106   need_version=no
23107   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23108   soname_spec='${libname}${release}${major}$shared_ext'
23109   shlibpath_overrides_runpath=yes
23110   shlibpath_var=DYLD_LIBRARY_PATH
23111   shrext_cmds='.dylib'
23112   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23113   if test "$GCC" = yes; then
23114     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"`
23115   else
23116     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23117   fi
23118   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23119   ;;
23120
23121 dgux*)
23122   version_type=linux
23123   need_lib_prefix=no
23124   need_version=no
23125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23126   soname_spec='${libname}${release}${shared_ext}$major'
23127   shlibpath_var=LD_LIBRARY_PATH
23128   ;;
23129
23130 freebsd1*)
23131   dynamic_linker=no
23132   ;;
23133
23134 kfreebsd*-gnu)
23135   version_type=linux
23136   need_lib_prefix=no
23137   need_version=no
23138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23139   soname_spec='${libname}${release}${shared_ext}$major'
23140   shlibpath_var=LD_LIBRARY_PATH
23141   shlibpath_overrides_runpath=no
23142   hardcode_into_libs=yes
23143   dynamic_linker='GNU ld.so'
23144   ;;
23145
23146 freebsd* | dragonfly*)
23147   # DragonFly does not have aout.  When/if they implement a new
23148   # versioning mechanism, adjust this.
23149   if test -x /usr/bin/objformat; then
23150     objformat=`/usr/bin/objformat`
23151   else
23152     case $host_os in
23153     freebsd[123]*) objformat=aout ;;
23154     *) objformat=elf ;;
23155     esac
23156   fi
23157   version_type=freebsd-$objformat
23158   case $version_type in
23159     freebsd-elf*)
23160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23161       need_version=no
23162       need_lib_prefix=no
23163       ;;
23164     freebsd-*)
23165       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23166       need_version=yes
23167       ;;
23168   esac
23169   shlibpath_var=LD_LIBRARY_PATH
23170   case $host_os in
23171   freebsd2*)
23172     shlibpath_overrides_runpath=yes
23173     ;;
23174   freebsd3.[01]* | freebsdelf3.[01]*)
23175     shlibpath_overrides_runpath=yes
23176     hardcode_into_libs=yes
23177     ;;
23178   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23179   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23180     shlibpath_overrides_runpath=no
23181     hardcode_into_libs=yes
23182     ;;
23183   freebsd*) # from 4.6 on
23184     shlibpath_overrides_runpath=yes
23185     hardcode_into_libs=yes
23186     ;;
23187   esac
23188   ;;
23189
23190 gnu*)
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   hardcode_into_libs=yes
23198   ;;
23199
23200 hpux9* | hpux10* | hpux11*)
23201   # Give a soname corresponding to the major version so that dld.sl refuses to
23202   # link against other versions.
23203   version_type=sunos
23204   need_lib_prefix=no
23205   need_version=no
23206   case $host_cpu in
23207   ia64*)
23208     shrext_cmds='.so'
23209     hardcode_into_libs=yes
23210     dynamic_linker="$host_os dld.so"
23211     shlibpath_var=LD_LIBRARY_PATH
23212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23214     soname_spec='${libname}${release}${shared_ext}$major'
23215     if test "X$HPUX_IA64_MODE" = X32; then
23216       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23217     else
23218       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23219     fi
23220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23221     ;;
23222    hppa*64*)
23223      shrext_cmds='.sl'
23224      hardcode_into_libs=yes
23225      dynamic_linker="$host_os dld.sl"
23226      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23227      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23229      soname_spec='${libname}${release}${shared_ext}$major'
23230      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23231      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23232      ;;
23233    *)
23234     shrext_cmds='.sl'
23235     dynamic_linker="$host_os dld.sl"
23236     shlibpath_var=SHLIB_PATH
23237     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23239     soname_spec='${libname}${release}${shared_ext}$major'
23240     ;;
23241   esac
23242   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23243   postinstall_cmds='chmod 555 $lib'
23244   ;;
23245
23246 interix3*)
23247   version_type=linux
23248   need_lib_prefix=no
23249   need_version=no
23250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23251   soname_spec='${libname}${release}${shared_ext}$major'
23252   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23253   shlibpath_var=LD_LIBRARY_PATH
23254   shlibpath_overrides_runpath=no
23255   hardcode_into_libs=yes
23256   ;;
23257
23258 irix5* | irix6* | nonstopux*)
23259   case $host_os in
23260     nonstopux*) version_type=nonstopux ;;
23261     *)
23262         if test "$lt_cv_prog_gnu_ld" = yes; then
23263                 version_type=linux
23264         else
23265                 version_type=irix
23266         fi ;;
23267   esac
23268   need_lib_prefix=no
23269   need_version=no
23270   soname_spec='${libname}${release}${shared_ext}$major'
23271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23272   case $host_os in
23273   irix5* | nonstopux*)
23274     libsuff= shlibsuff=
23275     ;;
23276   *)
23277     case $LD in # libtool.m4 will add one of these switches to LD
23278     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23279       libsuff= shlibsuff= libmagic=32-bit;;
23280     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23281       libsuff=32 shlibsuff=N32 libmagic=N32;;
23282     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23283       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23284     *) libsuff= shlibsuff= libmagic=never-match;;
23285     esac
23286     ;;
23287   esac
23288   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23289   shlibpath_overrides_runpath=no
23290   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23291   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23292   hardcode_into_libs=yes
23293   ;;
23294
23295 # No shared lib support for Linux oldld, aout, or coff.
23296 linux*oldld* | linux*aout* | linux*coff*)
23297   dynamic_linker=no
23298   ;;
23299
23300 # This must be Linux ELF.
23301 linux*)
23302   version_type=linux
23303   need_lib_prefix=no
23304   need_version=no
23305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23306   soname_spec='${libname}${release}${shared_ext}$major'
23307   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23308   shlibpath_var=LD_LIBRARY_PATH
23309   shlibpath_overrides_runpath=no
23310   # This implies no fast_install, which is unacceptable.
23311   # Some rework will be needed to allow for fast_install
23312   # before this can be enabled.
23313   hardcode_into_libs=yes
23314
23315   # Append ld.so.conf contents to the search path
23316   if test -f /etc/ld.so.conf; then
23317     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' ' '`
23318     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23319   fi
23320
23321   # We used to test for /lib/ld.so.1 and disable shared libraries on
23322   # powerpc, because MkLinux only supported shared libraries with the
23323   # GNU dynamic linker.  Since this was broken with cross compilers,
23324   # most powerpc-linux boxes support dynamic linking these days and
23325   # people can always --disable-shared, the test was removed, and we
23326   # assume the GNU/Linux dynamic linker is in use.
23327   dynamic_linker='GNU/Linux ld.so'
23328   ;;
23329
23330 knetbsd*-gnu)
23331   version_type=linux
23332   need_lib_prefix=no
23333   need_version=no
23334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23335   soname_spec='${libname}${release}${shared_ext}$major'
23336   shlibpath_var=LD_LIBRARY_PATH
23337   shlibpath_overrides_runpath=no
23338   hardcode_into_libs=yes
23339   dynamic_linker='GNU ld.so'
23340   ;;
23341
23342 netbsd*)
23343   version_type=sunos
23344   need_lib_prefix=no
23345   need_version=no
23346   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23348     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23349     dynamic_linker='NetBSD (a.out) ld.so'
23350   else
23351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352     soname_spec='${libname}${release}${shared_ext}$major'
23353     dynamic_linker='NetBSD ld.elf_so'
23354   fi
23355   shlibpath_var=LD_LIBRARY_PATH
23356   shlibpath_overrides_runpath=yes
23357   hardcode_into_libs=yes
23358   ;;
23359
23360 newsos6)
23361   version_type=linux
23362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23363   shlibpath_var=LD_LIBRARY_PATH
23364   shlibpath_overrides_runpath=yes
23365   ;;
23366
23367 nto-qnx*)
23368   version_type=linux
23369   need_lib_prefix=no
23370   need_version=no
23371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23372   soname_spec='${libname}${release}${shared_ext}$major'
23373   shlibpath_var=LD_LIBRARY_PATH
23374   shlibpath_overrides_runpath=yes
23375   ;;
23376
23377 openbsd*)
23378   version_type=sunos
23379   sys_lib_dlsearch_path_spec="/usr/lib"
23380   need_lib_prefix=no
23381   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23382   case $host_os in
23383     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23384     *)                         need_version=no  ;;
23385   esac
23386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23387   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23388   shlibpath_var=LD_LIBRARY_PATH
23389   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23390     case $host_os in
23391       openbsd2.[89] | openbsd2.[89].*)
23392         shlibpath_overrides_runpath=no
23393         ;;
23394       *)
23395         shlibpath_overrides_runpath=yes
23396         ;;
23397       esac
23398   else
23399     shlibpath_overrides_runpath=yes
23400   fi
23401   ;;
23402
23403 os2*)
23404   libname_spec='$name'
23405   shrext_cmds=".dll"
23406   need_lib_prefix=no
23407   library_names_spec='$libname${shared_ext} $libname.a'
23408   dynamic_linker='OS/2 ld.exe'
23409   shlibpath_var=LIBPATH
23410   ;;
23411
23412 osf3* | osf4* | osf5*)
23413   version_type=osf
23414   need_lib_prefix=no
23415   need_version=no
23416   soname_spec='${libname}${release}${shared_ext}$major'
23417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23418   shlibpath_var=LD_LIBRARY_PATH
23419   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23420   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23421   ;;
23422
23423 solaris*)
23424   version_type=linux
23425   need_lib_prefix=no
23426   need_version=no
23427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428   soname_spec='${libname}${release}${shared_ext}$major'
23429   shlibpath_var=LD_LIBRARY_PATH
23430   shlibpath_overrides_runpath=yes
23431   hardcode_into_libs=yes
23432   # ldd complains unless libraries are executable
23433   postinstall_cmds='chmod +x $lib'
23434   ;;
23435
23436 sunos4*)
23437   version_type=sunos
23438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23439   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23440   shlibpath_var=LD_LIBRARY_PATH
23441   shlibpath_overrides_runpath=yes
23442   if test "$with_gnu_ld" = yes; then
23443     need_lib_prefix=no
23444   fi
23445   need_version=yes
23446   ;;
23447
23448 sysv4 | sysv4.3*)
23449   version_type=linux
23450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23451   soname_spec='${libname}${release}${shared_ext}$major'
23452   shlibpath_var=LD_LIBRARY_PATH
23453   case $host_vendor in
23454     sni)
23455       shlibpath_overrides_runpath=no
23456       need_lib_prefix=no
23457       export_dynamic_flag_spec='${wl}-Blargedynsym'
23458       runpath_var=LD_RUN_PATH
23459       ;;
23460     siemens)
23461       need_lib_prefix=no
23462       ;;
23463     motorola)
23464       need_lib_prefix=no
23465       need_version=no
23466       shlibpath_overrides_runpath=no
23467       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23468       ;;
23469   esac
23470   ;;
23471
23472 sysv4*MP*)
23473   if test -d /usr/nec ;then
23474     version_type=linux
23475     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23476     soname_spec='$libname${shared_ext}.$major'
23477     shlibpath_var=LD_LIBRARY_PATH
23478   fi
23479   ;;
23480
23481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23482   version_type=freebsd-elf
23483   need_lib_prefix=no
23484   need_version=no
23485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23486   soname_spec='${libname}${release}${shared_ext}$major'
23487   shlibpath_var=LD_LIBRARY_PATH
23488   hardcode_into_libs=yes
23489   if test "$with_gnu_ld" = yes; then
23490     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23491     shlibpath_overrides_runpath=no
23492   else
23493     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23494     shlibpath_overrides_runpath=yes
23495     case $host_os in
23496       sco3.2v5*)
23497         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23498         ;;
23499     esac
23500   fi
23501   sys_lib_dlsearch_path_spec='/usr/lib'
23502   ;;
23503
23504 uts4*)
23505   version_type=linux
23506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23507   soname_spec='${libname}${release}${shared_ext}$major'
23508   shlibpath_var=LD_LIBRARY_PATH
23509   ;;
23510
23511 *)
23512   dynamic_linker=no
23513   ;;
23514 esac
23515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23516 echo "${ECHO_T}$dynamic_linker" >&6; }
23517 test "$dynamic_linker" = no && can_build_shared=no
23518
23519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23520 if test "$GCC" = yes; then
23521   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23522 fi
23523
23524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23526 hardcode_action_F77=
23527 if test -n "$hardcode_libdir_flag_spec_F77" || \
23528    test -n "$runpath_var_F77" || \
23529    test "X$hardcode_automatic_F77" = "Xyes" ; then
23530
23531   # We can hardcode non-existant directories.
23532   if test "$hardcode_direct_F77" != no &&
23533      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23534      # have to relink, otherwise we might link with an installed library
23535      # when we should be linking with a yet-to-be-installed one
23536      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23537      test "$hardcode_minus_L_F77" != no; then
23538     # Linking always hardcodes the temporary library directory.
23539     hardcode_action_F77=relink
23540   else
23541     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23542     hardcode_action_F77=immediate
23543   fi
23544 else
23545   # We cannot hardcode anything, or else we can only hardcode existing
23546   # directories.
23547   hardcode_action_F77=unsupported
23548 fi
23549 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23550 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23551
23552 if test "$hardcode_action_F77" = relink; then
23553   # Fast installation is not supported
23554   enable_fast_install=no
23555 elif test "$shlibpath_overrides_runpath" = yes ||
23556      test "$enable_shared" = no; then
23557   # Fast installation is not necessary
23558   enable_fast_install=needless
23559 fi
23560
23561
23562 # The else clause should only fire when bootstrapping the
23563 # libtool distribution, otherwise you forgot to ship ltmain.sh
23564 # with your package, and you will get complaints that there are
23565 # no rules to generate ltmain.sh.
23566 if test -f "$ltmain"; then
23567   # See if we are running on zsh, and set the options which allow our commands through
23568   # without removal of \ escapes.
23569   if test -n "${ZSH_VERSION+set}" ; then
23570     setopt NO_GLOB_SUBST
23571   fi
23572   # Now quote all the things that may contain metacharacters while being
23573   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23574   # variables and quote the copies for generation of the libtool script.
23575   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23576     SED SHELL STRIP \
23577     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23578     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23579     deplibs_check_method reload_flag reload_cmds need_locks \
23580     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23581     lt_cv_sys_global_symbol_to_c_name_address \
23582     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23583     old_postinstall_cmds old_postuninstall_cmds \
23584     compiler_F77 \
23585     CC_F77 \
23586     LD_F77 \
23587     lt_prog_compiler_wl_F77 \
23588     lt_prog_compiler_pic_F77 \
23589     lt_prog_compiler_static_F77 \
23590     lt_prog_compiler_no_builtin_flag_F77 \
23591     export_dynamic_flag_spec_F77 \
23592     thread_safe_flag_spec_F77 \
23593     whole_archive_flag_spec_F77 \
23594     enable_shared_with_static_runtimes_F77 \
23595     old_archive_cmds_F77 \
23596     old_archive_from_new_cmds_F77 \
23597     predep_objects_F77 \
23598     postdep_objects_F77 \
23599     predeps_F77 \
23600     postdeps_F77 \
23601     compiler_lib_search_path_F77 \
23602     archive_cmds_F77 \
23603     archive_expsym_cmds_F77 \
23604     postinstall_cmds_F77 \
23605     postuninstall_cmds_F77 \
23606     old_archive_from_expsyms_cmds_F77 \
23607     allow_undefined_flag_F77 \
23608     no_undefined_flag_F77 \
23609     export_symbols_cmds_F77 \
23610     hardcode_libdir_flag_spec_F77 \
23611     hardcode_libdir_flag_spec_ld_F77 \
23612     hardcode_libdir_separator_F77 \
23613     hardcode_automatic_F77 \
23614     module_cmds_F77 \
23615     module_expsym_cmds_F77 \
23616     lt_cv_prog_compiler_c_o_F77 \
23617     exclude_expsyms_F77 \
23618     include_expsyms_F77; do
23619
23620     case $var in
23621     old_archive_cmds_F77 | \
23622     old_archive_from_new_cmds_F77 | \
23623     archive_cmds_F77 | \
23624     archive_expsym_cmds_F77 | \
23625     module_cmds_F77 | \
23626     module_expsym_cmds_F77 | \
23627     old_archive_from_expsyms_cmds_F77 | \
23628     export_symbols_cmds_F77 | \
23629     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23630     postinstall_cmds | postuninstall_cmds | \
23631     old_postinstall_cmds | old_postuninstall_cmds | \
23632     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23633       # Double-quote double-evaled strings.
23634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23635       ;;
23636     *)
23637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23638       ;;
23639     esac
23640   done
23641
23642   case $lt_echo in
23643   *'\$0 --fallback-echo"')
23644     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23645     ;;
23646   esac
23647
23648 cfgfile="$ofile"
23649
23650   cat <<__EOF__ >> "$cfgfile"
23651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23652
23653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23654
23655 # Shell to use when invoking shell scripts.
23656 SHELL=$lt_SHELL
23657
23658 # Whether or not to build shared libraries.
23659 build_libtool_libs=$enable_shared
23660
23661 # Whether or not to build static libraries.
23662 build_old_libs=$enable_static
23663
23664 # Whether or not to add -lc for building shared libraries.
23665 build_libtool_need_lc=$archive_cmds_need_lc_F77
23666
23667 # Whether or not to disallow shared libs when runtime libs are static
23668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23669
23670 # Whether or not to optimize for fast installation.
23671 fast_install=$enable_fast_install
23672
23673 # The host system.
23674 host_alias=$host_alias
23675 host=$host
23676 host_os=$host_os
23677
23678 # The build system.
23679 build_alias=$build_alias
23680 build=$build
23681 build_os=$build_os
23682
23683 # An echo program that does not interpret backslashes.
23684 echo=$lt_echo
23685
23686 # The archiver.
23687 AR=$lt_AR
23688 AR_FLAGS=$lt_AR_FLAGS
23689
23690 # A C compiler.
23691 LTCC=$lt_LTCC
23692
23693 # LTCC compiler flags.
23694 LTCFLAGS=$lt_LTCFLAGS
23695
23696 # A language-specific compiler.
23697 CC=$lt_compiler_F77
23698
23699 # Is the compiler the GNU C compiler?
23700 with_gcc=$GCC_F77
23701
23702 # An ERE matcher.
23703 EGREP=$lt_EGREP
23704
23705 # The linker used to build libraries.
23706 LD=$lt_LD_F77
23707
23708 # Whether we need hard or soft links.
23709 LN_S=$lt_LN_S
23710
23711 # A BSD-compatible nm program.
23712 NM=$lt_NM
23713
23714 # A symbol stripping program
23715 STRIP=$lt_STRIP
23716
23717 # Used to examine libraries when file_magic_cmd begins "file"
23718 MAGIC_CMD=$MAGIC_CMD
23719
23720 # Used on cygwin: DLL creation program.
23721 DLLTOOL="$DLLTOOL"
23722
23723 # Used on cygwin: object dumper.
23724 OBJDUMP="$OBJDUMP"
23725
23726 # Used on cygwin: assembler.
23727 AS="$AS"
23728
23729 # The name of the directory that contains temporary libtool files.
23730 objdir=$objdir
23731
23732 # How to create reloadable object files.
23733 reload_flag=$lt_reload_flag
23734 reload_cmds=$lt_reload_cmds
23735
23736 # How to pass a linker flag through the compiler.
23737 wl=$lt_lt_prog_compiler_wl_F77
23738
23739 # Object file suffix (normally "o").
23740 objext="$ac_objext"
23741
23742 # Old archive suffix (normally "a").
23743 libext="$libext"
23744
23745 # Shared library suffix (normally ".so").
23746 shrext_cmds='$shrext_cmds'
23747
23748 # Executable file suffix (normally "").
23749 exeext="$exeext"
23750
23751 # Additional compiler flags for building library objects.
23752 pic_flag=$lt_lt_prog_compiler_pic_F77
23753 pic_mode=$pic_mode
23754
23755 # What is the maximum length of a command?
23756 max_cmd_len=$lt_cv_sys_max_cmd_len
23757
23758 # Does compiler simultaneously support -c and -o options?
23759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23760
23761 # Must we lock files when doing compilation?
23762 need_locks=$lt_need_locks
23763
23764 # Do we need the lib prefix for modules?
23765 need_lib_prefix=$need_lib_prefix
23766
23767 # Do we need a version for libraries?
23768 need_version=$need_version
23769
23770 # Whether dlopen is supported.
23771 dlopen_support=$enable_dlopen
23772
23773 # Whether dlopen of programs is supported.
23774 dlopen_self=$enable_dlopen_self
23775
23776 # Whether dlopen of statically linked programs is supported.
23777 dlopen_self_static=$enable_dlopen_self_static
23778
23779 # Compiler flag to prevent dynamic linking.
23780 link_static_flag=$lt_lt_prog_compiler_static_F77
23781
23782 # Compiler flag to turn off builtin functions.
23783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23784
23785 # Compiler flag to allow reflexive dlopens.
23786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23787
23788 # Compiler flag to generate shared objects directly from archives.
23789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23790
23791 # Compiler flag to generate thread-safe objects.
23792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23793
23794 # Library versioning type.
23795 version_type=$version_type
23796
23797 # Format of library name prefix.
23798 libname_spec=$lt_libname_spec
23799
23800 # List of archive names.  First name is the real one, the rest are links.
23801 # The last name is the one that the linker finds with -lNAME.
23802 library_names_spec=$lt_library_names_spec
23803
23804 # The coded name of the library, if different from the real name.
23805 soname_spec=$lt_soname_spec
23806
23807 # Commands used to build and install an old-style archive.
23808 RANLIB=$lt_RANLIB
23809 old_archive_cmds=$lt_old_archive_cmds_F77
23810 old_postinstall_cmds=$lt_old_postinstall_cmds
23811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23812
23813 # Create an old-style archive from a shared archive.
23814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23815
23816 # Create a temporary old-style archive to link instead of a shared archive.
23817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23818
23819 # Commands used to build and install a shared archive.
23820 archive_cmds=$lt_archive_cmds_F77
23821 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23822 postinstall_cmds=$lt_postinstall_cmds
23823 postuninstall_cmds=$lt_postuninstall_cmds
23824
23825 # Commands used to build a loadable module (assumed same as above if empty)
23826 module_cmds=$lt_module_cmds_F77
23827 module_expsym_cmds=$lt_module_expsym_cmds_F77
23828
23829 # Commands to strip libraries.
23830 old_striplib=$lt_old_striplib
23831 striplib=$lt_striplib
23832
23833 # Dependencies to place before the objects being linked to create a
23834 # shared library.
23835 predep_objects=$lt_predep_objects_F77
23836
23837 # Dependencies to place after the objects being linked to create a
23838 # shared library.
23839 postdep_objects=$lt_postdep_objects_F77
23840
23841 # Dependencies to place before the objects being linked to create a
23842 # shared library.
23843 predeps=$lt_predeps_F77
23844
23845 # Dependencies to place after the objects being linked to create a
23846 # shared library.
23847 postdeps=$lt_postdeps_F77
23848
23849 # The library search path used internally by the compiler when linking
23850 # a shared library.
23851 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23852
23853 # Method to check whether dependent libraries are shared objects.
23854 deplibs_check_method=$lt_deplibs_check_method
23855
23856 # Command to use when deplibs_check_method == file_magic.
23857 file_magic_cmd=$lt_file_magic_cmd
23858
23859 # Flag that allows shared libraries with undefined symbols to be built.
23860 allow_undefined_flag=$lt_allow_undefined_flag_F77
23861
23862 # Flag that forces no undefined symbols.
23863 no_undefined_flag=$lt_no_undefined_flag_F77
23864
23865 # Commands used to finish a libtool library installation in a directory.
23866 finish_cmds=$lt_finish_cmds
23867
23868 # Same as above, but a single script fragment to be evaled but not shown.
23869 finish_eval=$lt_finish_eval
23870
23871 # Take the output of nm and produce a listing of raw symbols and C names.
23872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23873
23874 # Transform the output of nm in a proper C declaration
23875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23876
23877 # Transform the output of nm in a C name address pair
23878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23879
23880 # This is the shared library runtime path variable.
23881 runpath_var=$runpath_var
23882
23883 # This is the shared library path variable.
23884 shlibpath_var=$shlibpath_var
23885
23886 # Is shlibpath searched before the hard-coded library search path?
23887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23888
23889 # How to hardcode a shared library path into an executable.
23890 hardcode_action=$hardcode_action_F77
23891
23892 # Whether we should hardcode library paths into libraries.
23893 hardcode_into_libs=$hardcode_into_libs
23894
23895 # Flag to hardcode \$libdir into a binary during linking.
23896 # This must work even if \$libdir does not exist.
23897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23898
23899 # If ld is used when linking, flag to hardcode \$libdir into
23900 # a binary during linking. This must work even if \$libdir does
23901 # not exist.
23902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23903
23904 # Whether we need a single -rpath flag with a separated argument.
23905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23906
23907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23908 # resulting binary.
23909 hardcode_direct=$hardcode_direct_F77
23910
23911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23912 # resulting binary.
23913 hardcode_minus_L=$hardcode_minus_L_F77
23914
23915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23916 # the resulting binary.
23917 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23918
23919 # Set to yes if building a shared library automatically hardcodes DIR into the library
23920 # and all subsequent libraries and executables linked against it.
23921 hardcode_automatic=$hardcode_automatic_F77
23922
23923 # Variables whose values should be saved in libtool wrapper scripts and
23924 # restored at relink time.
23925 variables_saved_for_relink="$variables_saved_for_relink"
23926
23927 # Whether libtool must link a program against all its dependency libraries.
23928 link_all_deplibs=$link_all_deplibs_F77
23929
23930 # Compile-time system search path for libraries
23931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23932
23933 # Run-time system search path for libraries
23934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23935
23936 # Fix the shell variable \$srcfile for the compiler.
23937 fix_srcfile_path="$fix_srcfile_path_F77"
23938
23939 # Set to yes if exported symbols are required.
23940 always_export_symbols=$always_export_symbols_F77
23941
23942 # The commands to list exported symbols.
23943 export_symbols_cmds=$lt_export_symbols_cmds_F77
23944
23945 # The commands to extract the exported symbol list from a shared archive.
23946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23947
23948 # Symbols that should not be listed in the preloaded symbols.
23949 exclude_expsyms=$lt_exclude_expsyms_F77
23950
23951 # Symbols that must always be exported.
23952 include_expsyms=$lt_include_expsyms_F77
23953
23954 # ### END LIBTOOL TAG CONFIG: $tagname
23955
23956 __EOF__
23957
23958
23959 else
23960   # If there is no Makefile yet, we rely on a make rule to execute
23961   # `config.status --recheck' to rerun these tests and create the
23962   # libtool script then.
23963   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23964   if test -f "$ltmain_in"; then
23965     test -f Makefile && make "$ltmain"
23966   fi
23967 fi
23968
23969
23970 ac_ext=c
23971 ac_cpp='$CPP $CPPFLAGS'
23972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23975
23976 CC="$lt_save_CC"
23977
23978         else
23979           tagname=""
23980         fi
23981         ;;
23982
23983       GCJ)
23984         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23985           ac_ext=c
23986 ac_cpp='$CPP $CPPFLAGS'
23987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23990
23991
23992 # Source file extension for Java test sources.
23993 ac_ext=java
23994
23995 # Object file extension for compiled Java test sources.
23996 objext=o
23997 objext_GCJ=$objext
23998
23999 # Code to be used in simple compile tests
24000 lt_simple_compile_test_code="class foo {}\n"
24001
24002 # Code to be used in simple link tests
24003 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24004
24005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24006
24007 # If no C compiler was specified, use CC.
24008 LTCC=${LTCC-"$CC"}
24009
24010 # If no C compiler flags were specified, use CFLAGS.
24011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24012
24013 # Allow CC to be a program name with arguments.
24014 compiler=$CC
24015
24016
24017 # save warnings/boilerplate of simple test code
24018 ac_outfile=conftest.$ac_objext
24019 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24020 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24021 _lt_compiler_boilerplate=`cat conftest.err`
24022 $rm conftest*
24023
24024 ac_outfile=conftest.$ac_objext
24025 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24026 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24027 _lt_linker_boilerplate=`cat conftest.err`
24028 $rm conftest*
24029
24030
24031 # Allow CC to be a program name with arguments.
24032 lt_save_CC="$CC"
24033 CC=${GCJ-"gcj"}
24034 compiler=$CC
24035 compiler_GCJ=$CC
24036 for cc_temp in $compiler""; do
24037   case $cc_temp in
24038     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24039     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24040     \-*) ;;
24041     *) break;;
24042   esac
24043 done
24044 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24045
24046
24047 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24048 archive_cmds_need_lc_GCJ=no
24049
24050 old_archive_cmds_GCJ=$old_archive_cmds
24051
24052
24053 lt_prog_compiler_no_builtin_flag_GCJ=
24054
24055 if test "$GCC" = yes; then
24056   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24057
24058
24059 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24060 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24061 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24062   echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064   lt_cv_prog_compiler_rtti_exceptions=no
24065   ac_outfile=conftest.$ac_objext
24066    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24067    lt_compiler_flag="-fno-rtti -fno-exceptions"
24068    # Insert the option either (1) after the last *FLAGS variable, or
24069    # (2) before a word containing "conftest.", or (3) at the end.
24070    # Note that $ac_compile itself does not contain backslashes and begins
24071    # with a dollar sign (not a hyphen), so the echo should work correctly.
24072    # The option is referenced via a variable to avoid confusing sed.
24073    lt_compile=`echo "$ac_compile" | $SED \
24074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076    -e 's:$: $lt_compiler_flag:'`
24077    (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
24078    (eval "$lt_compile" 2>conftest.err)
24079    ac_status=$?
24080    cat conftest.err >&5
24081    echo "$as_me:24076: \$? = $ac_status" >&5
24082    if (exit $ac_status) && test -s "$ac_outfile"; then
24083      # The compiler can only warn and ignore the option if not recognized
24084      # So say no if there are warnings other than the usual output.
24085      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24086      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24087      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24088        lt_cv_prog_compiler_rtti_exceptions=yes
24089      fi
24090    fi
24091    $rm conftest*
24092
24093 fi
24094 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24095 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24096
24097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24098     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24099 else
24100     :
24101 fi
24102
24103 fi
24104
24105 lt_prog_compiler_wl_GCJ=
24106 lt_prog_compiler_pic_GCJ=
24107 lt_prog_compiler_static_GCJ=
24108
24109 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24110 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24111
24112   if test "$GCC" = yes; then
24113     lt_prog_compiler_wl_GCJ='-Wl,'
24114     lt_prog_compiler_static_GCJ='-static'
24115
24116     case $host_os in
24117       aix*)
24118       # All AIX code is PIC.
24119       if test "$host_cpu" = ia64; then
24120         # AIX 5 now supports IA64 processor
24121         lt_prog_compiler_static_GCJ='-Bstatic'
24122       fi
24123       ;;
24124
24125     amigaos*)
24126       # FIXME: we need at least 68020 code to build shared libraries, but
24127       # adding the `-m68020' flag to GCC prevents building anything better,
24128       # like `-m68040'.
24129       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24130       ;;
24131
24132     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24133       # PIC is the default for these OSes.
24134       ;;
24135
24136     mingw* | pw32* | os2*)
24137       # This hack is so that the source file can tell whether it is being
24138       # built for inclusion in a dll (and should export symbols for example).
24139       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24140       ;;
24141
24142     darwin* | rhapsody*)
24143       # PIC is the default on this platform
24144       # Common symbols not allowed in MH_DYLIB files
24145       lt_prog_compiler_pic_GCJ='-fno-common'
24146       ;;
24147
24148     interix3*)
24149       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24150       # Instead, we relocate shared libraries at runtime.
24151       ;;
24152
24153     msdosdjgpp*)
24154       # Just because we use GCC doesn't mean we suddenly get shared libraries
24155       # on systems that don't support them.
24156       lt_prog_compiler_can_build_shared_GCJ=no
24157       enable_shared=no
24158       ;;
24159
24160     sysv4*MP*)
24161       if test -d /usr/nec; then
24162         lt_prog_compiler_pic_GCJ=-Kconform_pic
24163       fi
24164       ;;
24165
24166     hpux*)
24167       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24168       # not for PA HP-UX.
24169       case $host_cpu in
24170       hppa*64*|ia64*)
24171         # +Z the default
24172         ;;
24173       *)
24174         lt_prog_compiler_pic_GCJ='-fPIC'
24175         ;;
24176       esac
24177       ;;
24178
24179     *)
24180       lt_prog_compiler_pic_GCJ='-fPIC'
24181       ;;
24182     esac
24183   else
24184     # PORTME Check for flag to pass linker flags through the system compiler.
24185     case $host_os in
24186     aix*)
24187       lt_prog_compiler_wl_GCJ='-Wl,'
24188       if test "$host_cpu" = ia64; then
24189         # AIX 5 now supports IA64 processor
24190         lt_prog_compiler_static_GCJ='-Bstatic'
24191       else
24192         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24193       fi
24194       ;;
24195       darwin*)
24196         # PIC is the default on this platform
24197         # Common symbols not allowed in MH_DYLIB files
24198        case $cc_basename in
24199          xlc*)
24200          lt_prog_compiler_pic_GCJ='-qnocommon'
24201          lt_prog_compiler_wl_GCJ='-Wl,'
24202          ;;
24203        esac
24204        ;;
24205
24206     mingw* | pw32* | os2*)
24207       # This hack is so that the source file can tell whether it is being
24208       # built for inclusion in a dll (and should export symbols for example).
24209       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24210       ;;
24211
24212     hpux9* | hpux10* | hpux11*)
24213       lt_prog_compiler_wl_GCJ='-Wl,'
24214       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24215       # not for PA HP-UX.
24216       case $host_cpu in
24217       hppa*64*|ia64*)
24218         # +Z the default
24219         ;;
24220       *)
24221         lt_prog_compiler_pic_GCJ='+Z'
24222         ;;
24223       esac
24224       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24225       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24226       ;;
24227
24228     irix5* | irix6* | nonstopux*)
24229       lt_prog_compiler_wl_GCJ='-Wl,'
24230       # PIC (with -KPIC) is the default.
24231       lt_prog_compiler_static_GCJ='-non_shared'
24232       ;;
24233
24234     newsos6)
24235       lt_prog_compiler_pic_GCJ='-KPIC'
24236       lt_prog_compiler_static_GCJ='-Bstatic'
24237       ;;
24238
24239     linux*)
24240       case $cc_basename in
24241       icc* | ecc*)
24242         lt_prog_compiler_wl_GCJ='-Wl,'
24243         lt_prog_compiler_pic_GCJ='-KPIC'
24244         lt_prog_compiler_static_GCJ='-static'
24245         ;;
24246       pgcc* | pgf77* | pgf90* | pgf95*)
24247         # Portland Group compilers (*not* the Pentium gcc compiler,
24248         # which looks to be a dead project)
24249         lt_prog_compiler_wl_GCJ='-Wl,'
24250         lt_prog_compiler_pic_GCJ='-fpic'
24251         lt_prog_compiler_static_GCJ='-Bstatic'
24252         ;;
24253       ccc*)
24254         lt_prog_compiler_wl_GCJ='-Wl,'
24255         # All Alpha code is PIC.
24256         lt_prog_compiler_static_GCJ='-non_shared'
24257         ;;
24258       esac
24259       ;;
24260
24261     osf3* | osf4* | osf5*)
24262       lt_prog_compiler_wl_GCJ='-Wl,'
24263       # All OSF/1 code is PIC.
24264       lt_prog_compiler_static_GCJ='-non_shared'
24265       ;;
24266
24267     solaris*)
24268       lt_prog_compiler_pic_GCJ='-KPIC'
24269       lt_prog_compiler_static_GCJ='-Bstatic'
24270       case $cc_basename in
24271       f77* | f90* | f95*)
24272         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24273       *)
24274         lt_prog_compiler_wl_GCJ='-Wl,';;
24275       esac
24276       ;;
24277
24278     sunos4*)
24279       lt_prog_compiler_wl_GCJ='-Qoption ld '
24280       lt_prog_compiler_pic_GCJ='-PIC'
24281       lt_prog_compiler_static_GCJ='-Bstatic'
24282       ;;
24283
24284     sysv4 | sysv4.2uw2* | sysv4.3*)
24285       lt_prog_compiler_wl_GCJ='-Wl,'
24286       lt_prog_compiler_pic_GCJ='-KPIC'
24287       lt_prog_compiler_static_GCJ='-Bstatic'
24288       ;;
24289
24290     sysv4*MP*)
24291       if test -d /usr/nec ;then
24292         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24293         lt_prog_compiler_static_GCJ='-Bstatic'
24294       fi
24295       ;;
24296
24297     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24298       lt_prog_compiler_wl_GCJ='-Wl,'
24299       lt_prog_compiler_pic_GCJ='-KPIC'
24300       lt_prog_compiler_static_GCJ='-Bstatic'
24301       ;;
24302
24303     unicos*)
24304       lt_prog_compiler_wl_GCJ='-Wl,'
24305       lt_prog_compiler_can_build_shared_GCJ=no
24306       ;;
24307
24308     uts4*)
24309       lt_prog_compiler_pic_GCJ='-pic'
24310       lt_prog_compiler_static_GCJ='-Bstatic'
24311       ;;
24312
24313     *)
24314       lt_prog_compiler_can_build_shared_GCJ=no
24315       ;;
24316     esac
24317   fi
24318
24319 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24320 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24321
24322 #
24323 # Check to make sure the PIC flag actually works.
24324 #
24325 if test -n "$lt_prog_compiler_pic_GCJ"; then
24326
24327 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24328 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24329 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24330   echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332   lt_prog_compiler_pic_works_GCJ=no
24333   ac_outfile=conftest.$ac_objext
24334    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24335    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24336    # Insert the option either (1) after the last *FLAGS variable, or
24337    # (2) before a word containing "conftest.", or (3) at the end.
24338    # Note that $ac_compile itself does not contain backslashes and begins
24339    # with a dollar sign (not a hyphen), so the echo should work correctly.
24340    # The option is referenced via a variable to avoid confusing sed.
24341    lt_compile=`echo "$ac_compile" | $SED \
24342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24344    -e 's:$: $lt_compiler_flag:'`
24345    (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
24346    (eval "$lt_compile" 2>conftest.err)
24347    ac_status=$?
24348    cat conftest.err >&5
24349    echo "$as_me:24344: \$? = $ac_status" >&5
24350    if (exit $ac_status) && test -s "$ac_outfile"; then
24351      # The compiler can only warn and ignore the option if not recognized
24352      # So say no if there are warnings other than the usual output.
24353      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24354      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24355      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24356        lt_prog_compiler_pic_works_GCJ=yes
24357      fi
24358    fi
24359    $rm conftest*
24360
24361 fi
24362 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24363 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24364
24365 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24366     case $lt_prog_compiler_pic_GCJ in
24367      "" | " "*) ;;
24368      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24369      esac
24370 else
24371     lt_prog_compiler_pic_GCJ=
24372      lt_prog_compiler_can_build_shared_GCJ=no
24373 fi
24374
24375 fi
24376 case $host_os in
24377   # For platforms which do not support PIC, -DPIC is meaningless:
24378   *djgpp*)
24379     lt_prog_compiler_pic_GCJ=
24380     ;;
24381   *)
24382     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24383     ;;
24384 esac
24385
24386 #
24387 # Check to make sure the static flag actually works.
24388 #
24389 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24390 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24391 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24392 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24393   echo $ECHO_N "(cached) $ECHO_C" >&6
24394 else
24395   lt_prog_compiler_static_works_GCJ=no
24396    save_LDFLAGS="$LDFLAGS"
24397    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24398    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24399    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24400      # The linker can only warn and ignore the option if not recognized
24401      # So say no if there are warnings
24402      if test -s conftest.err; then
24403        # Append any errors to the config.log.
24404        cat conftest.err 1>&5
24405        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24406        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24407        if diff conftest.exp conftest.er2 >/dev/null; then
24408          lt_prog_compiler_static_works_GCJ=yes
24409        fi
24410      else
24411        lt_prog_compiler_static_works_GCJ=yes
24412      fi
24413    fi
24414    $rm conftest*
24415    LDFLAGS="$save_LDFLAGS"
24416
24417 fi
24418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24419 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24420
24421 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24422     :
24423 else
24424     lt_prog_compiler_static_GCJ=
24425 fi
24426
24427
24428 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24430 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24431   echo $ECHO_N "(cached) $ECHO_C" >&6
24432 else
24433   lt_cv_prog_compiler_c_o_GCJ=no
24434    $rm -r conftest 2>/dev/null
24435    mkdir conftest
24436    cd conftest
24437    mkdir out
24438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24439
24440    lt_compiler_flag="-o out/conftest2.$ac_objext"
24441    # Insert the option either (1) after the last *FLAGS variable, or
24442    # (2) before a word containing "conftest.", or (3) at the end.
24443    # Note that $ac_compile itself does not contain backslashes and begins
24444    # with a dollar sign (not a hyphen), so the echo should work correctly.
24445    lt_compile=`echo "$ac_compile" | $SED \
24446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24448    -e 's:$: $lt_compiler_flag:'`
24449    (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
24450    (eval "$lt_compile" 2>out/conftest.err)
24451    ac_status=$?
24452    cat out/conftest.err >&5
24453    echo "$as_me:24448: \$? = $ac_status" >&5
24454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24455    then
24456      # The compiler can only warn and ignore the option if not recognized
24457      # So say no if there are warnings
24458      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24459      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24460      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24461        lt_cv_prog_compiler_c_o_GCJ=yes
24462      fi
24463    fi
24464    chmod u+w . 2>&5
24465    $rm conftest*
24466    # SGI C++ compiler will create directory out/ii_files/ for
24467    # template instantiation
24468    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24469    $rm out/* && rmdir out
24470    cd ..
24471    rmdir conftest
24472    $rm conftest*
24473
24474 fi
24475 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24477
24478
24479 hard_links="nottested"
24480 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24481   # do not overwrite the value of need_locks provided by the user
24482   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24484   hard_links=yes
24485   $rm conftest*
24486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24487   touch conftest.a
24488   ln conftest.a conftest.b 2>&5 || hard_links=no
24489   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24490   { echo "$as_me:$LINENO: result: $hard_links" >&5
24491 echo "${ECHO_T}$hard_links" >&6; }
24492   if test "$hard_links" = no; then
24493     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24495     need_locks=warn
24496   fi
24497 else
24498   need_locks=no
24499 fi
24500
24501 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24502 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24503
24504   runpath_var=
24505   allow_undefined_flag_GCJ=
24506   enable_shared_with_static_runtimes_GCJ=no
24507   archive_cmds_GCJ=
24508   archive_expsym_cmds_GCJ=
24509   old_archive_From_new_cmds_GCJ=
24510   old_archive_from_expsyms_cmds_GCJ=
24511   export_dynamic_flag_spec_GCJ=
24512   whole_archive_flag_spec_GCJ=
24513   thread_safe_flag_spec_GCJ=
24514   hardcode_libdir_flag_spec_GCJ=
24515   hardcode_libdir_flag_spec_ld_GCJ=
24516   hardcode_libdir_separator_GCJ=
24517   hardcode_direct_GCJ=no
24518   hardcode_minus_L_GCJ=no
24519   hardcode_shlibpath_var_GCJ=unsupported
24520   link_all_deplibs_GCJ=unknown
24521   hardcode_automatic_GCJ=no
24522   module_cmds_GCJ=
24523   module_expsym_cmds_GCJ=
24524   always_export_symbols_GCJ=no
24525   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24526   # include_expsyms should be a list of space-separated symbols to be *always*
24527   # included in the symbol list
24528   include_expsyms_GCJ=
24529   # exclude_expsyms can be an extended regexp of symbols to exclude
24530   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24531   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24532   # as well as any symbol that contains `d'.
24533   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24534   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24535   # platforms (ab)use it in PIC code, but their linkers get confused if
24536   # the symbol is explicitly referenced.  Since portable code cannot
24537   # rely on this symbol name, it's probably fine to never include it in
24538   # preloaded symbol tables.
24539   extract_expsyms_cmds=
24540   # Just being paranoid about ensuring that cc_basename is set.
24541   for cc_temp in $compiler""; do
24542   case $cc_temp in
24543     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24544     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24545     \-*) ;;
24546     *) break;;
24547   esac
24548 done
24549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24550
24551   case $host_os in
24552   cygwin* | mingw* | pw32*)
24553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24554     # When not using gcc, we currently assume that we are using
24555     # Microsoft Visual C++.
24556     if test "$GCC" != yes; then
24557       with_gnu_ld=no
24558     fi
24559     ;;
24560   interix*)
24561     # we just hope/assume this is gcc and not c89 (= MSVC++)
24562     with_gnu_ld=yes
24563     ;;
24564   openbsd*)
24565     with_gnu_ld=no
24566     ;;
24567   esac
24568
24569   ld_shlibs_GCJ=yes
24570   if test "$with_gnu_ld" = yes; then
24571     # If archive_cmds runs LD, not CC, wlarc should be empty
24572     wlarc='${wl}'
24573
24574     # Set some defaults for GNU ld with shared library support. These
24575     # are reset later if shared libraries are not supported. Putting them
24576     # here allows them to be overridden if necessary.
24577     runpath_var=LD_RUN_PATH
24578     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24579     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24580     # ancient GNU ld didn't support --whole-archive et. al.
24581     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24582         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24583       else
24584         whole_archive_flag_spec_GCJ=
24585     fi
24586     supports_anon_versioning=no
24587     case `$LD -v 2>/dev/null` in
24588       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24589       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24590       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24591       *\ 2.11.*) ;; # other 2.11 versions
24592       *) supports_anon_versioning=yes ;;
24593     esac
24594
24595     # See if GNU ld supports shared libraries.
24596     case $host_os in
24597     aix3* | aix4* | aix5*)
24598       # On AIX/PPC, the GNU linker is very broken
24599       if test "$host_cpu" != ia64; then
24600         ld_shlibs_GCJ=no
24601         cat <<EOF 1>&2
24602
24603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24604 *** to be unable to reliably create shared libraries on AIX.
24605 *** Therefore, libtool is disabling shared libraries support.  If you
24606 *** really care for shared libraries, you may want to modify your PATH
24607 *** so that a non-GNU linker is found, and then restart.
24608
24609 EOF
24610       fi
24611       ;;
24612
24613     amigaos*)
24614       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)'
24615       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24616       hardcode_minus_L_GCJ=yes
24617
24618       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24619       # that the semantics of dynamic libraries on AmigaOS, at least up
24620       # to version 4, is to share data among multiple programs linked
24621       # with the same dynamic library.  Since this doesn't match the
24622       # behavior of shared libraries on other platforms, we can't use
24623       # them.
24624       ld_shlibs_GCJ=no
24625       ;;
24626
24627     beos*)
24628       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24629         allow_undefined_flag_GCJ=unsupported
24630         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24631         # support --undefined.  This deserves some investigation.  FIXME
24632         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24633       else
24634         ld_shlibs_GCJ=no
24635       fi
24636       ;;
24637
24638     cygwin* | mingw* | pw32*)
24639       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24640       # as there is no search path for DLLs.
24641       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24642       allow_undefined_flag_GCJ=unsupported
24643       always_export_symbols_GCJ=no
24644       enable_shared_with_static_runtimes_GCJ=yes
24645       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24646
24647       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24648         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24649         # If the export-symbols file already is a .def file (1st line
24650         # is EXPORTS), use it as is; otherwise, prepend...
24651         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24652           cp $export_symbols $output_objdir/$soname.def;
24653         else
24654           echo EXPORTS > $output_objdir/$soname.def;
24655           cat $export_symbols >> $output_objdir/$soname.def;
24656         fi~
24657         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24658       else
24659         ld_shlibs_GCJ=no
24660       fi
24661       ;;
24662
24663     interix3*)
24664       hardcode_direct_GCJ=no
24665       hardcode_shlibpath_var_GCJ=no
24666       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24667       export_dynamic_flag_spec_GCJ='${wl}-E'
24668       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24669       # Instead, shared libraries are loaded at an image base (0x10000000 by
24670       # default) and relocated if they conflict, which is a slow very memory
24671       # consuming and fragmenting process.  To avoid this, we pick a random,
24672       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24673       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24674       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'
24675       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'
24676       ;;
24677
24678     linux*)
24679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24680         tmp_addflag=
24681         case $cc_basename,$host_cpu in
24682         pgcc*)                          # Portland Group C compiler
24683           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'
24684           tmp_addflag=' $pic_flag'
24685           ;;
24686         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24687           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'
24688           tmp_addflag=' $pic_flag -Mnomain' ;;
24689         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24690           tmp_addflag=' -i_dynamic' ;;
24691         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24692           tmp_addflag=' -i_dynamic -nofor_main' ;;
24693         ifc* | ifort*)                  # Intel Fortran compiler
24694           tmp_addflag=' -nofor_main' ;;
24695         esac
24696         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24697
24698         if test $supports_anon_versioning = yes; then
24699           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24700   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24701   $echo "local: *; };" >> $output_objdir/$libname.ver~
24702           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24703         fi
24704       else
24705         ld_shlibs_GCJ=no
24706       fi
24707       ;;
24708
24709     netbsd*)
24710       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24711         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24712         wlarc=
24713       else
24714         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24715         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24716       fi
24717       ;;
24718
24719     solaris*)
24720       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24721         ld_shlibs_GCJ=no
24722         cat <<EOF 1>&2
24723
24724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24725 *** create shared libraries on Solaris systems.  Therefore, libtool
24726 *** is disabling shared libraries support.  We urge you to upgrade GNU
24727 *** binutils to release 2.9.1 or newer.  Another option is to modify
24728 *** your PATH or compiler configuration so that the native linker is
24729 *** used, and then restart.
24730
24731 EOF
24732       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24733         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24734         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24735       else
24736         ld_shlibs_GCJ=no
24737       fi
24738       ;;
24739
24740     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24741       case `$LD -v 2>&1` in
24742         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24743         ld_shlibs_GCJ=no
24744         cat <<_LT_EOF 1>&2
24745
24746 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24747 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24748 *** is disabling shared libraries support.  We urge you to upgrade GNU
24749 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24750 *** your PATH or compiler configuration so that the native linker is
24751 *** used, and then restart.
24752
24753 _LT_EOF
24754         ;;
24755         *)
24756           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24757             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24758             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24759             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24760           else
24761             ld_shlibs_GCJ=no
24762           fi
24763         ;;
24764       esac
24765       ;;
24766
24767     sunos4*)
24768       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24769       wlarc=
24770       hardcode_direct_GCJ=yes
24771       hardcode_shlibpath_var_GCJ=no
24772       ;;
24773
24774     *)
24775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24776         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24777         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24778       else
24779         ld_shlibs_GCJ=no
24780       fi
24781       ;;
24782     esac
24783
24784     if test "$ld_shlibs_GCJ" = no; then
24785       runpath_var=
24786       hardcode_libdir_flag_spec_GCJ=
24787       export_dynamic_flag_spec_GCJ=
24788       whole_archive_flag_spec_GCJ=
24789     fi
24790   else
24791     # PORTME fill in a description of your system's linker (not GNU ld)
24792     case $host_os in
24793     aix3*)
24794       allow_undefined_flag_GCJ=unsupported
24795       always_export_symbols_GCJ=yes
24796       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'
24797       # Note: this linker hardcodes the directories in LIBPATH if there
24798       # are no directories specified by -L.
24799       hardcode_minus_L_GCJ=yes
24800       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24801         # Neither direct hardcoding nor static linking is supported with a
24802         # broken collect2.
24803         hardcode_direct_GCJ=unsupported
24804       fi
24805       ;;
24806
24807     aix4* | aix5*)
24808       if test "$host_cpu" = ia64; then
24809         # On IA64, the linker does run time linking by default, so we don't
24810         # have to do anything special.
24811         aix_use_runtimelinking=no
24812         exp_sym_flag='-Bexport'
24813         no_entry_flag=""
24814       else
24815         # If we're using GNU nm, then we don't want the "-C" option.
24816         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24817         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24818           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'
24819         else
24820           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'
24821         fi
24822         aix_use_runtimelinking=no
24823
24824         # Test if we are trying to use run time linking or normal
24825         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24826         # need to do runtime linking.
24827         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24828           for ld_flag in $LDFLAGS; do
24829           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24830             aix_use_runtimelinking=yes
24831             break
24832           fi
24833           done
24834           ;;
24835         esac
24836
24837         exp_sym_flag='-bexport'
24838         no_entry_flag='-bnoentry'
24839       fi
24840
24841       # When large executables or shared objects are built, AIX ld can
24842       # have problems creating the table of contents.  If linking a library
24843       # or program results in "error TOC overflow" add -mminimal-toc to
24844       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24845       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24846
24847       archive_cmds_GCJ=''
24848       hardcode_direct_GCJ=yes
24849       hardcode_libdir_separator_GCJ=':'
24850       link_all_deplibs_GCJ=yes
24851
24852       if test "$GCC" = yes; then
24853         case $host_os in aix4.[012]|aix4.[012].*)
24854         # We only want to do this on AIX 4.2 and lower, the check
24855         # below for broken collect2 doesn't work under 4.3+
24856           collect2name=`${CC} -print-prog-name=collect2`
24857           if test -f "$collect2name" && \
24858            strings "$collect2name" | grep resolve_lib_name >/dev/null
24859           then
24860           # We have reworked collect2
24861           hardcode_direct_GCJ=yes
24862           else
24863           # We have old collect2
24864           hardcode_direct_GCJ=unsupported
24865           # It fails to find uninstalled libraries when the uninstalled
24866           # path is not listed in the libpath.  Setting hardcode_minus_L
24867           # to unsupported forces relinking
24868           hardcode_minus_L_GCJ=yes
24869           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24870           hardcode_libdir_separator_GCJ=
24871           fi
24872           ;;
24873         esac
24874         shared_flag='-shared'
24875         if test "$aix_use_runtimelinking" = yes; then
24876           shared_flag="$shared_flag "'${wl}-G'
24877         fi
24878       else
24879         # not using gcc
24880         if test "$host_cpu" = ia64; then
24881         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24882         # chokes on -Wl,-G. The following line is correct:
24883           shared_flag='-G'
24884         else
24885           if test "$aix_use_runtimelinking" = yes; then
24886             shared_flag='${wl}-G'
24887           else
24888             shared_flag='${wl}-bM:SRE'
24889           fi
24890         fi
24891       fi
24892
24893       # It seems that -bexpall does not export symbols beginning with
24894       # underscore (_), so it is better to generate a list of symbols to export.
24895       always_export_symbols_GCJ=yes
24896       if test "$aix_use_runtimelinking" = yes; then
24897         # Warning - without using the other runtime loading flags (-brtl),
24898         # -berok will link without error, but may produce a broken library.
24899         allow_undefined_flag_GCJ='-berok'
24900        # Determine the default libpath from the value encoded in an empty executable.
24901        cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h.  */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h.  */
24907
24908 int
24909 main ()
24910 {
24911
24912   ;
24913   return 0;
24914 }
24915 _ACEOF
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (ac_try="$ac_link"
24918 case "(($ac_try" in
24919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920   *) ac_try_echo=$ac_try;;
24921 esac
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923   (eval "$ac_link") 2>conftest.er1
24924   ac_status=$?
24925   grep -v '^ *+' conftest.er1 >conftest.err
24926   rm -f conftest.er1
24927   cat conftest.err >&5
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); } &&
24930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931   { (case "(($ac_try" in
24932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933   *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936   (eval "$ac_try") 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; } &&
24940          { ac_try='test -s conftest$ac_exeext'
24941   { (case "(($ac_try" in
24942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943   *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946   (eval "$ac_try") 2>&5
24947   ac_status=$?
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); }; }; then
24950
24951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24952 }'`
24953 # Check for a 64-bit object if we didn't find anything.
24954 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; }
24955 }'`; fi
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960
24961 fi
24962
24963 rm -f core conftest.err conftest.$ac_objext \
24964       conftest$ac_exeext conftest.$ac_ext
24965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24966
24967        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24968         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"
24969        else
24970         if test "$host_cpu" = ia64; then
24971           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24972           allow_undefined_flag_GCJ="-z nodefs"
24973           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"
24974         else
24975          # Determine the default libpath from the value encoded in an empty executable.
24976          cat >conftest.$ac_ext <<_ACEOF
24977 /* confdefs.h.  */
24978 _ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h.  */
24982
24983 int
24984 main ()
24985 {
24986
24987   ;
24988   return 0;
24989 }
24990 _ACEOF
24991 rm -f conftest.$ac_objext conftest$ac_exeext
24992 if { (ac_try="$ac_link"
24993 case "(($ac_try" in
24994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995   *) ac_try_echo=$ac_try;;
24996 esac
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998   (eval "$ac_link") 2>conftest.er1
24999   ac_status=$?
25000   grep -v '^ *+' conftest.er1 >conftest.err
25001   rm -f conftest.er1
25002   cat conftest.err >&5
25003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004   (exit $ac_status); } &&
25005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25006   { (case "(($ac_try" in
25007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008   *) ac_try_echo=$ac_try;;
25009 esac
25010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011   (eval "$ac_try") 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; } &&
25015          { ac_try='test -s conftest$ac_exeext'
25016   { (case "(($ac_try" in
25017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018   *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021   (eval "$ac_try") 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; }; then
25025
25026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25027 }'`
25028 # Check for a 64-bit object if we didn't find anything.
25029 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; }
25030 }'`; fi
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035
25036 fi
25037
25038 rm -f core conftest.err conftest.$ac_objext \
25039       conftest$ac_exeext conftest.$ac_ext
25040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25041
25042          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25043           # Warning - without using the other run time loading flags,
25044           # -berok will link without error, but may produce a broken library.
25045           no_undefined_flag_GCJ=' ${wl}-bernotok'
25046           allow_undefined_flag_GCJ=' ${wl}-berok'
25047           # Exported symbols can be pulled into shared objects from archives
25048           whole_archive_flag_spec_GCJ='$convenience'
25049           archive_cmds_need_lc_GCJ=yes
25050           # This is similar to how AIX traditionally builds its shared libraries.
25051           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'
25052         fi
25053       fi
25054       ;;
25055
25056     amigaos*)
25057       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)'
25058       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25059       hardcode_minus_L_GCJ=yes
25060       # see comment about different semantics on the GNU ld section
25061       ld_shlibs_GCJ=no
25062       ;;
25063
25064     bsdi[45]*)
25065       export_dynamic_flag_spec_GCJ=-rdynamic
25066       ;;
25067
25068     cygwin* | mingw* | pw32*)
25069       # When not using gcc, we currently assume that we are using
25070       # Microsoft Visual C++.
25071       # hardcode_libdir_flag_spec is actually meaningless, as there is
25072       # no search path for DLLs.
25073       hardcode_libdir_flag_spec_GCJ=' '
25074       allow_undefined_flag_GCJ=unsupported
25075       # Tell ltmain to make .lib files, not .a files.
25076       libext=lib
25077       # Tell ltmain to make .dll files, not .so files.
25078       shrext_cmds=".dll"
25079       # FIXME: Setting linknames here is a bad hack.
25080       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25081       # The linker will automatically build a .lib file if we build a DLL.
25082       old_archive_From_new_cmds_GCJ='true'
25083       # FIXME: Should let the user specify the lib program.
25084       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25085       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25086       enable_shared_with_static_runtimes_GCJ=yes
25087       ;;
25088
25089     darwin* | rhapsody*)
25090       case $host_os in
25091         rhapsody* | darwin1.[012])
25092          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25093          ;;
25094        *) # Darwin 1.3 on
25095          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25096            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25097          else
25098            case ${MACOSX_DEPLOYMENT_TARGET} in
25099              10.[012])
25100                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25101                ;;
25102              10.*)
25103                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25104                ;;
25105            esac
25106          fi
25107          ;;
25108       esac
25109       archive_cmds_need_lc_GCJ=no
25110       hardcode_direct_GCJ=no
25111       hardcode_automatic_GCJ=yes
25112       hardcode_shlibpath_var_GCJ=unsupported
25113       whole_archive_flag_spec_GCJ=''
25114       link_all_deplibs_GCJ=yes
25115     if test "$GCC" = yes ; then
25116         output_verbose_link_cmd='echo'
25117         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25118       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25119       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25120       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}'
25121       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}'
25122     else
25123       case $cc_basename in
25124         xlc*)
25125          output_verbose_link_cmd='echo'
25126          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25127          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25128           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25129          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}'
25130           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}'
25131           ;;
25132        *)
25133          ld_shlibs_GCJ=no
25134           ;;
25135       esac
25136     fi
25137       ;;
25138
25139     dgux*)
25140       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25142       hardcode_shlibpath_var_GCJ=no
25143       ;;
25144
25145     freebsd1*)
25146       ld_shlibs_GCJ=no
25147       ;;
25148
25149     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25150     # support.  Future versions do this automatically, but an explicit c++rt0.o
25151     # does not break anything, and helps significantly (at the cost of a little
25152     # extra space).
25153     freebsd2.2*)
25154       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25155       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25156       hardcode_direct_GCJ=yes
25157       hardcode_shlibpath_var_GCJ=no
25158       ;;
25159
25160     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25161     freebsd2*)
25162       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25163       hardcode_direct_GCJ=yes
25164       hardcode_minus_L_GCJ=yes
25165       hardcode_shlibpath_var_GCJ=no
25166       ;;
25167
25168     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25169     freebsd* | kfreebsd*-gnu | dragonfly*)
25170       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25171       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25172       hardcode_direct_GCJ=yes
25173       hardcode_shlibpath_var_GCJ=no
25174       ;;
25175
25176     hpux9*)
25177       if test "$GCC" = yes; then
25178         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'
25179       else
25180         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'
25181       fi
25182       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25183       hardcode_libdir_separator_GCJ=:
25184       hardcode_direct_GCJ=yes
25185
25186       # hardcode_minus_L: Not really in the search PATH,
25187       # but as the default location of the library.
25188       hardcode_minus_L_GCJ=yes
25189       export_dynamic_flag_spec_GCJ='${wl}-E'
25190       ;;
25191
25192     hpux10*)
25193       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25194         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25195       else
25196         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25197       fi
25198       if test "$with_gnu_ld" = no; then
25199         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25200         hardcode_libdir_separator_GCJ=:
25201
25202         hardcode_direct_GCJ=yes
25203         export_dynamic_flag_spec_GCJ='${wl}-E'
25204
25205         # hardcode_minus_L: Not really in the search PATH,
25206         # but as the default location of the library.
25207         hardcode_minus_L_GCJ=yes
25208       fi
25209       ;;
25210
25211     hpux11*)
25212       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25213         case $host_cpu in
25214         hppa*64*)
25215           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25216           ;;
25217         ia64*)
25218           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25219           ;;
25220         *)
25221           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25222           ;;
25223         esac
25224       else
25225         case $host_cpu in
25226         hppa*64*)
25227           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25228           ;;
25229         ia64*)
25230           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25231           ;;
25232         *)
25233           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25234           ;;
25235         esac
25236       fi
25237       if test "$with_gnu_ld" = no; then
25238         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25239         hardcode_libdir_separator_GCJ=:
25240
25241         case $host_cpu in
25242         hppa*64*|ia64*)
25243           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25244           hardcode_direct_GCJ=no
25245           hardcode_shlibpath_var_GCJ=no
25246           ;;
25247         *)
25248           hardcode_direct_GCJ=yes
25249           export_dynamic_flag_spec_GCJ='${wl}-E'
25250
25251           # hardcode_minus_L: Not really in the search PATH,
25252           # but as the default location of the library.
25253           hardcode_minus_L_GCJ=yes
25254           ;;
25255         esac
25256       fi
25257       ;;
25258
25259     irix5* | irix6* | nonstopux*)
25260       if test "$GCC" = yes; then
25261         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'
25262       else
25263         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'
25264         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25265       fi
25266       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25267       hardcode_libdir_separator_GCJ=:
25268       link_all_deplibs_GCJ=yes
25269       ;;
25270
25271     netbsd*)
25272       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25273         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25274       else
25275         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25276       fi
25277       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25278       hardcode_direct_GCJ=yes
25279       hardcode_shlibpath_var_GCJ=no
25280       ;;
25281
25282     newsos6)
25283       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25284       hardcode_direct_GCJ=yes
25285       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25286       hardcode_libdir_separator_GCJ=:
25287       hardcode_shlibpath_var_GCJ=no
25288       ;;
25289
25290     openbsd*)
25291       hardcode_direct_GCJ=yes
25292       hardcode_shlibpath_var_GCJ=no
25293       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25294         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25295         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25296         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25297         export_dynamic_flag_spec_GCJ='${wl}-E'
25298       else
25299        case $host_os in
25300          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25301            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25302            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25303            ;;
25304          *)
25305            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25306            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25307            ;;
25308        esac
25309       fi
25310       ;;
25311
25312     os2*)
25313       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25314       hardcode_minus_L_GCJ=yes
25315       allow_undefined_flag_GCJ=unsupported
25316       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'
25317       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25318       ;;
25319
25320     osf3*)
25321       if test "$GCC" = yes; then
25322         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25323         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'
25324       else
25325         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25326         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'
25327       fi
25328       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25329       hardcode_libdir_separator_GCJ=:
25330       ;;
25331
25332     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25333       if test "$GCC" = yes; then
25334         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25335         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'
25336         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25337       else
25338         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25339         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'
25340         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~
25341         $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'
25342
25343         # Both c and cxx compiler support -rpath directly
25344         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25345       fi
25346       hardcode_libdir_separator_GCJ=:
25347       ;;
25348
25349     solaris*)
25350       no_undefined_flag_GCJ=' -z text'
25351       if test "$GCC" = yes; then
25352         wlarc='${wl}'
25353         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25354         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25356       else
25357         wlarc=''
25358         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25359         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25360         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25361       fi
25362       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25363       hardcode_shlibpath_var_GCJ=no
25364       case $host_os in
25365       solaris2.[0-5] | solaris2.[0-5].*) ;;
25366       *)
25367         # The compiler driver will combine linker options so we
25368         # cannot just pass the convience library names through
25369         # without $wl, iff we do not link with $LD.
25370         # Luckily, gcc supports the same syntax we need for Sun Studio.
25371         # Supported since Solaris 2.6 (maybe 2.5.1?)
25372         case $wlarc in
25373         '')
25374           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25375         *)
25376           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' ;;
25377         esac ;;
25378       esac
25379       link_all_deplibs_GCJ=yes
25380       ;;
25381
25382     sunos4*)
25383       if test "x$host_vendor" = xsequent; then
25384         # Use $CC to link under sequent, because it throws in some extra .o
25385         # files that make .init and .fini sections work.
25386         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25387       else
25388         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25389       fi
25390       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25391       hardcode_direct_GCJ=yes
25392       hardcode_minus_L_GCJ=yes
25393       hardcode_shlibpath_var_GCJ=no
25394       ;;
25395
25396     sysv4)
25397       case $host_vendor in
25398         sni)
25399           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25400           hardcode_direct_GCJ=yes # is this really true???
25401         ;;
25402         siemens)
25403           ## LD is ld it makes a PLAMLIB
25404           ## CC just makes a GrossModule.
25405           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25406           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25407           hardcode_direct_GCJ=no
25408         ;;
25409         motorola)
25410           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25411           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25412         ;;
25413       esac
25414       runpath_var='LD_RUN_PATH'
25415       hardcode_shlibpath_var_GCJ=no
25416       ;;
25417
25418     sysv4.3*)
25419       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25420       hardcode_shlibpath_var_GCJ=no
25421       export_dynamic_flag_spec_GCJ='-Bexport'
25422       ;;
25423
25424     sysv4*MP*)
25425       if test -d /usr/nec; then
25426         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25427         hardcode_shlibpath_var_GCJ=no
25428         runpath_var=LD_RUN_PATH
25429         hardcode_runpath_var=yes
25430         ld_shlibs_GCJ=yes
25431       fi
25432       ;;
25433
25434     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25435       no_undefined_flag_GCJ='${wl}-z,text'
25436       archive_cmds_need_lc_GCJ=no
25437       hardcode_shlibpath_var_GCJ=no
25438       runpath_var='LD_RUN_PATH'
25439
25440       if test "$GCC" = yes; then
25441         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25442         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25443       else
25444         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25445         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25446       fi
25447       ;;
25448
25449     sysv5* | sco3.2v5* | sco5v6*)
25450       # Note: We can NOT use -z defs as we might desire, because we do not
25451       # link with -lc, and that would cause any symbols used from libc to
25452       # always be unresolved, which means just about no library would
25453       # ever link correctly.  If we're not using GNU ld we use -z text
25454       # though, which does catch some bad symbols but isn't as heavy-handed
25455       # as -z defs.
25456       no_undefined_flag_GCJ='${wl}-z,text'
25457       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25458       archive_cmds_need_lc_GCJ=no
25459       hardcode_shlibpath_var_GCJ=no
25460       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25461       hardcode_libdir_separator_GCJ=':'
25462       link_all_deplibs_GCJ=yes
25463       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25464       runpath_var='LD_RUN_PATH'
25465
25466       if test "$GCC" = yes; then
25467         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25468         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25469       else
25470         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25471         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25472       fi
25473       ;;
25474
25475     uts4*)
25476       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25477       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478       hardcode_shlibpath_var_GCJ=no
25479       ;;
25480
25481     *)
25482       ld_shlibs_GCJ=no
25483       ;;
25484     esac
25485   fi
25486
25487 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25488 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25489 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25490
25491 #
25492 # Do we need to explicitly link libc?
25493 #
25494 case "x$archive_cmds_need_lc_GCJ" in
25495 x|xyes)
25496   # Assume -lc should be added
25497   archive_cmds_need_lc_GCJ=yes
25498
25499   if test "$enable_shared" = yes && test "$GCC" = yes; then
25500     case $archive_cmds_GCJ in
25501     *'~'*)
25502       # FIXME: we may have to deal with multi-command sequences.
25503       ;;
25504     '$CC '*)
25505       # Test whether the compiler implicitly links with -lc since on some
25506       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25507       # to ld, don't add -lc before -lgcc.
25508       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25510       $rm conftest*
25511       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25512
25513       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25514   (eval $ac_compile) 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); } 2>conftest.err; then
25518         soname=conftest
25519         lib=conftest
25520         libobjs=conftest.$ac_objext
25521         deplibs=
25522         wl=$lt_prog_compiler_wl_GCJ
25523         pic_flag=$lt_prog_compiler_pic_GCJ
25524         compiler_flags=-v
25525         linker_flags=-v
25526         verstring=
25527         output_objdir=.
25528         libname=conftest
25529         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25530         allow_undefined_flag_GCJ=
25531         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25532   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }
25536         then
25537           archive_cmds_need_lc_GCJ=no
25538         else
25539           archive_cmds_need_lc_GCJ=yes
25540         fi
25541         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25542       else
25543         cat conftest.err 1>&5
25544       fi
25545       $rm conftest*
25546       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25547 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25548       ;;
25549     esac
25550   fi
25551   ;;
25552 esac
25553
25554 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25556 library_names_spec=
25557 libname_spec='lib$name'
25558 soname_spec=
25559 shrext_cmds=".so"
25560 postinstall_cmds=
25561 postuninstall_cmds=
25562 finish_cmds=
25563 finish_eval=
25564 shlibpath_var=
25565 shlibpath_overrides_runpath=unknown
25566 version_type=none
25567 dynamic_linker="$host_os ld.so"
25568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25569 if test "$GCC" = yes; then
25570   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25571   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25572     # if the path contains ";" then we assume it to be the separator
25573     # otherwise default to the standard path separator (i.e. ":") - it is
25574     # assumed that no part of a normal pathname contains ";" but that should
25575     # okay in the real world where ";" in dirpaths is itself problematic.
25576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25577   else
25578     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25579   fi
25580 else
25581   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25582 fi
25583 need_lib_prefix=unknown
25584 hardcode_into_libs=no
25585
25586 # when you set need_version to no, make sure it does not cause -set_version
25587 # flags to be left without arguments
25588 need_version=unknown
25589
25590 case $host_os in
25591 aix3*)
25592   version_type=linux
25593   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25594   shlibpath_var=LIBPATH
25595
25596   # AIX 3 has no versioning support, so we append a major version to the name.
25597   soname_spec='${libname}${release}${shared_ext}$major'
25598   ;;
25599
25600 aix4* | aix5*)
25601   version_type=linux
25602   need_lib_prefix=no
25603   need_version=no
25604   hardcode_into_libs=yes
25605   if test "$host_cpu" = ia64; then
25606     # AIX 5 supports IA64
25607     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25608     shlibpath_var=LD_LIBRARY_PATH
25609   else
25610     # With GCC up to 2.95.x, collect2 would create an import file
25611     # for dependence libraries.  The import file would start with
25612     # the line `#! .'.  This would cause the generated library to
25613     # depend on `.', always an invalid library.  This was fixed in
25614     # development snapshots of GCC prior to 3.0.
25615     case $host_os in
25616       aix4 | aix4.[01] | aix4.[01].*)
25617       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25618            echo ' yes '
25619            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25620         :
25621       else
25622         can_build_shared=no
25623       fi
25624       ;;
25625     esac
25626     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25627     # soname into executable. Probably we can add versioning support to
25628     # collect2, so additional links can be useful in future.
25629     if test "$aix_use_runtimelinking" = yes; then
25630       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25631       # instead of lib<name>.a to let people know that these are not
25632       # typical AIX shared libraries.
25633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25634     else
25635       # We preserve .a as extension for shared libraries through AIX4.2
25636       # and later when we are not doing run time linking.
25637       library_names_spec='${libname}${release}.a $libname.a'
25638       soname_spec='${libname}${release}${shared_ext}$major'
25639     fi
25640     shlibpath_var=LIBPATH
25641   fi
25642   ;;
25643
25644 amigaos*)
25645   library_names_spec='$libname.ixlibrary $libname.a'
25646   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25647   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'
25648   ;;
25649
25650 beos*)
25651   library_names_spec='${libname}${shared_ext}'
25652   dynamic_linker="$host_os ld.so"
25653   shlibpath_var=LIBRARY_PATH
25654   ;;
25655
25656 bsdi[45]*)
25657   version_type=linux
25658   need_version=no
25659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25660   soname_spec='${libname}${release}${shared_ext}$major'
25661   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25662   shlibpath_var=LD_LIBRARY_PATH
25663   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25664   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25665   # the default ld.so.conf also contains /usr/contrib/lib and
25666   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25667   # libtool to hard-code these into programs
25668   ;;
25669
25670 cygwin* | mingw* | pw32*)
25671   version_type=windows
25672   shrext_cmds=".dll"
25673   need_version=no
25674   need_lib_prefix=no
25675
25676   case $GCC,$host_os in
25677   yes,cygwin* | yes,mingw* | yes,pw32*)
25678     library_names_spec='$libname.dll.a'
25679     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25680     postinstall_cmds='base_file=`basename \${file}`~
25681       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25682       dldir=$destdir/`dirname \$dlpath`~
25683       test -d \$dldir || mkdir -p \$dldir~
25684       $install_prog $dir/$dlname \$dldir/$dlname~
25685       chmod a+x \$dldir/$dlname'
25686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25687       dlpath=$dir/\$dldll~
25688        $rm \$dlpath'
25689     shlibpath_overrides_runpath=yes
25690
25691     case $host_os in
25692     cygwin*)
25693       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25694       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25696       ;;
25697     mingw*)
25698       # MinGW DLLs use traditional 'lib' prefix
25699       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25700       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25701       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25702         # It is most probably a Windows format PATH printed by
25703         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25704         # path with ; separators, and with drive letters. We can handle the
25705         # drive letters (cygwin fileutils understands them), so leave them,
25706         # especially as we might pass files found there to a mingw objdump,
25707         # which wouldn't understand a cygwinified path. Ahh.
25708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25709       else
25710         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25711       fi
25712       ;;
25713     pw32*)
25714       # pw32 DLLs use 'pw' prefix rather than 'lib'
25715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25716       ;;
25717     esac
25718     ;;
25719
25720   *)
25721     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25722     ;;
25723   esac
25724   dynamic_linker='Win32 ld.exe'
25725   # FIXME: first we should search . and the directory the executable is in
25726   shlibpath_var=PATH
25727   ;;
25728
25729 darwin* | rhapsody*)
25730   dynamic_linker="$host_os dyld"
25731   version_type=darwin
25732   need_lib_prefix=no
25733   need_version=no
25734   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25735   soname_spec='${libname}${release}${major}$shared_ext'
25736   shlibpath_overrides_runpath=yes
25737   shlibpath_var=DYLD_LIBRARY_PATH
25738   shrext_cmds='.dylib'
25739   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25740   if test "$GCC" = yes; then
25741     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"`
25742   else
25743     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25744   fi
25745   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25746   ;;
25747
25748 dgux*)
25749   version_type=linux
25750   need_lib_prefix=no
25751   need_version=no
25752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25753   soname_spec='${libname}${release}${shared_ext}$major'
25754   shlibpath_var=LD_LIBRARY_PATH
25755   ;;
25756
25757 freebsd1*)
25758   dynamic_linker=no
25759   ;;
25760
25761 kfreebsd*-gnu)
25762   version_type=linux
25763   need_lib_prefix=no
25764   need_version=no
25765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25766   soname_spec='${libname}${release}${shared_ext}$major'
25767   shlibpath_var=LD_LIBRARY_PATH
25768   shlibpath_overrides_runpath=no
25769   hardcode_into_libs=yes
25770   dynamic_linker='GNU ld.so'
25771   ;;
25772
25773 freebsd* | dragonfly*)
25774   # DragonFly does not have aout.  When/if they implement a new
25775   # versioning mechanism, adjust this.
25776   if test -x /usr/bin/objformat; then
25777     objformat=`/usr/bin/objformat`
25778   else
25779     case $host_os in
25780     freebsd[123]*) objformat=aout ;;
25781     *) objformat=elf ;;
25782     esac
25783   fi
25784   version_type=freebsd-$objformat
25785   case $version_type in
25786     freebsd-elf*)
25787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25788       need_version=no
25789       need_lib_prefix=no
25790       ;;
25791     freebsd-*)
25792       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25793       need_version=yes
25794       ;;
25795   esac
25796   shlibpath_var=LD_LIBRARY_PATH
25797   case $host_os in
25798   freebsd2*)
25799     shlibpath_overrides_runpath=yes
25800     ;;
25801   freebsd3.[01]* | freebsdelf3.[01]*)
25802     shlibpath_overrides_runpath=yes
25803     hardcode_into_libs=yes
25804     ;;
25805   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25806   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25807     shlibpath_overrides_runpath=no
25808     hardcode_into_libs=yes
25809     ;;
25810   freebsd*) # from 4.6 on
25811     shlibpath_overrides_runpath=yes
25812     hardcode_into_libs=yes
25813     ;;
25814   esac
25815   ;;
25816
25817 gnu*)
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   hardcode_into_libs=yes
25825   ;;
25826
25827 hpux9* | hpux10* | hpux11*)
25828   # Give a soname corresponding to the major version so that dld.sl refuses to
25829   # link against other versions.
25830   version_type=sunos
25831   need_lib_prefix=no
25832   need_version=no
25833   case $host_cpu in
25834   ia64*)
25835     shrext_cmds='.so'
25836     hardcode_into_libs=yes
25837     dynamic_linker="$host_os dld.so"
25838     shlibpath_var=LD_LIBRARY_PATH
25839     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25841     soname_spec='${libname}${release}${shared_ext}$major'
25842     if test "X$HPUX_IA64_MODE" = X32; then
25843       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25844     else
25845       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25846     fi
25847     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25848     ;;
25849    hppa*64*)
25850      shrext_cmds='.sl'
25851      hardcode_into_libs=yes
25852      dynamic_linker="$host_os dld.sl"
25853      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25854      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25855      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25856      soname_spec='${libname}${release}${shared_ext}$major'
25857      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25858      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25859      ;;
25860    *)
25861     shrext_cmds='.sl'
25862     dynamic_linker="$host_os dld.sl"
25863     shlibpath_var=SHLIB_PATH
25864     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25866     soname_spec='${libname}${release}${shared_ext}$major'
25867     ;;
25868   esac
25869   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25870   postinstall_cmds='chmod 555 $lib'
25871   ;;
25872
25873 interix3*)
25874   version_type=linux
25875   need_lib_prefix=no
25876   need_version=no
25877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25878   soname_spec='${libname}${release}${shared_ext}$major'
25879   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25880   shlibpath_var=LD_LIBRARY_PATH
25881   shlibpath_overrides_runpath=no
25882   hardcode_into_libs=yes
25883   ;;
25884
25885 irix5* | irix6* | nonstopux*)
25886   case $host_os in
25887     nonstopux*) version_type=nonstopux ;;
25888     *)
25889         if test "$lt_cv_prog_gnu_ld" = yes; then
25890                 version_type=linux
25891         else
25892                 version_type=irix
25893         fi ;;
25894   esac
25895   need_lib_prefix=no
25896   need_version=no
25897   soname_spec='${libname}${release}${shared_ext}$major'
25898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25899   case $host_os in
25900   irix5* | nonstopux*)
25901     libsuff= shlibsuff=
25902     ;;
25903   *)
25904     case $LD in # libtool.m4 will add one of these switches to LD
25905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25906       libsuff= shlibsuff= libmagic=32-bit;;
25907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25908       libsuff=32 shlibsuff=N32 libmagic=N32;;
25909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25911     *) libsuff= shlibsuff= libmagic=never-match;;
25912     esac
25913     ;;
25914   esac
25915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25916   shlibpath_overrides_runpath=no
25917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25919   hardcode_into_libs=yes
25920   ;;
25921
25922 # No shared lib support for Linux oldld, aout, or coff.
25923 linux*oldld* | linux*aout* | linux*coff*)
25924   dynamic_linker=no
25925   ;;
25926
25927 # This must be Linux ELF.
25928 linux*)
25929   version_type=linux
25930   need_lib_prefix=no
25931   need_version=no
25932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25933   soname_spec='${libname}${release}${shared_ext}$major'
25934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25935   shlibpath_var=LD_LIBRARY_PATH
25936   shlibpath_overrides_runpath=no
25937   # This implies no fast_install, which is unacceptable.
25938   # Some rework will be needed to allow for fast_install
25939   # before this can be enabled.
25940   hardcode_into_libs=yes
25941
25942   # Append ld.so.conf contents to the search path
25943   if test -f /etc/ld.so.conf; then
25944     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' ' '`
25945     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25946   fi
25947
25948   # We used to test for /lib/ld.so.1 and disable shared libraries on
25949   # powerpc, because MkLinux only supported shared libraries with the
25950   # GNU dynamic linker.  Since this was broken with cross compilers,
25951   # most powerpc-linux boxes support dynamic linking these days and
25952   # people can always --disable-shared, the test was removed, and we
25953   # assume the GNU/Linux dynamic linker is in use.
25954   dynamic_linker='GNU/Linux ld.so'
25955   ;;
25956
25957 knetbsd*-gnu)
25958   version_type=linux
25959   need_lib_prefix=no
25960   need_version=no
25961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25962   soname_spec='${libname}${release}${shared_ext}$major'
25963   shlibpath_var=LD_LIBRARY_PATH
25964   shlibpath_overrides_runpath=no
25965   hardcode_into_libs=yes
25966   dynamic_linker='GNU ld.so'
25967   ;;
25968
25969 netbsd*)
25970   version_type=sunos
25971   need_lib_prefix=no
25972   need_version=no
25973   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25975     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25976     dynamic_linker='NetBSD (a.out) ld.so'
25977   else
25978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979     soname_spec='${libname}${release}${shared_ext}$major'
25980     dynamic_linker='NetBSD ld.elf_so'
25981   fi
25982   shlibpath_var=LD_LIBRARY_PATH
25983   shlibpath_overrides_runpath=yes
25984   hardcode_into_libs=yes
25985   ;;
25986
25987 newsos6)
25988   version_type=linux
25989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25990   shlibpath_var=LD_LIBRARY_PATH
25991   shlibpath_overrides_runpath=yes
25992   ;;
25993
25994 nto-qnx*)
25995   version_type=linux
25996   need_lib_prefix=no
25997   need_version=no
25998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25999   soname_spec='${libname}${release}${shared_ext}$major'
26000   shlibpath_var=LD_LIBRARY_PATH
26001   shlibpath_overrides_runpath=yes
26002   ;;
26003
26004 openbsd*)
26005   version_type=sunos
26006   sys_lib_dlsearch_path_spec="/usr/lib"
26007   need_lib_prefix=no
26008   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26009   case $host_os in
26010     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26011     *)                         need_version=no  ;;
26012   esac
26013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26014   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26015   shlibpath_var=LD_LIBRARY_PATH
26016   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26017     case $host_os in
26018       openbsd2.[89] | openbsd2.[89].*)
26019         shlibpath_overrides_runpath=no
26020         ;;
26021       *)
26022         shlibpath_overrides_runpath=yes
26023         ;;
26024       esac
26025   else
26026     shlibpath_overrides_runpath=yes
26027   fi
26028   ;;
26029
26030 os2*)
26031   libname_spec='$name'
26032   shrext_cmds=".dll"
26033   need_lib_prefix=no
26034   library_names_spec='$libname${shared_ext} $libname.a'
26035   dynamic_linker='OS/2 ld.exe'
26036   shlibpath_var=LIBPATH
26037   ;;
26038
26039 osf3* | osf4* | osf5*)
26040   version_type=osf
26041   need_lib_prefix=no
26042   need_version=no
26043   soname_spec='${libname}${release}${shared_ext}$major'
26044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26045   shlibpath_var=LD_LIBRARY_PATH
26046   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26047   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26048   ;;
26049
26050 solaris*)
26051   version_type=linux
26052   need_lib_prefix=no
26053   need_version=no
26054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055   soname_spec='${libname}${release}${shared_ext}$major'
26056   shlibpath_var=LD_LIBRARY_PATH
26057   shlibpath_overrides_runpath=yes
26058   hardcode_into_libs=yes
26059   # ldd complains unless libraries are executable
26060   postinstall_cmds='chmod +x $lib'
26061   ;;
26062
26063 sunos4*)
26064   version_type=sunos
26065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26067   shlibpath_var=LD_LIBRARY_PATH
26068   shlibpath_overrides_runpath=yes
26069   if test "$with_gnu_ld" = yes; then
26070     need_lib_prefix=no
26071   fi
26072   need_version=yes
26073   ;;
26074
26075 sysv4 | sysv4.3*)
26076   version_type=linux
26077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26078   soname_spec='${libname}${release}${shared_ext}$major'
26079   shlibpath_var=LD_LIBRARY_PATH
26080   case $host_vendor in
26081     sni)
26082       shlibpath_overrides_runpath=no
26083       need_lib_prefix=no
26084       export_dynamic_flag_spec='${wl}-Blargedynsym'
26085       runpath_var=LD_RUN_PATH
26086       ;;
26087     siemens)
26088       need_lib_prefix=no
26089       ;;
26090     motorola)
26091       need_lib_prefix=no
26092       need_version=no
26093       shlibpath_overrides_runpath=no
26094       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26095       ;;
26096   esac
26097   ;;
26098
26099 sysv4*MP*)
26100   if test -d /usr/nec ;then
26101     version_type=linux
26102     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26103     soname_spec='$libname${shared_ext}.$major'
26104     shlibpath_var=LD_LIBRARY_PATH
26105   fi
26106   ;;
26107
26108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26109   version_type=freebsd-elf
26110   need_lib_prefix=no
26111   need_version=no
26112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26113   soname_spec='${libname}${release}${shared_ext}$major'
26114   shlibpath_var=LD_LIBRARY_PATH
26115   hardcode_into_libs=yes
26116   if test "$with_gnu_ld" = yes; then
26117     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26118     shlibpath_overrides_runpath=no
26119   else
26120     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26121     shlibpath_overrides_runpath=yes
26122     case $host_os in
26123       sco3.2v5*)
26124         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26125         ;;
26126     esac
26127   fi
26128   sys_lib_dlsearch_path_spec='/usr/lib'
26129   ;;
26130
26131 uts4*)
26132   version_type=linux
26133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26134   soname_spec='${libname}${release}${shared_ext}$major'
26135   shlibpath_var=LD_LIBRARY_PATH
26136   ;;
26137
26138 *)
26139   dynamic_linker=no
26140   ;;
26141 esac
26142 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26143 echo "${ECHO_T}$dynamic_linker" >&6; }
26144 test "$dynamic_linker" = no && can_build_shared=no
26145
26146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26147 if test "$GCC" = yes; then
26148   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26149 fi
26150
26151 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26152 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26153 hardcode_action_GCJ=
26154 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26155    test -n "$runpath_var_GCJ" || \
26156    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26157
26158   # We can hardcode non-existant directories.
26159   if test "$hardcode_direct_GCJ" != no &&
26160      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26161      # have to relink, otherwise we might link with an installed library
26162      # when we should be linking with a yet-to-be-installed one
26163      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26164      test "$hardcode_minus_L_GCJ" != no; then
26165     # Linking always hardcodes the temporary library directory.
26166     hardcode_action_GCJ=relink
26167   else
26168     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26169     hardcode_action_GCJ=immediate
26170   fi
26171 else
26172   # We cannot hardcode anything, or else we can only hardcode existing
26173   # directories.
26174   hardcode_action_GCJ=unsupported
26175 fi
26176 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26177 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26178
26179 if test "$hardcode_action_GCJ" = relink; then
26180   # Fast installation is not supported
26181   enable_fast_install=no
26182 elif test "$shlibpath_overrides_runpath" = yes ||
26183      test "$enable_shared" = no; then
26184   # Fast installation is not necessary
26185   enable_fast_install=needless
26186 fi
26187
26188
26189 # The else clause should only fire when bootstrapping the
26190 # libtool distribution, otherwise you forgot to ship ltmain.sh
26191 # with your package, and you will get complaints that there are
26192 # no rules to generate ltmain.sh.
26193 if test -f "$ltmain"; then
26194   # See if we are running on zsh, and set the options which allow our commands through
26195   # without removal of \ escapes.
26196   if test -n "${ZSH_VERSION+set}" ; then
26197     setopt NO_GLOB_SUBST
26198   fi
26199   # Now quote all the things that may contain metacharacters while being
26200   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26201   # variables and quote the copies for generation of the libtool script.
26202   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26203     SED SHELL STRIP \
26204     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26205     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26206     deplibs_check_method reload_flag reload_cmds need_locks \
26207     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26208     lt_cv_sys_global_symbol_to_c_name_address \
26209     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26210     old_postinstall_cmds old_postuninstall_cmds \
26211     compiler_GCJ \
26212     CC_GCJ \
26213     LD_GCJ \
26214     lt_prog_compiler_wl_GCJ \
26215     lt_prog_compiler_pic_GCJ \
26216     lt_prog_compiler_static_GCJ \
26217     lt_prog_compiler_no_builtin_flag_GCJ \
26218     export_dynamic_flag_spec_GCJ \
26219     thread_safe_flag_spec_GCJ \
26220     whole_archive_flag_spec_GCJ \
26221     enable_shared_with_static_runtimes_GCJ \
26222     old_archive_cmds_GCJ \
26223     old_archive_from_new_cmds_GCJ \
26224     predep_objects_GCJ \
26225     postdep_objects_GCJ \
26226     predeps_GCJ \
26227     postdeps_GCJ \
26228     compiler_lib_search_path_GCJ \
26229     archive_cmds_GCJ \
26230     archive_expsym_cmds_GCJ \
26231     postinstall_cmds_GCJ \
26232     postuninstall_cmds_GCJ \
26233     old_archive_from_expsyms_cmds_GCJ \
26234     allow_undefined_flag_GCJ \
26235     no_undefined_flag_GCJ \
26236     export_symbols_cmds_GCJ \
26237     hardcode_libdir_flag_spec_GCJ \
26238     hardcode_libdir_flag_spec_ld_GCJ \
26239     hardcode_libdir_separator_GCJ \
26240     hardcode_automatic_GCJ \
26241     module_cmds_GCJ \
26242     module_expsym_cmds_GCJ \
26243     lt_cv_prog_compiler_c_o_GCJ \
26244     exclude_expsyms_GCJ \
26245     include_expsyms_GCJ; do
26246
26247     case $var in
26248     old_archive_cmds_GCJ | \
26249     old_archive_from_new_cmds_GCJ | \
26250     archive_cmds_GCJ | \
26251     archive_expsym_cmds_GCJ | \
26252     module_cmds_GCJ | \
26253     module_expsym_cmds_GCJ | \
26254     old_archive_from_expsyms_cmds_GCJ | \
26255     export_symbols_cmds_GCJ | \
26256     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26257     postinstall_cmds | postuninstall_cmds | \
26258     old_postinstall_cmds | old_postuninstall_cmds | \
26259     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26260       # Double-quote double-evaled strings.
26261       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26262       ;;
26263     *)
26264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26265       ;;
26266     esac
26267   done
26268
26269   case $lt_echo in
26270   *'\$0 --fallback-echo"')
26271     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26272     ;;
26273   esac
26274
26275 cfgfile="$ofile"
26276
26277   cat <<__EOF__ >> "$cfgfile"
26278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26279
26280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26281
26282 # Shell to use when invoking shell scripts.
26283 SHELL=$lt_SHELL
26284
26285 # Whether or not to build shared libraries.
26286 build_libtool_libs=$enable_shared
26287
26288 # Whether or not to build static libraries.
26289 build_old_libs=$enable_static
26290
26291 # Whether or not to add -lc for building shared libraries.
26292 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26293
26294 # Whether or not to disallow shared libs when runtime libs are static
26295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26296
26297 # Whether or not to optimize for fast installation.
26298 fast_install=$enable_fast_install
26299
26300 # The host system.
26301 host_alias=$host_alias
26302 host=$host
26303 host_os=$host_os
26304
26305 # The build system.
26306 build_alias=$build_alias
26307 build=$build
26308 build_os=$build_os
26309
26310 # An echo program that does not interpret backslashes.
26311 echo=$lt_echo
26312
26313 # The archiver.
26314 AR=$lt_AR
26315 AR_FLAGS=$lt_AR_FLAGS
26316
26317 # A C compiler.
26318 LTCC=$lt_LTCC
26319
26320 # LTCC compiler flags.
26321 LTCFLAGS=$lt_LTCFLAGS
26322
26323 # A language-specific compiler.
26324 CC=$lt_compiler_GCJ
26325
26326 # Is the compiler the GNU C compiler?
26327 with_gcc=$GCC_GCJ
26328
26329 # An ERE matcher.
26330 EGREP=$lt_EGREP
26331
26332 # The linker used to build libraries.
26333 LD=$lt_LD_GCJ
26334
26335 # Whether we need hard or soft links.
26336 LN_S=$lt_LN_S
26337
26338 # A BSD-compatible nm program.
26339 NM=$lt_NM
26340
26341 # A symbol stripping program
26342 STRIP=$lt_STRIP
26343
26344 # Used to examine libraries when file_magic_cmd begins "file"
26345 MAGIC_CMD=$MAGIC_CMD
26346
26347 # Used on cygwin: DLL creation program.
26348 DLLTOOL="$DLLTOOL"
26349
26350 # Used on cygwin: object dumper.
26351 OBJDUMP="$OBJDUMP"
26352
26353 # Used on cygwin: assembler.
26354 AS="$AS"
26355
26356 # The name of the directory that contains temporary libtool files.
26357 objdir=$objdir
26358
26359 # How to create reloadable object files.
26360 reload_flag=$lt_reload_flag
26361 reload_cmds=$lt_reload_cmds
26362
26363 # How to pass a linker flag through the compiler.
26364 wl=$lt_lt_prog_compiler_wl_GCJ
26365
26366 # Object file suffix (normally "o").
26367 objext="$ac_objext"
26368
26369 # Old archive suffix (normally "a").
26370 libext="$libext"
26371
26372 # Shared library suffix (normally ".so").
26373 shrext_cmds='$shrext_cmds'
26374
26375 # Executable file suffix (normally "").
26376 exeext="$exeext"
26377
26378 # Additional compiler flags for building library objects.
26379 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26380 pic_mode=$pic_mode
26381
26382 # What is the maximum length of a command?
26383 max_cmd_len=$lt_cv_sys_max_cmd_len
26384
26385 # Does compiler simultaneously support -c and -o options?
26386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26387
26388 # Must we lock files when doing compilation?
26389 need_locks=$lt_need_locks
26390
26391 # Do we need the lib prefix for modules?
26392 need_lib_prefix=$need_lib_prefix
26393
26394 # Do we need a version for libraries?
26395 need_version=$need_version
26396
26397 # Whether dlopen is supported.
26398 dlopen_support=$enable_dlopen
26399
26400 # Whether dlopen of programs is supported.
26401 dlopen_self=$enable_dlopen_self
26402
26403 # Whether dlopen of statically linked programs is supported.
26404 dlopen_self_static=$enable_dlopen_self_static
26405
26406 # Compiler flag to prevent dynamic linking.
26407 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26408
26409 # Compiler flag to turn off builtin functions.
26410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26411
26412 # Compiler flag to allow reflexive dlopens.
26413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26414
26415 # Compiler flag to generate shared objects directly from archives.
26416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26417
26418 # Compiler flag to generate thread-safe objects.
26419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26420
26421 # Library versioning type.
26422 version_type=$version_type
26423
26424 # Format of library name prefix.
26425 libname_spec=$lt_libname_spec
26426
26427 # List of archive names.  First name is the real one, the rest are links.
26428 # The last name is the one that the linker finds with -lNAME.
26429 library_names_spec=$lt_library_names_spec
26430
26431 # The coded name of the library, if different from the real name.
26432 soname_spec=$lt_soname_spec
26433
26434 # Commands used to build and install an old-style archive.
26435 RANLIB=$lt_RANLIB
26436 old_archive_cmds=$lt_old_archive_cmds_GCJ
26437 old_postinstall_cmds=$lt_old_postinstall_cmds
26438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26439
26440 # Create an old-style archive from a shared archive.
26441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26442
26443 # Create a temporary old-style archive to link instead of a shared archive.
26444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26445
26446 # Commands used to build and install a shared archive.
26447 archive_cmds=$lt_archive_cmds_GCJ
26448 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26449 postinstall_cmds=$lt_postinstall_cmds
26450 postuninstall_cmds=$lt_postuninstall_cmds
26451
26452 # Commands used to build a loadable module (assumed same as above if empty)
26453 module_cmds=$lt_module_cmds_GCJ
26454 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26455
26456 # Commands to strip libraries.
26457 old_striplib=$lt_old_striplib
26458 striplib=$lt_striplib
26459
26460 # Dependencies to place before the objects being linked to create a
26461 # shared library.
26462 predep_objects=$lt_predep_objects_GCJ
26463
26464 # Dependencies to place after the objects being linked to create a
26465 # shared library.
26466 postdep_objects=$lt_postdep_objects_GCJ
26467
26468 # Dependencies to place before the objects being linked to create a
26469 # shared library.
26470 predeps=$lt_predeps_GCJ
26471
26472 # Dependencies to place after the objects being linked to create a
26473 # shared library.
26474 postdeps=$lt_postdeps_GCJ
26475
26476 # The library search path used internally by the compiler when linking
26477 # a shared library.
26478 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26479
26480 # Method to check whether dependent libraries are shared objects.
26481 deplibs_check_method=$lt_deplibs_check_method
26482
26483 # Command to use when deplibs_check_method == file_magic.
26484 file_magic_cmd=$lt_file_magic_cmd
26485
26486 # Flag that allows shared libraries with undefined symbols to be built.
26487 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26488
26489 # Flag that forces no undefined symbols.
26490 no_undefined_flag=$lt_no_undefined_flag_GCJ
26491
26492 # Commands used to finish a libtool library installation in a directory.
26493 finish_cmds=$lt_finish_cmds
26494
26495 # Same as above, but a single script fragment to be evaled but not shown.
26496 finish_eval=$lt_finish_eval
26497
26498 # Take the output of nm and produce a listing of raw symbols and C names.
26499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26500
26501 # Transform the output of nm in a proper C declaration
26502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26503
26504 # Transform the output of nm in a C name address pair
26505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26506
26507 # This is the shared library runtime path variable.
26508 runpath_var=$runpath_var
26509
26510 # This is the shared library path variable.
26511 shlibpath_var=$shlibpath_var
26512
26513 # Is shlibpath searched before the hard-coded library search path?
26514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26515
26516 # How to hardcode a shared library path into an executable.
26517 hardcode_action=$hardcode_action_GCJ
26518
26519 # Whether we should hardcode library paths into libraries.
26520 hardcode_into_libs=$hardcode_into_libs
26521
26522 # Flag to hardcode \$libdir into a binary during linking.
26523 # This must work even if \$libdir does not exist.
26524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26525
26526 # If ld is used when linking, flag to hardcode \$libdir into
26527 # a binary during linking. This must work even if \$libdir does
26528 # not exist.
26529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26530
26531 # Whether we need a single -rpath flag with a separated argument.
26532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26533
26534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26535 # resulting binary.
26536 hardcode_direct=$hardcode_direct_GCJ
26537
26538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26539 # resulting binary.
26540 hardcode_minus_L=$hardcode_minus_L_GCJ
26541
26542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26543 # the resulting binary.
26544 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26545
26546 # Set to yes if building a shared library automatically hardcodes DIR into the library
26547 # and all subsequent libraries and executables linked against it.
26548 hardcode_automatic=$hardcode_automatic_GCJ
26549
26550 # Variables whose values should be saved in libtool wrapper scripts and
26551 # restored at relink time.
26552 variables_saved_for_relink="$variables_saved_for_relink"
26553
26554 # Whether libtool must link a program against all its dependency libraries.
26555 link_all_deplibs=$link_all_deplibs_GCJ
26556
26557 # Compile-time system search path for libraries
26558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26559
26560 # Run-time system search path for libraries
26561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26562
26563 # Fix the shell variable \$srcfile for the compiler.
26564 fix_srcfile_path="$fix_srcfile_path_GCJ"
26565
26566 # Set to yes if exported symbols are required.
26567 always_export_symbols=$always_export_symbols_GCJ
26568
26569 # The commands to list exported symbols.
26570 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26571
26572 # The commands to extract the exported symbol list from a shared archive.
26573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26574
26575 # Symbols that should not be listed in the preloaded symbols.
26576 exclude_expsyms=$lt_exclude_expsyms_GCJ
26577
26578 # Symbols that must always be exported.
26579 include_expsyms=$lt_include_expsyms_GCJ
26580
26581 # ### END LIBTOOL TAG CONFIG: $tagname
26582
26583 __EOF__
26584
26585
26586 else
26587   # If there is no Makefile yet, we rely on a make rule to execute
26588   # `config.status --recheck' to rerun these tests and create the
26589   # libtool script then.
26590   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26591   if test -f "$ltmain_in"; then
26592     test -f Makefile && make "$ltmain"
26593   fi
26594 fi
26595
26596
26597 ac_ext=c
26598 ac_cpp='$CPP $CPPFLAGS'
26599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26602
26603 CC="$lt_save_CC"
26604
26605         else
26606           tagname=""
26607         fi
26608         ;;
26609
26610       RC)
26611         ac_ext=c
26612 ac_cpp='$CPP $CPPFLAGS'
26613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26616
26617
26618 # Source file extension for RC test sources.
26619 ac_ext=rc
26620
26621 # Object file extension for compiled RC test sources.
26622 objext=o
26623 objext_RC=$objext
26624
26625 # Code to be used in simple compile tests
26626 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26627
26628 # Code to be used in simple link tests
26629 lt_simple_link_test_code="$lt_simple_compile_test_code"
26630
26631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26632
26633 # If no C compiler was specified, use CC.
26634 LTCC=${LTCC-"$CC"}
26635
26636 # If no C compiler flags were specified, use CFLAGS.
26637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26638
26639 # Allow CC to be a program name with arguments.
26640 compiler=$CC
26641
26642
26643 # save warnings/boilerplate of simple test code
26644 ac_outfile=conftest.$ac_objext
26645 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26647 _lt_compiler_boilerplate=`cat conftest.err`
26648 $rm conftest*
26649
26650 ac_outfile=conftest.$ac_objext
26651 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26653 _lt_linker_boilerplate=`cat conftest.err`
26654 $rm conftest*
26655
26656
26657 # Allow CC to be a program name with arguments.
26658 lt_save_CC="$CC"
26659 CC=${RC-"windres"}
26660 compiler=$CC
26661 compiler_RC=$CC
26662 for cc_temp in $compiler""; do
26663   case $cc_temp in
26664     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26665     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26666     \-*) ;;
26667     *) break;;
26668   esac
26669 done
26670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26671
26672 lt_cv_prog_compiler_c_o_RC=yes
26673
26674 # The else clause should only fire when bootstrapping the
26675 # libtool distribution, otherwise you forgot to ship ltmain.sh
26676 # with your package, and you will get complaints that there are
26677 # no rules to generate ltmain.sh.
26678 if test -f "$ltmain"; then
26679   # See if we are running on zsh, and set the options which allow our commands through
26680   # without removal of \ escapes.
26681   if test -n "${ZSH_VERSION+set}" ; then
26682     setopt NO_GLOB_SUBST
26683   fi
26684   # Now quote all the things that may contain metacharacters while being
26685   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26686   # variables and quote the copies for generation of the libtool script.
26687   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26688     SED SHELL STRIP \
26689     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26690     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26691     deplibs_check_method reload_flag reload_cmds need_locks \
26692     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26693     lt_cv_sys_global_symbol_to_c_name_address \
26694     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26695     old_postinstall_cmds old_postuninstall_cmds \
26696     compiler_RC \
26697     CC_RC \
26698     LD_RC \
26699     lt_prog_compiler_wl_RC \
26700     lt_prog_compiler_pic_RC \
26701     lt_prog_compiler_static_RC \
26702     lt_prog_compiler_no_builtin_flag_RC \
26703     export_dynamic_flag_spec_RC \
26704     thread_safe_flag_spec_RC \
26705     whole_archive_flag_spec_RC \
26706     enable_shared_with_static_runtimes_RC \
26707     old_archive_cmds_RC \
26708     old_archive_from_new_cmds_RC \
26709     predep_objects_RC \
26710     postdep_objects_RC \
26711     predeps_RC \
26712     postdeps_RC \
26713     compiler_lib_search_path_RC \
26714     archive_cmds_RC \
26715     archive_expsym_cmds_RC \
26716     postinstall_cmds_RC \
26717     postuninstall_cmds_RC \
26718     old_archive_from_expsyms_cmds_RC \
26719     allow_undefined_flag_RC \
26720     no_undefined_flag_RC \
26721     export_symbols_cmds_RC \
26722     hardcode_libdir_flag_spec_RC \
26723     hardcode_libdir_flag_spec_ld_RC \
26724     hardcode_libdir_separator_RC \
26725     hardcode_automatic_RC \
26726     module_cmds_RC \
26727     module_expsym_cmds_RC \
26728     lt_cv_prog_compiler_c_o_RC \
26729     exclude_expsyms_RC \
26730     include_expsyms_RC; do
26731
26732     case $var in
26733     old_archive_cmds_RC | \
26734     old_archive_from_new_cmds_RC | \
26735     archive_cmds_RC | \
26736     archive_expsym_cmds_RC | \
26737     module_cmds_RC | \
26738     module_expsym_cmds_RC | \
26739     old_archive_from_expsyms_cmds_RC | \
26740     export_symbols_cmds_RC | \
26741     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26742     postinstall_cmds | postuninstall_cmds | \
26743     old_postinstall_cmds | old_postuninstall_cmds | \
26744     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26745       # Double-quote double-evaled strings.
26746       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26747       ;;
26748     *)
26749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26750       ;;
26751     esac
26752   done
26753
26754   case $lt_echo in
26755   *'\$0 --fallback-echo"')
26756     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26757     ;;
26758   esac
26759
26760 cfgfile="$ofile"
26761
26762   cat <<__EOF__ >> "$cfgfile"
26763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26764
26765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26766
26767 # Shell to use when invoking shell scripts.
26768 SHELL=$lt_SHELL
26769
26770 # Whether or not to build shared libraries.
26771 build_libtool_libs=$enable_shared
26772
26773 # Whether or not to build static libraries.
26774 build_old_libs=$enable_static
26775
26776 # Whether or not to add -lc for building shared libraries.
26777 build_libtool_need_lc=$archive_cmds_need_lc_RC
26778
26779 # Whether or not to disallow shared libs when runtime libs are static
26780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26781
26782 # Whether or not to optimize for fast installation.
26783 fast_install=$enable_fast_install
26784
26785 # The host system.
26786 host_alias=$host_alias
26787 host=$host
26788 host_os=$host_os
26789
26790 # The build system.
26791 build_alias=$build_alias
26792 build=$build
26793 build_os=$build_os
26794
26795 # An echo program that does not interpret backslashes.
26796 echo=$lt_echo
26797
26798 # The archiver.
26799 AR=$lt_AR
26800 AR_FLAGS=$lt_AR_FLAGS
26801
26802 # A C compiler.
26803 LTCC=$lt_LTCC
26804
26805 # LTCC compiler flags.
26806 LTCFLAGS=$lt_LTCFLAGS
26807
26808 # A language-specific compiler.
26809 CC=$lt_compiler_RC
26810
26811 # Is the compiler the GNU C compiler?
26812 with_gcc=$GCC_RC
26813
26814 # An ERE matcher.
26815 EGREP=$lt_EGREP
26816
26817 # The linker used to build libraries.
26818 LD=$lt_LD_RC
26819
26820 # Whether we need hard or soft links.
26821 LN_S=$lt_LN_S
26822
26823 # A BSD-compatible nm program.
26824 NM=$lt_NM
26825
26826 # A symbol stripping program
26827 STRIP=$lt_STRIP
26828
26829 # Used to examine libraries when file_magic_cmd begins "file"
26830 MAGIC_CMD=$MAGIC_CMD
26831
26832 # Used on cygwin: DLL creation program.
26833 DLLTOOL="$DLLTOOL"
26834
26835 # Used on cygwin: object dumper.
26836 OBJDUMP="$OBJDUMP"
26837
26838 # Used on cygwin: assembler.
26839 AS="$AS"
26840
26841 # The name of the directory that contains temporary libtool files.
26842 objdir=$objdir
26843
26844 # How to create reloadable object files.
26845 reload_flag=$lt_reload_flag
26846 reload_cmds=$lt_reload_cmds
26847
26848 # How to pass a linker flag through the compiler.
26849 wl=$lt_lt_prog_compiler_wl_RC
26850
26851 # Object file suffix (normally "o").
26852 objext="$ac_objext"
26853
26854 # Old archive suffix (normally "a").
26855 libext="$libext"
26856
26857 # Shared library suffix (normally ".so").
26858 shrext_cmds='$shrext_cmds'
26859
26860 # Executable file suffix (normally "").
26861 exeext="$exeext"
26862
26863 # Additional compiler flags for building library objects.
26864 pic_flag=$lt_lt_prog_compiler_pic_RC
26865 pic_mode=$pic_mode
26866
26867 # What is the maximum length of a command?
26868 max_cmd_len=$lt_cv_sys_max_cmd_len
26869
26870 # Does compiler simultaneously support -c and -o options?
26871 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26872
26873 # Must we lock files when doing compilation?
26874 need_locks=$lt_need_locks
26875
26876 # Do we need the lib prefix for modules?
26877 need_lib_prefix=$need_lib_prefix
26878
26879 # Do we need a version for libraries?
26880 need_version=$need_version
26881
26882 # Whether dlopen is supported.
26883 dlopen_support=$enable_dlopen
26884
26885 # Whether dlopen of programs is supported.
26886 dlopen_self=$enable_dlopen_self
26887
26888 # Whether dlopen of statically linked programs is supported.
26889 dlopen_self_static=$enable_dlopen_self_static
26890
26891 # Compiler flag to prevent dynamic linking.
26892 link_static_flag=$lt_lt_prog_compiler_static_RC
26893
26894 # Compiler flag to turn off builtin functions.
26895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26896
26897 # Compiler flag to allow reflexive dlopens.
26898 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26899
26900 # Compiler flag to generate shared objects directly from archives.
26901 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26902
26903 # Compiler flag to generate thread-safe objects.
26904 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26905
26906 # Library versioning type.
26907 version_type=$version_type
26908
26909 # Format of library name prefix.
26910 libname_spec=$lt_libname_spec
26911
26912 # List of archive names.  First name is the real one, the rest are links.
26913 # The last name is the one that the linker finds with -lNAME.
26914 library_names_spec=$lt_library_names_spec
26915
26916 # The coded name of the library, if different from the real name.
26917 soname_spec=$lt_soname_spec
26918
26919 # Commands used to build and install an old-style archive.
26920 RANLIB=$lt_RANLIB
26921 old_archive_cmds=$lt_old_archive_cmds_RC
26922 old_postinstall_cmds=$lt_old_postinstall_cmds
26923 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26924
26925 # Create an old-style archive from a shared archive.
26926 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26927
26928 # Create a temporary old-style archive to link instead of a shared archive.
26929 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26930
26931 # Commands used to build and install a shared archive.
26932 archive_cmds=$lt_archive_cmds_RC
26933 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26934 postinstall_cmds=$lt_postinstall_cmds
26935 postuninstall_cmds=$lt_postuninstall_cmds
26936
26937 # Commands used to build a loadable module (assumed same as above if empty)
26938 module_cmds=$lt_module_cmds_RC
26939 module_expsym_cmds=$lt_module_expsym_cmds_RC
26940
26941 # Commands to strip libraries.
26942 old_striplib=$lt_old_striplib
26943 striplib=$lt_striplib
26944
26945 # Dependencies to place before the objects being linked to create a
26946 # shared library.
26947 predep_objects=$lt_predep_objects_RC
26948
26949 # Dependencies to place after the objects being linked to create a
26950 # shared library.
26951 postdep_objects=$lt_postdep_objects_RC
26952
26953 # Dependencies to place before the objects being linked to create a
26954 # shared library.
26955 predeps=$lt_predeps_RC
26956
26957 # Dependencies to place after the objects being linked to create a
26958 # shared library.
26959 postdeps=$lt_postdeps_RC
26960
26961 # The library search path used internally by the compiler when linking
26962 # a shared library.
26963 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26964
26965 # Method to check whether dependent libraries are shared objects.
26966 deplibs_check_method=$lt_deplibs_check_method
26967
26968 # Command to use when deplibs_check_method == file_magic.
26969 file_magic_cmd=$lt_file_magic_cmd
26970
26971 # Flag that allows shared libraries with undefined symbols to be built.
26972 allow_undefined_flag=$lt_allow_undefined_flag_RC
26973
26974 # Flag that forces no undefined symbols.
26975 no_undefined_flag=$lt_no_undefined_flag_RC
26976
26977 # Commands used to finish a libtool library installation in a directory.
26978 finish_cmds=$lt_finish_cmds
26979
26980 # Same as above, but a single script fragment to be evaled but not shown.
26981 finish_eval=$lt_finish_eval
26982
26983 # Take the output of nm and produce a listing of raw symbols and C names.
26984 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26985
26986 # Transform the output of nm in a proper C declaration
26987 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26988
26989 # Transform the output of nm in a C name address pair
26990 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26991
26992 # This is the shared library runtime path variable.
26993 runpath_var=$runpath_var
26994
26995 # This is the shared library path variable.
26996 shlibpath_var=$shlibpath_var
26997
26998 # Is shlibpath searched before the hard-coded library search path?
26999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27000
27001 # How to hardcode a shared library path into an executable.
27002 hardcode_action=$hardcode_action_RC
27003
27004 # Whether we should hardcode library paths into libraries.
27005 hardcode_into_libs=$hardcode_into_libs
27006
27007 # Flag to hardcode \$libdir into a binary during linking.
27008 # This must work even if \$libdir does not exist.
27009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27010
27011 # If ld is used when linking, flag to hardcode \$libdir into
27012 # a binary during linking. This must work even if \$libdir does
27013 # not exist.
27014 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27015
27016 # Whether we need a single -rpath flag with a separated argument.
27017 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27018
27019 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27020 # resulting binary.
27021 hardcode_direct=$hardcode_direct_RC
27022
27023 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27024 # resulting binary.
27025 hardcode_minus_L=$hardcode_minus_L_RC
27026
27027 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27028 # the resulting binary.
27029 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27030
27031 # Set to yes if building a shared library automatically hardcodes DIR into the library
27032 # and all subsequent libraries and executables linked against it.
27033 hardcode_automatic=$hardcode_automatic_RC
27034
27035 # Variables whose values should be saved in libtool wrapper scripts and
27036 # restored at relink time.
27037 variables_saved_for_relink="$variables_saved_for_relink"
27038
27039 # Whether libtool must link a program against all its dependency libraries.
27040 link_all_deplibs=$link_all_deplibs_RC
27041
27042 # Compile-time system search path for libraries
27043 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27044
27045 # Run-time system search path for libraries
27046 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27047
27048 # Fix the shell variable \$srcfile for the compiler.
27049 fix_srcfile_path="$fix_srcfile_path_RC"
27050
27051 # Set to yes if exported symbols are required.
27052 always_export_symbols=$always_export_symbols_RC
27053
27054 # The commands to list exported symbols.
27055 export_symbols_cmds=$lt_export_symbols_cmds_RC
27056
27057 # The commands to extract the exported symbol list from a shared archive.
27058 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27059
27060 # Symbols that should not be listed in the preloaded symbols.
27061 exclude_expsyms=$lt_exclude_expsyms_RC
27062
27063 # Symbols that must always be exported.
27064 include_expsyms=$lt_include_expsyms_RC
27065
27066 # ### END LIBTOOL TAG CONFIG: $tagname
27067
27068 __EOF__
27069
27070
27071 else
27072   # If there is no Makefile yet, we rely on a make rule to execute
27073   # `config.status --recheck' to rerun these tests and create the
27074   # libtool script then.
27075   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27076   if test -f "$ltmain_in"; then
27077     test -f Makefile && make "$ltmain"
27078   fi
27079 fi
27080
27081
27082 ac_ext=c
27083 ac_cpp='$CPP $CPPFLAGS'
27084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27087
27088 CC="$lt_save_CC"
27089
27090         ;;
27091
27092       *)
27093         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27094 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27095    { (exit 1); exit 1; }; }
27096         ;;
27097       esac
27098
27099       # Append the new tag name to the list of available tags.
27100       if test -n "$tagname" ; then
27101       available_tags="$available_tags $tagname"
27102     fi
27103     fi
27104   done
27105   IFS="$lt_save_ifs"
27106
27107   # Now substitute the updated list of available tags.
27108   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27109     mv "${ofile}T" "$ofile"
27110     chmod +x "$ofile"
27111   else
27112     rm -f "${ofile}T"
27113     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27114 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27115    { (exit 1); exit 1; }; }
27116   fi
27117 fi
27118
27119
27120
27121 # This can be used to rebuild libtool when needed
27122 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27123
27124 # Always use our own libtool.
27125 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27126
27127 # Prevent multiple expansion
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149 if test "$lt_cv_dlopen_self" = "yes" ; then
27150
27151 cat >>confdefs.h <<\_ACEOF
27152 #define CAN_DLOPEN_SELF 1
27153 _ACEOF
27154
27155 fi
27156
27157
27158 if test "$WITH_LLVMGCCDIR" = "default" ; then
27159   LLVMGCC="llvm-gcc${EXEEXT}"
27160   LLVMGXX="llvm-g++${EXEEXT}"
27161   LLVMGCCCOMMAND="$LLVMGCC"
27162   LLVMGXXCOMMAND="$LLVMGXX"
27163   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27164
27165   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27166
27167   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27168 set dummy $LLVMGCC; ac_word=$2
27169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27171 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   case $LLVMGCC in
27175   [\\/]* | ?:[\\/]*)
27176   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27177   ;;
27178   *)
27179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27180 for as_dir in $PATH
27181 do
27182   IFS=$as_save_IFS
27183   test -z "$as_dir" && as_dir=.
27184   for ac_exec_ext in '' $ac_executable_extensions; do
27185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27186     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27188     break 2
27189   fi
27190 done
27191 done
27192 IFS=$as_save_IFS
27193
27194   ;;
27195 esac
27196 fi
27197 LLVMGCC=$ac_cv_path_LLVMGCC
27198 if test -n "$LLVMGCC"; then
27199   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27200 echo "${ECHO_T}$LLVMGCC" >&6; }
27201 else
27202   { echo "$as_me:$LINENO: result: no" >&5
27203 echo "${ECHO_T}no" >&6; }
27204 fi
27205
27206
27207   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27208 set dummy $LLVMGXX; ac_word=$2
27209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27211 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27212   echo $ECHO_N "(cached) $ECHO_C" >&6
27213 else
27214   case $LLVMGXX in
27215   [\\/]* | ?:[\\/]*)
27216   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27217   ;;
27218   *)
27219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27220 for as_dir in $PATH
27221 do
27222   IFS=$as_save_IFS
27223   test -z "$as_dir" && as_dir=.
27224   for ac_exec_ext in '' $ac_executable_extensions; do
27225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27226     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27228     break 2
27229   fi
27230 done
27231 done
27232 IFS=$as_save_IFS
27233
27234   ;;
27235 esac
27236 fi
27237 LLVMGXX=$ac_cv_path_LLVMGXX
27238 if test -n "$LLVMGXX"; then
27239   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27240 echo "${ECHO_T}$LLVMGXX" >&6; }
27241 else
27242   { echo "$as_me:$LINENO: result: no" >&5
27243 echo "${ECHO_T}no" >&6; }
27244 fi
27245
27246
27247 else
27248   if test -z "$LLVMGCC"; then
27249     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27250     LLVMGCCCOMMAND="$LLVMGCC"
27251   fi
27252   if test -z "$LLVMGXX"; then
27253     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27254     LLVMGXXCOMMAND="$LLVMGXX"
27255   fi
27256
27257   LLVMGCC=$LLVMGCC
27258
27259   LLVMGXX=$LLVMGXX
27260
27261   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27262
27263   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27264
27265 fi
27266
27267
27268 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27269 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27270
27271 ICC=no
27272 IXX=no
27273 case $CC in
27274   icc*|icpc*)
27275     ICC=yes
27276     IXX=yes
27277     ;;
27278    *)
27279     ;;
27280 esac
27281
27282 if test "$GCC" != "yes" && test "$ICC" != "yes"
27283 then
27284   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27285 echo "$as_me: error: gcc|icc required but not found" >&2;}
27286    { (exit 1); exit 1; }; }
27287 fi
27288
27289 if test "$GXX" != "yes" && test "$IXX" != "yes"
27290 then
27291   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27292 echo "$as_me: error: g++|icc required but not found" >&2;}
27293    { (exit 1); exit 1; }; }
27294 fi
27295
27296 if test "$GCC" = "yes"
27297 then
27298   cat >conftest.$ac_ext <<_ACEOF
27299 #if !defined(__GNUC__) || __GNUC__ < 3
27300 #error Unsupported GCC version
27301 #endif
27302
27303 _ACEOF
27304 rm -f conftest.$ac_objext
27305 if { (ac_try="$ac_compile"
27306 case "(($ac_try" in
27307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308   *) ac_try_echo=$ac_try;;
27309 esac
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311   (eval "$ac_compile") 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } &&
27318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27319   { (case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_try") 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; } &&
27328          { ac_try='test -s conftest.$ac_objext'
27329   { (case "(($ac_try" in
27330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331   *) ac_try_echo=$ac_try;;
27332 esac
27333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334   (eval "$ac_try") 2>&5
27335   ac_status=$?
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); }; }; then
27338   :
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27344 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27345    { (exit 1); exit 1; }; }
27346 fi
27347
27348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27349 fi
27350
27351 if test -z "$llvm_cv_gnu_make_command"
27352 then
27353   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27354 echo "$as_me: error: GNU Make required but not found" >&2;}
27355    { (exit 1); exit 1; }; }
27356 fi
27357
27358 { echo "$as_me:$LINENO: result: ok" >&5
27359 echo "${ECHO_T}ok" >&6; }
27360
27361 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27362 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27363 if test "${ac_cv_lib_m_sin+set}" = set; then
27364   echo $ECHO_N "(cached) $ECHO_C" >&6
27365 else
27366   ac_check_lib_save_LIBS=$LIBS
27367 LIBS="-lm  $LIBS"
27368 cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374
27375 /* Override any GCC internal prototype to avoid an error.
27376    Use char because int might match the return type of a GCC
27377    builtin and then its argument prototype would still apply.  */
27378 #ifdef __cplusplus
27379 extern "C"
27380 #endif
27381 char sin ();
27382 int
27383 main ()
27384 {
27385 return sin ();
27386   ;
27387   return 0;
27388 }
27389 _ACEOF
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (ac_try="$ac_link"
27392 case "(($ac_try" in
27393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394   *) ac_try_echo=$ac_try;;
27395 esac
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397   (eval "$ac_link") 2>conftest.er1
27398   ac_status=$?
27399   grep -v '^ *+' conftest.er1 >conftest.err
27400   rm -f conftest.er1
27401   cat conftest.err >&5
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); } &&
27404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27405   { (case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410   (eval "$ac_try") 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; } &&
27414          { ac_try='test -s conftest$ac_exeext'
27415   { (case "(($ac_try" in
27416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417   *) ac_try_echo=$ac_try;;
27418 esac
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420   (eval "$ac_try") 2>&5
27421   ac_status=$?
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); }; }; then
27424   ac_cv_lib_m_sin=yes
27425 else
27426   echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27428
27429         ac_cv_lib_m_sin=no
27430 fi
27431
27432 rm -f core conftest.err conftest.$ac_objext \
27433       conftest$ac_exeext conftest.$ac_ext
27434 LIBS=$ac_check_lib_save_LIBS
27435 fi
27436 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27437 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27438 if test $ac_cv_lib_m_sin = yes; then
27439   cat >>confdefs.h <<_ACEOF
27440 #define HAVE_LIBM 1
27441 _ACEOF
27442
27443   LIBS="-lm $LIBS"
27444
27445 fi
27446
27447 if test "$llvm_cv_os_type" = "MingW" ; then
27448
27449 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27450 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27451 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27452   echo $ECHO_N "(cached) $ECHO_C" >&6
27453 else
27454   ac_check_lib_save_LIBS=$LIBS
27455 LIBS="-limagehlp  $LIBS"
27456 cat >conftest.$ac_ext <<_ACEOF
27457 /* confdefs.h.  */
27458 _ACEOF
27459 cat confdefs.h >>conftest.$ac_ext
27460 cat >>conftest.$ac_ext <<_ACEOF
27461 /* end confdefs.h.  */
27462
27463
27464 int
27465 main ()
27466 {
27467 return main ();
27468   ;
27469   return 0;
27470 }
27471 _ACEOF
27472 rm -f conftest.$ac_objext conftest$ac_exeext
27473 if { (ac_try="$ac_link"
27474 case "(($ac_try" in
27475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476   *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479   (eval "$ac_link") 2>conftest.er1
27480   ac_status=$?
27481   grep -v '^ *+' conftest.er1 >conftest.err
27482   rm -f conftest.er1
27483   cat conftest.err >&5
27484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); } &&
27486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27487   { (case "(($ac_try" in
27488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489   *) ac_try_echo=$ac_try;;
27490 esac
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492   (eval "$ac_try") 2>&5
27493   ac_status=$?
27494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); }; } &&
27496          { ac_try='test -s conftest$ac_exeext'
27497   { (case "(($ac_try" in
27498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499   *) ac_try_echo=$ac_try;;
27500 esac
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502   (eval "$ac_try") 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; }; then
27506   ac_cv_lib_imagehlp_main=yes
27507 else
27508   echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27510
27511         ac_cv_lib_imagehlp_main=no
27512 fi
27513
27514 rm -f core conftest.err conftest.$ac_objext \
27515       conftest$ac_exeext conftest.$ac_ext
27516 LIBS=$ac_check_lib_save_LIBS
27517 fi
27518 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27519 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27520 if test $ac_cv_lib_imagehlp_main = yes; then
27521   cat >>confdefs.h <<_ACEOF
27522 #define HAVE_LIBIMAGEHLP 1
27523 _ACEOF
27524
27525   LIBS="-limagehlp $LIBS"
27526
27527 fi
27528
27529
27530 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27531 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27532 if test "${ac_cv_lib_psapi_main+set}" = set; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   ac_check_lib_save_LIBS=$LIBS
27536 LIBS="-lpsapi  $LIBS"
27537 cat >conftest.$ac_ext <<_ACEOF
27538 /* confdefs.h.  */
27539 _ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h.  */
27543
27544
27545 int
27546 main ()
27547 {
27548 return main ();
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (ac_try="$ac_link"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_link") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27577          { ac_try='test -s conftest$ac_exeext'
27578   { (case "(($ac_try" in
27579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580   *) ac_try_echo=$ac_try;;
27581 esac
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583   (eval "$ac_try") 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; }; then
27587   ac_cv_lib_psapi_main=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592         ac_cv_lib_psapi_main=no
27593 fi
27594
27595 rm -f core conftest.err conftest.$ac_objext \
27596       conftest$ac_exeext conftest.$ac_ext
27597 LIBS=$ac_check_lib_save_LIBS
27598 fi
27599 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27600 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27601 if test $ac_cv_lib_psapi_main = yes; then
27602   cat >>confdefs.h <<_ACEOF
27603 #define HAVE_LIBPSAPI 1
27604 _ACEOF
27605
27606   LIBS="-lpsapi $LIBS"
27607
27608 fi
27609
27610 fi
27611
27612 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27613 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27614 if test "${ac_cv_search_dlopen+set}" = set; then
27615   echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617   ac_func_search_save_LIBS=$LIBS
27618 cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624
27625 /* Override any GCC internal prototype to avoid an error.
27626    Use char because int might match the return type of a GCC
27627    builtin and then its argument prototype would still apply.  */
27628 #ifdef __cplusplus
27629 extern "C"
27630 #endif
27631 char dlopen ();
27632 int
27633 main ()
27634 {
27635 return dlopen ();
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 for ac_lib in '' dl; do
27641   if test -z "$ac_lib"; then
27642     ac_res="none required"
27643   else
27644     ac_res=-l$ac_lib
27645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27646   fi
27647   rm -f conftest.$ac_objext conftest$ac_exeext
27648 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } &&
27661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27662   { (case "(($ac_try" in
27663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664   *) ac_try_echo=$ac_try;;
27665 esac
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667   (eval "$ac_try") 2>&5
27668   ac_status=$?
27669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); }; } &&
27671          { ac_try='test -s conftest$ac_exeext'
27672   { (case "(($ac_try" in
27673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674   *) ac_try_echo=$ac_try;;
27675 esac
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677   (eval "$ac_try") 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; }; then
27681   ac_cv_search_dlopen=$ac_res
27682 else
27683   echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27685
27686
27687 fi
27688
27689 rm -f core conftest.err conftest.$ac_objext \
27690       conftest$ac_exeext
27691   if test "${ac_cv_search_dlopen+set}" = set; then
27692   break
27693 fi
27694 done
27695 if test "${ac_cv_search_dlopen+set}" = set; then
27696   :
27697 else
27698   ac_cv_search_dlopen=no
27699 fi
27700 rm conftest.$ac_ext
27701 LIBS=$ac_func_search_save_LIBS
27702 fi
27703 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27704 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27705 ac_res=$ac_cv_search_dlopen
27706 if test "$ac_res" != no; then
27707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27708
27709 cat >>confdefs.h <<\_ACEOF
27710 #define HAVE_DLOPEN 1
27711 _ACEOF
27712
27713 else
27714   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27715 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27716 fi
27717
27718
27719 if test "$llvm_cv_enable_libffi" = "yes" ; then
27720   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27721 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27722 if test "${ac_cv_search_ffi_call+set}" = set; then
27723   echo $ECHO_N "(cached) $ECHO_C" >&6
27724 else
27725   ac_func_search_save_LIBS=$LIBS
27726 cat >conftest.$ac_ext <<_ACEOF
27727 /* confdefs.h.  */
27728 _ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h.  */
27732
27733 /* Override any GCC internal prototype to avoid an error.
27734    Use char because int might match the return type of a GCC
27735    builtin and then its argument prototype would still apply.  */
27736 #ifdef __cplusplus
27737 extern "C"
27738 #endif
27739 char ffi_call ();
27740 int
27741 main ()
27742 {
27743 return ffi_call ();
27744   ;
27745   return 0;
27746 }
27747 _ACEOF
27748 for ac_lib in '' ffi; do
27749   if test -z "$ac_lib"; then
27750     ac_res="none required"
27751   else
27752     ac_res=-l$ac_lib
27753     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27754   fi
27755   rm -f conftest.$ac_objext conftest$ac_exeext
27756 if { (ac_try="$ac_link"
27757 case "(($ac_try" in
27758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759   *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762   (eval "$ac_link") 2>conftest.er1
27763   ac_status=$?
27764   grep -v '^ *+' conftest.er1 >conftest.err
27765   rm -f conftest.er1
27766   cat conftest.err >&5
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   (exit $ac_status); } &&
27769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27770   { (case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775   (eval "$ac_try") 2>&5
27776   ac_status=$?
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); }; } &&
27779          { ac_try='test -s conftest$ac_exeext'
27780   { (case "(($ac_try" in
27781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782   *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785   (eval "$ac_try") 2>&5
27786   ac_status=$?
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); }; }; then
27789   ac_cv_search_ffi_call=$ac_res
27790 else
27791   echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27793
27794
27795 fi
27796
27797 rm -f core conftest.err conftest.$ac_objext \
27798       conftest$ac_exeext
27799   if test "${ac_cv_search_ffi_call+set}" = set; then
27800   break
27801 fi
27802 done
27803 if test "${ac_cv_search_ffi_call+set}" = set; then
27804   :
27805 else
27806   ac_cv_search_ffi_call=no
27807 fi
27808 rm conftest.$ac_ext
27809 LIBS=$ac_func_search_save_LIBS
27810 fi
27811 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27812 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27813 ac_res=$ac_cv_search_ffi_call
27814 if test "$ac_res" != no; then
27815   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27816
27817 cat >>confdefs.h <<\_ACEOF
27818 #define HAVE_FFI_CALL 1
27819 _ACEOF
27820
27821 else
27822   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27823 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27824 fi
27825
27826 fi
27827
27828 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27829 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27830 if test "${ac_cv_search_mallinfo+set}" = set; then
27831   echo $ECHO_N "(cached) $ECHO_C" >&6
27832 else
27833   ac_func_search_save_LIBS=$LIBS
27834 cat >conftest.$ac_ext <<_ACEOF
27835 /* confdefs.h.  */
27836 _ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h.  */
27840
27841 /* Override any GCC internal prototype to avoid an error.
27842    Use char because int might match the return type of a GCC
27843    builtin and then its argument prototype would still apply.  */
27844 #ifdef __cplusplus
27845 extern "C"
27846 #endif
27847 char mallinfo ();
27848 int
27849 main ()
27850 {
27851 return mallinfo ();
27852   ;
27853   return 0;
27854 }
27855 _ACEOF
27856 for ac_lib in '' malloc; do
27857   if test -z "$ac_lib"; then
27858     ac_res="none required"
27859   else
27860     ac_res=-l$ac_lib
27861     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27862   fi
27863   rm -f conftest.$ac_objext conftest$ac_exeext
27864 if { (ac_try="$ac_link"
27865 case "(($ac_try" in
27866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867   *) ac_try_echo=$ac_try;;
27868 esac
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870   (eval "$ac_link") 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } &&
27877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27878   { (case "(($ac_try" in
27879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880   *) ac_try_echo=$ac_try;;
27881 esac
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883   (eval "$ac_try") 2>&5
27884   ac_status=$?
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); }; } &&
27887          { ac_try='test -s conftest$ac_exeext'
27888   { (case "(($ac_try" in
27889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890   *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893   (eval "$ac_try") 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; }; then
27897   ac_cv_search_mallinfo=$ac_res
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902
27903 fi
27904
27905 rm -f core conftest.err conftest.$ac_objext \
27906       conftest$ac_exeext
27907   if test "${ac_cv_search_mallinfo+set}" = set; then
27908   break
27909 fi
27910 done
27911 if test "${ac_cv_search_mallinfo+set}" = set; then
27912   :
27913 else
27914   ac_cv_search_mallinfo=no
27915 fi
27916 rm conftest.$ac_ext
27917 LIBS=$ac_func_search_save_LIBS
27918 fi
27919 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27920 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27921 ac_res=$ac_cv_search_mallinfo
27922 if test "$ac_res" != no; then
27923   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27924
27925 cat >>confdefs.h <<\_ACEOF
27926 #define HAVE_MALLINFO 1
27927 _ACEOF
27928
27929 fi
27930
27931
27932 if test "$ENABLE_THREADS" -eq 1 ; then
27933
27934 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27935 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27936 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 else
27939   ac_check_lib_save_LIBS=$LIBS
27940 LIBS="-lpthread  $LIBS"
27941 cat >conftest.$ac_ext <<_ACEOF
27942 /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947
27948 /* Override any GCC internal prototype to avoid an error.
27949    Use char because int might match the return type of a GCC
27950    builtin and then its argument prototype would still apply.  */
27951 #ifdef __cplusplus
27952 extern "C"
27953 #endif
27954 char pthread_mutex_init ();
27955 int
27956 main ()
27957 {
27958 return pthread_mutex_init ();
27959   ;
27960   return 0;
27961 }
27962 _ACEOF
27963 rm -f conftest.$ac_objext conftest$ac_exeext
27964 if { (ac_try="$ac_link"
27965 case "(($ac_try" in
27966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967   *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970   (eval "$ac_link") 2>conftest.er1
27971   ac_status=$?
27972   grep -v '^ *+' conftest.er1 >conftest.err
27973   rm -f conftest.er1
27974   cat conftest.err >&5
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); } &&
27977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27978   { (case "(($ac_try" in
27979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980   *) ac_try_echo=$ac_try;;
27981 esac
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983   (eval "$ac_try") 2>&5
27984   ac_status=$?
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); }; } &&
27987          { ac_try='test -s conftest$ac_exeext'
27988   { (case "(($ac_try" in
27989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990   *) ac_try_echo=$ac_try;;
27991 esac
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993   (eval "$ac_try") 2>&5
27994   ac_status=$?
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); }; }; then
27997   ac_cv_lib_pthread_pthread_mutex_init=yes
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002         ac_cv_lib_pthread_pthread_mutex_init=no
28003 fi
28004
28005 rm -f core conftest.err conftest.$ac_objext \
28006       conftest$ac_exeext conftest.$ac_ext
28007 LIBS=$ac_check_lib_save_LIBS
28008 fi
28009 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28010 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28011 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28012   cat >>confdefs.h <<_ACEOF
28013 #define HAVE_LIBPTHREAD 1
28014 _ACEOF
28015
28016   LIBS="-lpthread $LIBS"
28017
28018 fi
28019
28020   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28021 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28022 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28023   echo $ECHO_N "(cached) $ECHO_C" >&6
28024 else
28025   ac_func_search_save_LIBS=$LIBS
28026 cat >conftest.$ac_ext <<_ACEOF
28027 /* confdefs.h.  */
28028 _ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h.  */
28032
28033 /* Override any GCC internal prototype to avoid an error.
28034    Use char because int might match the return type of a GCC
28035    builtin and then its argument prototype would still apply.  */
28036 #ifdef __cplusplus
28037 extern "C"
28038 #endif
28039 char pthread_mutex_lock ();
28040 int
28041 main ()
28042 {
28043 return pthread_mutex_lock ();
28044   ;
28045   return 0;
28046 }
28047 _ACEOF
28048 for ac_lib in '' pthread; do
28049   if test -z "$ac_lib"; then
28050     ac_res="none required"
28051   else
28052     ac_res=-l$ac_lib
28053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28054   fi
28055   rm -f conftest.$ac_objext conftest$ac_exeext
28056 if { (ac_try="$ac_link"
28057 case "(($ac_try" in
28058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059   *) ac_try_echo=$ac_try;;
28060 esac
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062   (eval "$ac_link") 2>conftest.er1
28063   ac_status=$?
28064   grep -v '^ *+' conftest.er1 >conftest.err
28065   rm -f conftest.er1
28066   cat conftest.err >&5
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); } &&
28069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070   { (case "(($ac_try" in
28071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072   *) ac_try_echo=$ac_try;;
28073 esac
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075   (eval "$ac_try") 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; } &&
28079          { ac_try='test -s conftest$ac_exeext'
28080   { (case "(($ac_try" in
28081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082   *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085   (eval "$ac_try") 2>&5
28086   ac_status=$?
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); }; }; then
28089   ac_cv_search_pthread_mutex_lock=$ac_res
28090 else
28091   echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28093
28094
28095 fi
28096
28097 rm -f core conftest.err conftest.$ac_objext \
28098       conftest$ac_exeext
28099   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28100   break
28101 fi
28102 done
28103 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28104   :
28105 else
28106   ac_cv_search_pthread_mutex_lock=no
28107 fi
28108 rm conftest.$ac_ext
28109 LIBS=$ac_func_search_save_LIBS
28110 fi
28111 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28112 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28113 ac_res=$ac_cv_search_pthread_mutex_lock
28114 if test "$ac_res" != no; then
28115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28116
28117 cat >>confdefs.h <<\_ACEOF
28118 #define HAVE_PTHREAD_MUTEX_LOCK 1
28119 _ACEOF
28120
28121 fi
28122
28123   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28124 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28125 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28126   echo $ECHO_N "(cached) $ECHO_C" >&6
28127 else
28128   ac_func_search_save_LIBS=$LIBS
28129 cat >conftest.$ac_ext <<_ACEOF
28130 /* confdefs.h.  */
28131 _ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h.  */
28135
28136 /* Override any GCC internal prototype to avoid an error.
28137    Use char because int might match the return type of a GCC
28138    builtin and then its argument prototype would still apply.  */
28139 #ifdef __cplusplus
28140 extern "C"
28141 #endif
28142 char pthread_rwlock_init ();
28143 int
28144 main ()
28145 {
28146 return pthread_rwlock_init ();
28147   ;
28148   return 0;
28149 }
28150 _ACEOF
28151 for ac_lib in '' pthread; do
28152   if test -z "$ac_lib"; then
28153     ac_res="none required"
28154   else
28155     ac_res=-l$ac_lib
28156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28157   fi
28158   rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (ac_try="$ac_link"
28160 case "(($ac_try" in
28161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162   *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165   (eval "$ac_link") 2>conftest.er1
28166   ac_status=$?
28167   grep -v '^ *+' conftest.er1 >conftest.err
28168   rm -f conftest.er1
28169   cat conftest.err >&5
28170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171   (exit $ac_status); } &&
28172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173   { (case "(($ac_try" in
28174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175   *) ac_try_echo=$ac_try;;
28176 esac
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178   (eval "$ac_try") 2>&5
28179   ac_status=$?
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); }; } &&
28182          { ac_try='test -s conftest$ac_exeext'
28183   { (case "(($ac_try" in
28184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185   *) ac_try_echo=$ac_try;;
28186 esac
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188   (eval "$ac_try") 2>&5
28189   ac_status=$?
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); }; }; then
28192   ac_cv_search_pthread_rwlock_init=$ac_res
28193 else
28194   echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28196
28197
28198 fi
28199
28200 rm -f core conftest.err conftest.$ac_objext \
28201       conftest$ac_exeext
28202   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28203   break
28204 fi
28205 done
28206 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28207   :
28208 else
28209   ac_cv_search_pthread_rwlock_init=no
28210 fi
28211 rm conftest.$ac_ext
28212 LIBS=$ac_func_search_save_LIBS
28213 fi
28214 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28215 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28216 ac_res=$ac_cv_search_pthread_rwlock_init
28217 if test "$ac_res" != no; then
28218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219
28220 cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_PTHREAD_RWLOCK_INIT 1
28222 _ACEOF
28223
28224 fi
28225
28226   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28227 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28228 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28229   echo $ECHO_N "(cached) $ECHO_C" >&6
28230 else
28231   ac_func_search_save_LIBS=$LIBS
28232 cat >conftest.$ac_ext <<_ACEOF
28233 /* confdefs.h.  */
28234 _ACEOF
28235 cat confdefs.h >>conftest.$ac_ext
28236 cat >>conftest.$ac_ext <<_ACEOF
28237 /* end confdefs.h.  */
28238
28239 /* Override any GCC internal prototype to avoid an error.
28240    Use char because int might match the return type of a GCC
28241    builtin and then its argument prototype would still apply.  */
28242 #ifdef __cplusplus
28243 extern "C"
28244 #endif
28245 char pthread_getspecific ();
28246 int
28247 main ()
28248 {
28249 return pthread_getspecific ();
28250   ;
28251   return 0;
28252 }
28253 _ACEOF
28254 for ac_lib in '' pthread; do
28255   if test -z "$ac_lib"; then
28256     ac_res="none required"
28257   else
28258     ac_res=-l$ac_lib
28259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28260   fi
28261   rm -f conftest.$ac_objext conftest$ac_exeext
28262 if { (ac_try="$ac_link"
28263 case "(($ac_try" in
28264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265   *) ac_try_echo=$ac_try;;
28266 esac
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268   (eval "$ac_link") 2>conftest.er1
28269   ac_status=$?
28270   grep -v '^ *+' conftest.er1 >conftest.err
28271   rm -f conftest.er1
28272   cat conftest.err >&5
28273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274   (exit $ac_status); } &&
28275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28276   { (case "(($ac_try" in
28277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278   *) ac_try_echo=$ac_try;;
28279 esac
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281   (eval "$ac_try") 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); }; } &&
28285          { ac_try='test -s conftest$ac_exeext'
28286   { (case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_try") 2>&5
28292   ac_status=$?
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); }; }; then
28295   ac_cv_search_pthread_getspecific=$ac_res
28296 else
28297   echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28299
28300
28301 fi
28302
28303 rm -f core conftest.err conftest.$ac_objext \
28304       conftest$ac_exeext
28305   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28306   break
28307 fi
28308 done
28309 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28310   :
28311 else
28312   ac_cv_search_pthread_getspecific=no
28313 fi
28314 rm conftest.$ac_ext
28315 LIBS=$ac_func_search_save_LIBS
28316 fi
28317 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28318 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28319 ac_res=$ac_cv_search_pthread_getspecific
28320 if test "$ac_res" != no; then
28321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_PTHREAD_GETSPECIFIC 1
28325 _ACEOF
28326
28327 fi
28328
28329 fi
28330
28331
28332 # Check whether --with-udis86 was given.
28333 if test "${with_udis86+set}" = set; then
28334   withval=$with_udis86;
28335       USE_UDIS86=1
28336
28337       case "$withval" in
28338         /usr/lib|yes) ;;
28339         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28340       esac
28341
28342 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28343 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28344 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28345   echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347   ac_check_lib_save_LIBS=$LIBS
28348 LIBS="-ludis86  $LIBS"
28349 cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355
28356 /* Override any GCC internal prototype to avoid an error.
28357    Use char because int might match the return type of a GCC
28358    builtin and then its argument prototype would still apply.  */
28359 #ifdef __cplusplus
28360 extern "C"
28361 #endif
28362 char ud_init ();
28363 int
28364 main ()
28365 {
28366 return ud_init ();
28367   ;
28368   return 0;
28369 }
28370 _ACEOF
28371 rm -f conftest.$ac_objext conftest$ac_exeext
28372 if { (ac_try="$ac_link"
28373 case "(($ac_try" in
28374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375   *) ac_try_echo=$ac_try;;
28376 esac
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378   (eval "$ac_link") 2>conftest.er1
28379   ac_status=$?
28380   grep -v '^ *+' conftest.er1 >conftest.err
28381   rm -f conftest.er1
28382   cat conftest.err >&5
28383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384   (exit $ac_status); } &&
28385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28386   { (case "(($ac_try" in
28387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388   *) ac_try_echo=$ac_try;;
28389 esac
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391   (eval "$ac_try") 2>&5
28392   ac_status=$?
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); }; } &&
28395          { ac_try='test -s conftest$ac_exeext'
28396   { (case "(($ac_try" in
28397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398   *) ac_try_echo=$ac_try;;
28399 esac
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401   (eval "$ac_try") 2>&5
28402   ac_status=$?
28403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; }; then
28405   ac_cv_lib_udis86_ud_init=yes
28406 else
28407   echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28409
28410         ac_cv_lib_udis86_ud_init=no
28411 fi
28412
28413 rm -f core conftest.err conftest.$ac_objext \
28414       conftest$ac_exeext conftest.$ac_ext
28415 LIBS=$ac_check_lib_save_LIBS
28416 fi
28417 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28418 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28419 if test $ac_cv_lib_udis86_ud_init = yes; then
28420   cat >>confdefs.h <<_ACEOF
28421 #define HAVE_LIBUDIS86 1
28422 _ACEOF
28423
28424   LIBS="-ludis86 $LIBS"
28425
28426 else
28427
28428         echo "Error! You need to have libudis86 around."
28429         exit -1
28430
28431 fi
28432
28433
28434 else
28435   USE_UDIS86=0
28436
28437 fi
28438
28439
28440 cat >>confdefs.h <<_ACEOF
28441 #define USE_UDIS86 $USE_UDIS86
28442 _ACEOF
28443
28444
28445
28446 # Check whether --with-oprofile was given.
28447 if test "${with_oprofile+set}" = set; then
28448   withval=$with_oprofile;
28449       USE_OPROFILE=1
28450
28451       case "$withval" in
28452         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28453         *) llvm_cv_oppath="${withval}/lib/oprofile"
28454            CPPFLAGS="-I${withval}/include";;
28455       esac
28456       LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28457       { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28458 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28459 if test "${ac_cv_search_op_open_agent+set}" = set; then
28460   echo $ECHO_N "(cached) $ECHO_C" >&6
28461 else
28462   ac_func_search_save_LIBS=$LIBS
28463 cat >conftest.$ac_ext <<_ACEOF
28464 /* confdefs.h.  */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h.  */
28469
28470 /* Override any GCC internal prototype to avoid an error.
28471    Use char because int might match the return type of a GCC
28472    builtin and then its argument prototype would still apply.  */
28473 #ifdef __cplusplus
28474 extern "C"
28475 #endif
28476 char op_open_agent ();
28477 int
28478 main ()
28479 {
28480 return op_open_agent ();
28481   ;
28482   return 0;
28483 }
28484 _ACEOF
28485 for ac_lib in '' opagent; do
28486   if test -z "$ac_lib"; then
28487     ac_res="none required"
28488   else
28489     ac_res=-l$ac_lib
28490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28491   fi
28492   rm -f conftest.$ac_objext conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_link") 2>conftest.er1
28500   ac_status=$?
28501   grep -v '^ *+' conftest.er1 >conftest.err
28502   rm -f conftest.er1
28503   cat conftest.err >&5
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } &&
28506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28507   { (case "(($ac_try" in
28508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509   *) ac_try_echo=$ac_try;;
28510 esac
28511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512   (eval "$ac_try") 2>&5
28513   ac_status=$?
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); }; } &&
28516          { ac_try='test -s conftest$ac_exeext'
28517   { (case "(($ac_try" in
28518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28519   *) ac_try_echo=$ac_try;;
28520 esac
28521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522   (eval "$ac_try") 2>&5
28523   ac_status=$?
28524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525   (exit $ac_status); }; }; then
28526   ac_cv_search_op_open_agent=$ac_res
28527 else
28528   echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28530
28531
28532 fi
28533
28534 rm -f core conftest.err conftest.$ac_objext \
28535       conftest$ac_exeext
28536   if test "${ac_cv_search_op_open_agent+set}" = set; then
28537   break
28538 fi
28539 done
28540 if test "${ac_cv_search_op_open_agent+set}" = set; then
28541   :
28542 else
28543   ac_cv_search_op_open_agent=no
28544 fi
28545 rm conftest.$ac_ext
28546 LIBS=$ac_func_search_save_LIBS
28547 fi
28548 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28549 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28550 ac_res=$ac_cv_search_op_open_agent
28551 if test "$ac_res" != no; then
28552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28553
28554 else
28555
28556         echo "Error! You need to have libopagent around."
28557         exit -1
28558
28559 fi
28560
28561       if test "${ac_cv_header_opagent_h+set}" = set; then
28562   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28563 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28564 if test "${ac_cv_header_opagent_h+set}" = set; then
28565   echo $ECHO_N "(cached) $ECHO_C" >&6
28566 fi
28567 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28568 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28569 else
28570   # Is the header compilable?
28571 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28572 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28573 cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579 $ac_includes_default
28580 #include <opagent.h>
28581 _ACEOF
28582 rm -f conftest.$ac_objext
28583 if { (ac_try="$ac_compile"
28584 case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_compile") 2>conftest.er1
28590   ac_status=$?
28591   grep -v '^ *+' conftest.er1 >conftest.err
28592   rm -f conftest.er1
28593   cat conftest.err >&5
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); } &&
28596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28597   { (case "(($ac_try" in
28598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599   *) ac_try_echo=$ac_try;;
28600 esac
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602   (eval "$ac_try") 2>&5
28603   ac_status=$?
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); }; } &&
28606          { ac_try='test -s conftest.$ac_objext'
28607   { (case "(($ac_try" in
28608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609   *) ac_try_echo=$ac_try;;
28610 esac
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612   (eval "$ac_try") 2>&5
28613   ac_status=$?
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); }; }; then
28616   ac_header_compiler=yes
28617 else
28618   echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28620
28621         ac_header_compiler=no
28622 fi
28623
28624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28626 echo "${ECHO_T}$ac_header_compiler" >&6; }
28627
28628 # Is the header present?
28629 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28630 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28631 cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h.  */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h.  */
28637 #include <opagent.h>
28638 _ACEOF
28639 if { (ac_try="$ac_cpp conftest.$ac_ext"
28640 case "(($ac_try" in
28641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642   *) ac_try_echo=$ac_try;;
28643 esac
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } >/dev/null; then
28652   if test -s conftest.err; then
28653     ac_cpp_err=$ac_c_preproc_warn_flag
28654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28655   else
28656     ac_cpp_err=
28657   fi
28658 else
28659   ac_cpp_err=yes
28660 fi
28661 if test -z "$ac_cpp_err"; then
28662   ac_header_preproc=yes
28663 else
28664   echo "$as_me: failed program was:" >&5
28665 sed 's/^/| /' conftest.$ac_ext >&5
28666
28667   ac_header_preproc=no
28668 fi
28669
28670 rm -f conftest.err conftest.$ac_ext
28671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28672 echo "${ECHO_T}$ac_header_preproc" >&6; }
28673
28674 # So?  What about this header?
28675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28676   yes:no: )
28677     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28678 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28679     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28680 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28681     ac_header_preproc=yes
28682     ;;
28683   no:yes:* )
28684     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28685 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28686     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28687 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28688     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28689 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28690     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28691 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28692     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28693 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28694     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28695 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28696     ( cat <<\_ASBOX
28697 ## ----------------------------------- ##
28698 ## Report this to llvmbugs@cs.uiuc.edu ##
28699 ## ----------------------------------- ##
28700 _ASBOX
28701      ) | sed "s/^/$as_me: WARNING:     /" >&2
28702     ;;
28703 esac
28704 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28705 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28706 if test "${ac_cv_header_opagent_h+set}" = set; then
28707   echo $ECHO_N "(cached) $ECHO_C" >&6
28708 else
28709   ac_cv_header_opagent_h=$ac_header_preproc
28710 fi
28711 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28712 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28713
28714 fi
28715 if test $ac_cv_header_opagent_h = yes; then
28716   :
28717 else
28718
28719         echo "Error! You need to have opagent.h around."
28720         exit -1
28721
28722 fi
28723
28724
28725
28726 else
28727
28728       llvm_cv_old_LIBS="$LIBS"
28729       LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28730             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28731 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28732 if test "${ac_cv_search_op_open_agent+set}" = set; then
28733   echo $ECHO_N "(cached) $ECHO_C" >&6
28734 else
28735   ac_func_search_save_LIBS=$LIBS
28736 cat >conftest.$ac_ext <<_ACEOF
28737 /* confdefs.h.  */
28738 _ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h.  */
28742
28743 /* Override any GCC internal prototype to avoid an error.
28744    Use char because int might match the return type of a GCC
28745    builtin and then its argument prototype would still apply.  */
28746 #ifdef __cplusplus
28747 extern "C"
28748 #endif
28749 char op_open_agent ();
28750 int
28751 main ()
28752 {
28753 return op_open_agent ();
28754   ;
28755   return 0;
28756 }
28757 _ACEOF
28758 for ac_lib in '' opagent; do
28759   if test -z "$ac_lib"; then
28760     ac_res="none required"
28761   else
28762     ac_res=-l$ac_lib
28763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28764   fi
28765   rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (ac_try="$ac_link"
28767 case "(($ac_try" in
28768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769   *) ac_try_echo=$ac_try;;
28770 esac
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772   (eval "$ac_link") 2>conftest.er1
28773   ac_status=$?
28774   grep -v '^ *+' conftest.er1 >conftest.err
28775   rm -f conftest.er1
28776   cat conftest.err >&5
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); } &&
28779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28780   { (case "(($ac_try" in
28781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782   *) ac_try_echo=$ac_try;;
28783 esac
28784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785   (eval "$ac_try") 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; } &&
28789          { ac_try='test -s conftest$ac_exeext'
28790   { (case "(($ac_try" in
28791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28792   *) ac_try_echo=$ac_try;;
28793 esac
28794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795   (eval "$ac_try") 2>&5
28796   ac_status=$?
28797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798   (exit $ac_status); }; }; then
28799   ac_cv_search_op_open_agent=$ac_res
28800 else
28801   echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28803
28804
28805 fi
28806
28807 rm -f core conftest.err conftest.$ac_objext \
28808       conftest$ac_exeext
28809   if test "${ac_cv_search_op_open_agent+set}" = set; then
28810   break
28811 fi
28812 done
28813 if test "${ac_cv_search_op_open_agent+set}" = set; then
28814   :
28815 else
28816   ac_cv_search_op_open_agent=no
28817 fi
28818 rm conftest.$ac_ext
28819 LIBS=$ac_func_search_save_LIBS
28820 fi
28821 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28822 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28823 ac_res=$ac_cv_search_op_open_agent
28824 if test "$ac_res" != no; then
28825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28826   USE_OPROFILE=1
28827
28828 else
28829   LIBS="$llvm_cv_old_LIBS"
28830                       USE_OPROFILE=0
28831
28832 fi
28833
28834       if test "${ac_cv_header_opagent_h+set}" = set; then
28835   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28836 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28837 if test "${ac_cv_header_opagent_h+set}" = set; then
28838   echo $ECHO_N "(cached) $ECHO_C" >&6
28839 fi
28840 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28841 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28842 else
28843   # Is the header compilable?
28844 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28845 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28846 cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 $ac_includes_default
28853 #include <opagent.h>
28854 _ACEOF
28855 rm -f conftest.$ac_objext
28856 if { (ac_try="$ac_compile"
28857 case "(($ac_try" in
28858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859   *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862   (eval "$ac_compile") 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } &&
28869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28870   { (case "(($ac_try" in
28871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872   *) ac_try_echo=$ac_try;;
28873 esac
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875   (eval "$ac_try") 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; } &&
28879          { ac_try='test -s conftest.$ac_objext'
28880   { (case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_try") 2>&5
28886   ac_status=$?
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); }; }; then
28889   ac_header_compiler=yes
28890 else
28891   echo "$as_me: failed program was:" >&5
28892 sed 's/^/| /' conftest.$ac_ext >&5
28893
28894         ac_header_compiler=no
28895 fi
28896
28897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28899 echo "${ECHO_T}$ac_header_compiler" >&6; }
28900
28901 # Is the header present?
28902 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28903 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28904 cat >conftest.$ac_ext <<_ACEOF
28905 /* confdefs.h.  */
28906 _ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h.  */
28910 #include <opagent.h>
28911 _ACEOF
28912 if { (ac_try="$ac_cpp conftest.$ac_ext"
28913 case "(($ac_try" in
28914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915   *) ac_try_echo=$ac_try;;
28916 esac
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28919   ac_status=$?
28920   grep -v '^ *+' conftest.er1 >conftest.err
28921   rm -f conftest.er1
28922   cat conftest.err >&5
28923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924   (exit $ac_status); } >/dev/null; then
28925   if test -s conftest.err; then
28926     ac_cpp_err=$ac_c_preproc_warn_flag
28927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28928   else
28929     ac_cpp_err=
28930   fi
28931 else
28932   ac_cpp_err=yes
28933 fi
28934 if test -z "$ac_cpp_err"; then
28935   ac_header_preproc=yes
28936 else
28937   echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.$ac_ext >&5
28939
28940   ac_header_preproc=no
28941 fi
28942
28943 rm -f conftest.err conftest.$ac_ext
28944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28945 echo "${ECHO_T}$ac_header_preproc" >&6; }
28946
28947 # So?  What about this header?
28948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28949   yes:no: )
28950     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28951 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28952     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28953 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28954     ac_header_preproc=yes
28955     ;;
28956   no:yes:* )
28957     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28958 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28959     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28960 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28961     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28962 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28963     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28964 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28965     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28966 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28967     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28968 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28969     ( cat <<\_ASBOX
28970 ## ----------------------------------- ##
28971 ## Report this to llvmbugs@cs.uiuc.edu ##
28972 ## ----------------------------------- ##
28973 _ASBOX
28974      ) | sed "s/^/$as_me: WARNING:     /" >&2
28975     ;;
28976 esac
28977 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28978 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28979 if test "${ac_cv_header_opagent_h+set}" = set; then
28980   echo $ECHO_N "(cached) $ECHO_C" >&6
28981 else
28982   ac_cv_header_opagent_h=$ac_header_preproc
28983 fi
28984 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28985 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28986
28987 fi
28988 if test $ac_cv_header_opagent_h = yes; then
28989   :
28990 else
28991
28992         LIBS="$llvm_cv_old_LIBS"
28993         USE_OPROFILE=0
28994
28995
28996 fi
28997
28998
28999
29000 fi
29001
29002
29003 cat >>confdefs.h <<_ACEOF
29004 #define USE_OPROFILE $USE_OPROFILE
29005 _ACEOF
29006
29007
29008
29009
29010
29011
29012
29013
29014 ac_header_dirent=no
29015 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29016   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29017 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29018 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29020   echo $ECHO_N "(cached) $ECHO_C" >&6
29021 else
29022   cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h.  */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h.  */
29028 #include <sys/types.h>
29029 #include <$ac_hdr>
29030
29031 int
29032 main ()
29033 {
29034 if ((DIR *) 0)
29035 return 0;
29036   ;
29037   return 0;
29038 }
29039 _ACEOF
29040 rm -f conftest.$ac_objext
29041 if { (ac_try="$ac_compile"
29042 case "(($ac_try" in
29043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044   *) ac_try_echo=$ac_try;;
29045 esac
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047   (eval "$ac_compile") 2>conftest.er1
29048   ac_status=$?
29049   grep -v '^ *+' conftest.er1 >conftest.err
29050   rm -f conftest.er1
29051   cat conftest.err >&5
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); } &&
29054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29055   { (case "(($ac_try" in
29056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057   *) ac_try_echo=$ac_try;;
29058 esac
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060   (eval "$ac_try") 2>&5
29061   ac_status=$?
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); }; } &&
29064          { ac_try='test -s conftest.$ac_objext'
29065   { (case "(($ac_try" in
29066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067   *) ac_try_echo=$ac_try;;
29068 esac
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070   (eval "$ac_try") 2>&5
29071   ac_status=$?
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); }; }; then
29074   eval "$as_ac_Header=yes"
29075 else
29076   echo "$as_me: failed program was:" >&5
29077 sed 's/^/| /' conftest.$ac_ext >&5
29078
29079         eval "$as_ac_Header=no"
29080 fi
29081
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29083 fi
29084 ac_res=`eval echo '${'$as_ac_Header'}'`
29085                { echo "$as_me:$LINENO: result: $ac_res" >&5
29086 echo "${ECHO_T}$ac_res" >&6; }
29087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29088   cat >>confdefs.h <<_ACEOF
29089 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29090 _ACEOF
29091
29092 ac_header_dirent=$ac_hdr; break
29093 fi
29094
29095 done
29096 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29097 if test $ac_header_dirent = dirent.h; then
29098   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29099 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29100 if test "${ac_cv_search_opendir+set}" = set; then
29101   echo $ECHO_N "(cached) $ECHO_C" >&6
29102 else
29103   ac_func_search_save_LIBS=$LIBS
29104 cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h.  */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h.  */
29110
29111 /* Override any GCC internal prototype to avoid an error.
29112    Use char because int might match the return type of a GCC
29113    builtin and then its argument prototype would still apply.  */
29114 #ifdef __cplusplus
29115 extern "C"
29116 #endif
29117 char opendir ();
29118 int
29119 main ()
29120 {
29121 return opendir ();
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 for ac_lib in '' dir; do
29127   if test -z "$ac_lib"; then
29128     ac_res="none required"
29129   else
29130     ac_res=-l$ac_lib
29131     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29132   fi
29133   rm -f conftest.$ac_objext conftest$ac_exeext
29134 if { (ac_try="$ac_link"
29135 case "(($ac_try" in
29136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137   *) ac_try_echo=$ac_try;;
29138 esac
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140   (eval "$ac_link") 2>conftest.er1
29141   ac_status=$?
29142   grep -v '^ *+' conftest.er1 >conftest.err
29143   rm -f conftest.er1
29144   cat conftest.err >&5
29145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146   (exit $ac_status); } &&
29147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29148   { (case "(($ac_try" in
29149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150   *) ac_try_echo=$ac_try;;
29151 esac
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153   (eval "$ac_try") 2>&5
29154   ac_status=$?
29155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156   (exit $ac_status); }; } &&
29157          { ac_try='test -s conftest$ac_exeext'
29158   { (case "(($ac_try" in
29159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160   *) ac_try_echo=$ac_try;;
29161 esac
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163   (eval "$ac_try") 2>&5
29164   ac_status=$?
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); }; }; then
29167   ac_cv_search_opendir=$ac_res
29168 else
29169   echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29171
29172
29173 fi
29174
29175 rm -f core conftest.err conftest.$ac_objext \
29176       conftest$ac_exeext
29177   if test "${ac_cv_search_opendir+set}" = set; then
29178   break
29179 fi
29180 done
29181 if test "${ac_cv_search_opendir+set}" = set; then
29182   :
29183 else
29184   ac_cv_search_opendir=no
29185 fi
29186 rm conftest.$ac_ext
29187 LIBS=$ac_func_search_save_LIBS
29188 fi
29189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29191 ac_res=$ac_cv_search_opendir
29192 if test "$ac_res" != no; then
29193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29194
29195 fi
29196
29197 else
29198   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29200 if test "${ac_cv_search_opendir+set}" = set; then
29201   echo $ECHO_N "(cached) $ECHO_C" >&6
29202 else
29203   ac_func_search_save_LIBS=$LIBS
29204 cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210
29211 /* Override any GCC internal prototype to avoid an error.
29212    Use char because int might match the return type of a GCC
29213    builtin and then its argument prototype would still apply.  */
29214 #ifdef __cplusplus
29215 extern "C"
29216 #endif
29217 char opendir ();
29218 int
29219 main ()
29220 {
29221 return opendir ();
29222   ;
29223   return 0;
29224 }
29225 _ACEOF
29226 for ac_lib in '' x; do
29227   if test -z "$ac_lib"; then
29228     ac_res="none required"
29229   else
29230     ac_res=-l$ac_lib
29231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29232   fi
29233   rm -f conftest.$ac_objext conftest$ac_exeext
29234 if { (ac_try="$ac_link"
29235 case "(($ac_try" in
29236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29237   *) ac_try_echo=$ac_try;;
29238 esac
29239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29240   (eval "$ac_link") 2>conftest.er1
29241   ac_status=$?
29242   grep -v '^ *+' conftest.er1 >conftest.err
29243   rm -f conftest.er1
29244   cat conftest.err >&5
29245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246   (exit $ac_status); } &&
29247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29248   { (case "(($ac_try" in
29249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250   *) ac_try_echo=$ac_try;;
29251 esac
29252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253   (eval "$ac_try") 2>&5
29254   ac_status=$?
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); }; } &&
29257          { ac_try='test -s conftest$ac_exeext'
29258   { (case "(($ac_try" in
29259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260   *) ac_try_echo=$ac_try;;
29261 esac
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263   (eval "$ac_try") 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; }; then
29267   ac_cv_search_opendir=$ac_res
29268 else
29269   echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29271
29272
29273 fi
29274
29275 rm -f core conftest.err conftest.$ac_objext \
29276       conftest$ac_exeext
29277   if test "${ac_cv_search_opendir+set}" = set; then
29278   break
29279 fi
29280 done
29281 if test "${ac_cv_search_opendir+set}" = set; then
29282   :
29283 else
29284   ac_cv_search_opendir=no
29285 fi
29286 rm conftest.$ac_ext
29287 LIBS=$ac_func_search_save_LIBS
29288 fi
29289 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29290 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29291 ac_res=$ac_cv_search_opendir
29292 if test "$ac_res" != no; then
29293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29294
29295 fi
29296
29297 fi
29298
29299 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29300 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29301 if test "${ac_cv_header_mmap_anon+set}" = set; then
29302   echo $ECHO_N "(cached) $ECHO_C" >&6
29303 else
29304    ac_ext=c
29305 ac_cpp='$CPP $CPPFLAGS'
29306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29309
29310   cat >conftest.$ac_ext <<_ACEOF
29311 /* confdefs.h.  */
29312 _ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h.  */
29316 #include <sys/mman.h>
29317 #include <unistd.h>
29318 #include <fcntl.h>
29319 int
29320 main ()
29321 {
29322 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29323   ;
29324   return 0;
29325 }
29326 _ACEOF
29327 rm -f conftest.$ac_objext
29328 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29335   ac_status=$?
29336   grep -v '^ *+' conftest.er1 >conftest.err
29337   rm -f conftest.er1
29338   cat conftest.err >&5
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); } &&
29341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29342   { (case "(($ac_try" in
29343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344   *) ac_try_echo=$ac_try;;
29345 esac
29346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347   (eval "$ac_try") 2>&5
29348   ac_status=$?
29349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350   (exit $ac_status); }; } &&
29351          { ac_try='test -s conftest.$ac_objext'
29352   { (case "(($ac_try" in
29353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354   *) ac_try_echo=$ac_try;;
29355 esac
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357   (eval "$ac_try") 2>&5
29358   ac_status=$?
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); }; }; then
29361   ac_cv_header_mmap_anon=yes
29362 else
29363   echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29365
29366         ac_cv_header_mmap_anon=no
29367 fi
29368
29369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29370   ac_ext=c
29371 ac_cpp='$CPP $CPPFLAGS'
29372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29375
29376
29377 fi
29378 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29379 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29380 if test "$ac_cv_header_mmap_anon" = yes; then
29381
29382 cat >>confdefs.h <<\_ACEOF
29383 #define HAVE_MMAP_ANONYMOUS 1
29384 _ACEOF
29385
29386 fi
29387
29388 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29389 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29390 if test "${ac_cv_header_stat_broken+set}" = set; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393   cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399 #include <sys/types.h>
29400 #include <sys/stat.h>
29401
29402 #if defined S_ISBLK && defined S_IFDIR
29403 # if S_ISBLK (S_IFDIR)
29404 You lose.
29405 # endif
29406 #endif
29407
29408 #if defined S_ISBLK && defined S_IFCHR
29409 # if S_ISBLK (S_IFCHR)
29410 You lose.
29411 # endif
29412 #endif
29413
29414 #if defined S_ISLNK && defined S_IFREG
29415 # if S_ISLNK (S_IFREG)
29416 You lose.
29417 # endif
29418 #endif
29419
29420 #if defined S_ISSOCK && defined S_IFREG
29421 # if S_ISSOCK (S_IFREG)
29422 You lose.
29423 # endif
29424 #endif
29425
29426 _ACEOF
29427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29428   $EGREP "You lose" >/dev/null 2>&1; then
29429   ac_cv_header_stat_broken=yes
29430 else
29431   ac_cv_header_stat_broken=no
29432 fi
29433 rm -f conftest*
29434
29435 fi
29436 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29437 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29438 if test $ac_cv_header_stat_broken = yes; then
29439
29440 cat >>confdefs.h <<\_ACEOF
29441 #define STAT_MACROS_BROKEN 1
29442 _ACEOF
29443
29444 fi
29445
29446 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29447 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29448 if test "${ac_cv_header_stdc+set}" = set; then
29449   echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451   cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457 #include <stdlib.h>
29458 #include <stdarg.h>
29459 #include <string.h>
29460 #include <float.h>
29461
29462 int
29463 main ()
29464 {
29465
29466   ;
29467   return 0;
29468 }
29469 _ACEOF
29470 rm -f conftest.$ac_objext
29471 if { (ac_try="$ac_compile"
29472 case "(($ac_try" in
29473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474   *) ac_try_echo=$ac_try;;
29475 esac
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477   (eval "$ac_compile") 2>conftest.er1
29478   ac_status=$?
29479   grep -v '^ *+' conftest.er1 >conftest.err
29480   rm -f conftest.er1
29481   cat conftest.err >&5
29482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483   (exit $ac_status); } &&
29484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29485   { (case "(($ac_try" in
29486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29487   *) ac_try_echo=$ac_try;;
29488 esac
29489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490   (eval "$ac_try") 2>&5
29491   ac_status=$?
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); }; } &&
29494          { ac_try='test -s conftest.$ac_objext'
29495   { (case "(($ac_try" in
29496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497   *) ac_try_echo=$ac_try;;
29498 esac
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500   (eval "$ac_try") 2>&5
29501   ac_status=$?
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); }; }; then
29504   ac_cv_header_stdc=yes
29505 else
29506   echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.$ac_ext >&5
29508
29509         ac_cv_header_stdc=no
29510 fi
29511
29512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29513
29514 if test $ac_cv_header_stdc = yes; then
29515   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29516   cat >conftest.$ac_ext <<_ACEOF
29517 /* confdefs.h.  */
29518 _ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h.  */
29522 #include <string.h>
29523
29524 _ACEOF
29525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29526   $EGREP "memchr" >/dev/null 2>&1; then
29527   :
29528 else
29529   ac_cv_header_stdc=no
29530 fi
29531 rm -f conftest*
29532
29533 fi
29534
29535 if test $ac_cv_header_stdc = yes; then
29536   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29537   cat >conftest.$ac_ext <<_ACEOF
29538 /* confdefs.h.  */
29539 _ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h.  */
29543 #include <stdlib.h>
29544
29545 _ACEOF
29546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29547   $EGREP "free" >/dev/null 2>&1; then
29548   :
29549 else
29550   ac_cv_header_stdc=no
29551 fi
29552 rm -f conftest*
29553
29554 fi
29555
29556 if test $ac_cv_header_stdc = yes; then
29557   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29558   if test "$cross_compiling" = yes; then
29559   :
29560 else
29561   cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567 #include <ctype.h>
29568 #include <stdlib.h>
29569 #if ((' ' & 0x0FF) == 0x020)
29570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29572 #else
29573 # define ISLOWER(c) \
29574                    (('a' <= (c) && (c) <= 'i') \
29575                      || ('j' <= (c) && (c) <= 'r') \
29576                      || ('s' <= (c) && (c) <= 'z'))
29577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29578 #endif
29579
29580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29581 int
29582 main ()
29583 {
29584   int i;
29585   for (i = 0; i < 256; i++)
29586     if (XOR (islower (i), ISLOWER (i))
29587         || toupper (i) != TOUPPER (i))
29588       return 2;
29589   return 0;
29590 }
29591 _ACEOF
29592 rm -f conftest$ac_exeext
29593 if { (ac_try="$ac_link"
29594 case "(($ac_try" in
29595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596   *) ac_try_echo=$ac_try;;
29597 esac
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599   (eval "$ac_link") 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29603   { (case "(($ac_try" in
29604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605   *) ac_try_echo=$ac_try;;
29606 esac
29607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608   (eval "$ac_try") 2>&5
29609   ac_status=$?
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); }; }; then
29612   :
29613 else
29614   echo "$as_me: program exited with status $ac_status" >&5
29615 echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29617
29618 ( exit $ac_status )
29619 ac_cv_header_stdc=no
29620 fi
29621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29622 fi
29623
29624
29625 fi
29626 fi
29627 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29628 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29629 if test $ac_cv_header_stdc = yes; then
29630
29631 cat >>confdefs.h <<\_ACEOF
29632 #define STDC_HEADERS 1
29633 _ACEOF
29634
29635 fi
29636
29637 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29638 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29639 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29640   echo $ECHO_N "(cached) $ECHO_C" >&6
29641 else
29642   cat >conftest.$ac_ext <<_ACEOF
29643 /* confdefs.h.  */
29644 _ACEOF
29645 cat confdefs.h >>conftest.$ac_ext
29646 cat >>conftest.$ac_ext <<_ACEOF
29647 /* end confdefs.h.  */
29648 #include <sys/types.h>
29649 #include <sys/wait.h>
29650 #ifndef WEXITSTATUS
29651 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29652 #endif
29653 #ifndef WIFEXITED
29654 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29655 #endif
29656
29657 int
29658 main ()
29659 {
29660   int s;
29661   wait (&s);
29662   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29663   ;
29664   return 0;
29665 }
29666 _ACEOF
29667 rm -f conftest.$ac_objext
29668 if { (ac_try="$ac_compile"
29669 case "(($ac_try" in
29670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671   *) ac_try_echo=$ac_try;;
29672 esac
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674   (eval "$ac_compile") 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } &&
29681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29682   { (case "(($ac_try" in
29683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684   *) ac_try_echo=$ac_try;;
29685 esac
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687   (eval "$ac_try") 2>&5
29688   ac_status=$?
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); }; } &&
29691          { ac_try='test -s conftest.$ac_objext'
29692   { (case "(($ac_try" in
29693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694   *) ac_try_echo=$ac_try;;
29695 esac
29696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697   (eval "$ac_try") 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; }; then
29701   ac_cv_header_sys_wait_h=yes
29702 else
29703   echo "$as_me: failed program was:" >&5
29704 sed 's/^/| /' conftest.$ac_ext >&5
29705
29706         ac_cv_header_sys_wait_h=no
29707 fi
29708
29709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29710 fi
29711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29712 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29713 if test $ac_cv_header_sys_wait_h = yes; then
29714
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_SYS_WAIT_H 1
29717 _ACEOF
29718
29719 fi
29720
29721 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29722 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29723 if test "${ac_cv_header_time+set}" = set; then
29724   echo $ECHO_N "(cached) $ECHO_C" >&6
29725 else
29726   cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732 #include <sys/types.h>
29733 #include <sys/time.h>
29734 #include <time.h>
29735
29736 int
29737 main ()
29738 {
29739 if ((struct tm *) 0)
29740 return 0;
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext
29746 if { (ac_try="$ac_compile"
29747 case "(($ac_try" in
29748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749   *) ac_try_echo=$ac_try;;
29750 esac
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752   (eval "$ac_compile") 2>conftest.er1
29753   ac_status=$?
29754   grep -v '^ *+' conftest.er1 >conftest.err
29755   rm -f conftest.er1
29756   cat conftest.err >&5
29757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758   (exit $ac_status); } &&
29759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29760   { (case "(($ac_try" in
29761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29762   *) ac_try_echo=$ac_try;;
29763 esac
29764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29765   (eval "$ac_try") 2>&5
29766   ac_status=$?
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); }; } &&
29769          { ac_try='test -s conftest.$ac_objext'
29770   { (case "(($ac_try" in
29771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772   *) ac_try_echo=$ac_try;;
29773 esac
29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775   (eval "$ac_try") 2>&5
29776   ac_status=$?
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); }; }; then
29779   ac_cv_header_time=yes
29780 else
29781   echo "$as_me: failed program was:" >&5
29782 sed 's/^/| /' conftest.$ac_ext >&5
29783
29784         ac_cv_header_time=no
29785 fi
29786
29787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29788 fi
29789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29791 if test $ac_cv_header_time = yes; then
29792
29793 cat >>confdefs.h <<\_ACEOF
29794 #define TIME_WITH_SYS_TIME 1
29795 _ACEOF
29796
29797 fi
29798
29799
29800
29801
29802
29803
29804
29805
29806 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29807 do
29808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29810   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29813   echo $ECHO_N "(cached) $ECHO_C" >&6
29814 fi
29815 ac_res=`eval echo '${'$as_ac_Header'}'`
29816                { echo "$as_me:$LINENO: result: $ac_res" >&5
29817 echo "${ECHO_T}$ac_res" >&6; }
29818 else
29819   # Is the header compilable?
29820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828 $ac_includes_default
29829 #include <$ac_header>
29830 _ACEOF
29831 rm -f conftest.$ac_objext
29832 if { (ac_try="$ac_compile"
29833 case "(($ac_try" in
29834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835   *) ac_try_echo=$ac_try;;
29836 esac
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838   (eval "$ac_compile") 2>conftest.er1
29839   ac_status=$?
29840   grep -v '^ *+' conftest.er1 >conftest.err
29841   rm -f conftest.er1
29842   cat conftest.err >&5
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); } &&
29845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29846   { (case "(($ac_try" in
29847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848   *) ac_try_echo=$ac_try;;
29849 esac
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851   (eval "$ac_try") 2>&5
29852   ac_status=$?
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); }; } &&
29855          { ac_try='test -s conftest.$ac_objext'
29856   { (case "(($ac_try" in
29857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858   *) ac_try_echo=$ac_try;;
29859 esac
29860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861   (eval "$ac_try") 2>&5
29862   ac_status=$?
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); }; }; then
29865   ac_header_compiler=yes
29866 else
29867   echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29869
29870         ac_header_compiler=no
29871 fi
29872
29873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29875 echo "${ECHO_T}$ac_header_compiler" >&6; }
29876
29877 # Is the header present?
29878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29880 cat >conftest.$ac_ext <<_ACEOF
29881 /* confdefs.h.  */
29882 _ACEOF
29883 cat confdefs.h >>conftest.$ac_ext
29884 cat >>conftest.$ac_ext <<_ACEOF
29885 /* end confdefs.h.  */
29886 #include <$ac_header>
29887 _ACEOF
29888 if { (ac_try="$ac_cpp conftest.$ac_ext"
29889 case "(($ac_try" in
29890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891   *) ac_try_echo=$ac_try;;
29892 esac
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29895   ac_status=$?
29896   grep -v '^ *+' conftest.er1 >conftest.err
29897   rm -f conftest.er1
29898   cat conftest.err >&5
29899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900   (exit $ac_status); } >/dev/null; then
29901   if test -s conftest.err; then
29902     ac_cpp_err=$ac_c_preproc_warn_flag
29903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29904   else
29905     ac_cpp_err=
29906   fi
29907 else
29908   ac_cpp_err=yes
29909 fi
29910 if test -z "$ac_cpp_err"; then
29911   ac_header_preproc=yes
29912 else
29913   echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29915
29916   ac_header_preproc=no
29917 fi
29918
29919 rm -f conftest.err conftest.$ac_ext
29920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29921 echo "${ECHO_T}$ac_header_preproc" >&6; }
29922
29923 # So?  What about this header?
29924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29925   yes:no: )
29926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29930     ac_header_preproc=yes
29931     ;;
29932   no:yes:* )
29933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29945     ( cat <<\_ASBOX
29946 ## ----------------------------------- ##
29947 ## Report this to llvmbugs@cs.uiuc.edu ##
29948 ## ----------------------------------- ##
29949 _ASBOX
29950      ) | sed "s/^/$as_me: WARNING:     /" >&2
29951     ;;
29952 esac
29953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29956   echo $ECHO_N "(cached) $ECHO_C" >&6
29957 else
29958   eval "$as_ac_Header=\$ac_header_preproc"
29959 fi
29960 ac_res=`eval echo '${'$as_ac_Header'}'`
29961                { echo "$as_me:$LINENO: result: $ac_res" >&5
29962 echo "${ECHO_T}$ac_res" >&6; }
29963
29964 fi
29965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29966   cat >>confdefs.h <<_ACEOF
29967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29968 _ACEOF
29969
29970 fi
29971
29972 done
29973
29974
29975
29976
29977
29978
29979
29980 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29981 do
29982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29987   echo $ECHO_N "(cached) $ECHO_C" >&6
29988 fi
29989 ac_res=`eval echo '${'$as_ac_Header'}'`
29990                { echo "$as_me:$LINENO: result: $ac_res" >&5
29991 echo "${ECHO_T}$ac_res" >&6; }
29992 else
29993   # Is the header compilable?
29994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29996 cat >conftest.$ac_ext <<_ACEOF
29997 /* confdefs.h.  */
29998 _ACEOF
29999 cat confdefs.h >>conftest.$ac_ext
30000 cat >>conftest.$ac_ext <<_ACEOF
30001 /* end confdefs.h.  */
30002 $ac_includes_default
30003 #include <$ac_header>
30004 _ACEOF
30005 rm -f conftest.$ac_objext
30006 if { (ac_try="$ac_compile"
30007 case "(($ac_try" in
30008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30009   *) ac_try_echo=$ac_try;;
30010 esac
30011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30012   (eval "$ac_compile") 2>conftest.er1
30013   ac_status=$?
30014   grep -v '^ *+' conftest.er1 >conftest.err
30015   rm -f conftest.er1
30016   cat conftest.err >&5
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); } &&
30019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30020   { (case "(($ac_try" in
30021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30022   *) ac_try_echo=$ac_try;;
30023 esac
30024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025   (eval "$ac_try") 2>&5
30026   ac_status=$?
30027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028   (exit $ac_status); }; } &&
30029          { ac_try='test -s conftest.$ac_objext'
30030   { (case "(($ac_try" in
30031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032   *) ac_try_echo=$ac_try;;
30033 esac
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035   (eval "$ac_try") 2>&5
30036   ac_status=$?
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); }; }; then
30039   ac_header_compiler=yes
30040 else
30041   echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30043
30044         ac_header_compiler=no
30045 fi
30046
30047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30049 echo "${ECHO_T}$ac_header_compiler" >&6; }
30050
30051 # Is the header present?
30052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30054 cat >conftest.$ac_ext <<_ACEOF
30055 /* confdefs.h.  */
30056 _ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h.  */
30060 #include <$ac_header>
30061 _ACEOF
30062 if { (ac_try="$ac_cpp conftest.$ac_ext"
30063 case "(($ac_try" in
30064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065   *) ac_try_echo=$ac_try;;
30066 esac
30067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30069   ac_status=$?
30070   grep -v '^ *+' conftest.er1 >conftest.err
30071   rm -f conftest.er1
30072   cat conftest.err >&5
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); } >/dev/null; then
30075   if test -s conftest.err; then
30076     ac_cpp_err=$ac_c_preproc_warn_flag
30077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30078   else
30079     ac_cpp_err=
30080   fi
30081 else
30082   ac_cpp_err=yes
30083 fi
30084 if test -z "$ac_cpp_err"; then
30085   ac_header_preproc=yes
30086 else
30087   echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30089
30090   ac_header_preproc=no
30091 fi
30092
30093 rm -f conftest.err conftest.$ac_ext
30094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30095 echo "${ECHO_T}$ac_header_preproc" >&6; }
30096
30097 # So?  What about this header?
30098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30099   yes:no: )
30100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30104     ac_header_preproc=yes
30105     ;;
30106   no:yes:* )
30107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30119     ( cat <<\_ASBOX
30120 ## ----------------------------------- ##
30121 ## Report this to llvmbugs@cs.uiuc.edu ##
30122 ## ----------------------------------- ##
30123 _ASBOX
30124      ) | sed "s/^/$as_me: WARNING:     /" >&2
30125     ;;
30126 esac
30127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30130   echo $ECHO_N "(cached) $ECHO_C" >&6
30131 else
30132   eval "$as_ac_Header=\$ac_header_preproc"
30133 fi
30134 ac_res=`eval echo '${'$as_ac_Header'}'`
30135                { echo "$as_me:$LINENO: result: $ac_res" >&5
30136 echo "${ECHO_T}$ac_res" >&6; }
30137
30138 fi
30139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30140   cat >>confdefs.h <<_ACEOF
30141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30142 _ACEOF
30143
30144 fi
30145
30146 done
30147
30148
30149
30150 for ac_header in utime.h windows.h
30151 do
30152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30154   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157   echo $ECHO_N "(cached) $ECHO_C" >&6
30158 fi
30159 ac_res=`eval echo '${'$as_ac_Header'}'`
30160                { echo "$as_me:$LINENO: result: $ac_res" >&5
30161 echo "${ECHO_T}$ac_res" >&6; }
30162 else
30163   # Is the header compilable?
30164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30166 cat >conftest.$ac_ext <<_ACEOF
30167 /* confdefs.h.  */
30168 _ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h.  */
30172 $ac_includes_default
30173 #include <$ac_header>
30174 _ACEOF
30175 rm -f conftest.$ac_objext
30176 if { (ac_try="$ac_compile"
30177 case "(($ac_try" in
30178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30179   *) ac_try_echo=$ac_try;;
30180 esac
30181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30182   (eval "$ac_compile") 2>conftest.er1
30183   ac_status=$?
30184   grep -v '^ *+' conftest.er1 >conftest.err
30185   rm -f conftest.er1
30186   cat conftest.err >&5
30187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188   (exit $ac_status); } &&
30189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30190   { (case "(($ac_try" in
30191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30192   *) ac_try_echo=$ac_try;;
30193 esac
30194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195   (eval "$ac_try") 2>&5
30196   ac_status=$?
30197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198   (exit $ac_status); }; } &&
30199          { ac_try='test -s conftest.$ac_objext'
30200   { (case "(($ac_try" in
30201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30202   *) ac_try_echo=$ac_try;;
30203 esac
30204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30205   (eval "$ac_try") 2>&5
30206   ac_status=$?
30207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208   (exit $ac_status); }; }; then
30209   ac_header_compiler=yes
30210 else
30211   echo "$as_me: failed program was:" >&5
30212 sed 's/^/| /' conftest.$ac_ext >&5
30213
30214         ac_header_compiler=no
30215 fi
30216
30217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30219 echo "${ECHO_T}$ac_header_compiler" >&6; }
30220
30221 # Is the header present?
30222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30224 cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230 #include <$ac_header>
30231 _ACEOF
30232 if { (ac_try="$ac_cpp conftest.$ac_ext"
30233 case "(($ac_try" in
30234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235   *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30239   ac_status=$?
30240   grep -v '^ *+' conftest.er1 >conftest.err
30241   rm -f conftest.er1
30242   cat conftest.err >&5
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); } >/dev/null; then
30245   if test -s conftest.err; then
30246     ac_cpp_err=$ac_c_preproc_warn_flag
30247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30248   else
30249     ac_cpp_err=
30250   fi
30251 else
30252   ac_cpp_err=yes
30253 fi
30254 if test -z "$ac_cpp_err"; then
30255   ac_header_preproc=yes
30256 else
30257   echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30259
30260   ac_header_preproc=no
30261 fi
30262
30263 rm -f conftest.err conftest.$ac_ext
30264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30265 echo "${ECHO_T}$ac_header_preproc" >&6; }
30266
30267 # So?  What about this header?
30268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30269   yes:no: )
30270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30274     ac_header_preproc=yes
30275     ;;
30276   no:yes:* )
30277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30289     ( cat <<\_ASBOX
30290 ## ----------------------------------- ##
30291 ## Report this to llvmbugs@cs.uiuc.edu ##
30292 ## ----------------------------------- ##
30293 _ASBOX
30294      ) | sed "s/^/$as_me: WARNING:     /" >&2
30295     ;;
30296 esac
30297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30300   echo $ECHO_N "(cached) $ECHO_C" >&6
30301 else
30302   eval "$as_ac_Header=\$ac_header_preproc"
30303 fi
30304 ac_res=`eval echo '${'$as_ac_Header'}'`
30305                { echo "$as_me:$LINENO: result: $ac_res" >&5
30306 echo "${ECHO_T}$ac_res" >&6; }
30307
30308 fi
30309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30310   cat >>confdefs.h <<_ACEOF
30311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30312 _ACEOF
30313
30314 fi
30315
30316 done
30317
30318
30319
30320
30321
30322 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30323 do
30324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30326   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30329   echo $ECHO_N "(cached) $ECHO_C" >&6
30330 fi
30331 ac_res=`eval echo '${'$as_ac_Header'}'`
30332                { echo "$as_me:$LINENO: result: $ac_res" >&5
30333 echo "${ECHO_T}$ac_res" >&6; }
30334 else
30335   # Is the header compilable?
30336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30338 cat >conftest.$ac_ext <<_ACEOF
30339 /* confdefs.h.  */
30340 _ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h.  */
30344 $ac_includes_default
30345 #include <$ac_header>
30346 _ACEOF
30347 rm -f conftest.$ac_objext
30348 if { (ac_try="$ac_compile"
30349 case "(($ac_try" in
30350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351   *) ac_try_echo=$ac_try;;
30352 esac
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354   (eval "$ac_compile") 2>conftest.er1
30355   ac_status=$?
30356   grep -v '^ *+' conftest.er1 >conftest.err
30357   rm -f conftest.er1
30358   cat conftest.err >&5
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); } &&
30361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30362   { (case "(($ac_try" in
30363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364   *) ac_try_echo=$ac_try;;
30365 esac
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367   (eval "$ac_try") 2>&5
30368   ac_status=$?
30369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370   (exit $ac_status); }; } &&
30371          { ac_try='test -s conftest.$ac_objext'
30372   { (case "(($ac_try" in
30373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30374   *) ac_try_echo=$ac_try;;
30375 esac
30376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30377   (eval "$ac_try") 2>&5
30378   ac_status=$?
30379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380   (exit $ac_status); }; }; then
30381   ac_header_compiler=yes
30382 else
30383   echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.$ac_ext >&5
30385
30386         ac_header_compiler=no
30387 fi
30388
30389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391 echo "${ECHO_T}$ac_header_compiler" >&6; }
30392
30393 # Is the header present?
30394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30396 cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402 #include <$ac_header>
30403 _ACEOF
30404 if { (ac_try="$ac_cpp conftest.$ac_ext"
30405 case "(($ac_try" in
30406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407   *) ac_try_echo=$ac_try;;
30408 esac
30409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30411   ac_status=$?
30412   grep -v '^ *+' conftest.er1 >conftest.err
30413   rm -f conftest.er1
30414   cat conftest.err >&5
30415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416   (exit $ac_status); } >/dev/null; then
30417   if test -s conftest.err; then
30418     ac_cpp_err=$ac_c_preproc_warn_flag
30419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30420   else
30421     ac_cpp_err=
30422   fi
30423 else
30424   ac_cpp_err=yes
30425 fi
30426 if test -z "$ac_cpp_err"; then
30427   ac_header_preproc=yes
30428 else
30429   echo "$as_me: failed program was:" >&5
30430 sed 's/^/| /' conftest.$ac_ext >&5
30431
30432   ac_header_preproc=no
30433 fi
30434
30435 rm -f conftest.err conftest.$ac_ext
30436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30437 echo "${ECHO_T}$ac_header_preproc" >&6; }
30438
30439 # So?  What about this header?
30440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30441   yes:no: )
30442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30446     ac_header_preproc=yes
30447     ;;
30448   no:yes:* )
30449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30461     ( cat <<\_ASBOX
30462 ## ----------------------------------- ##
30463 ## Report this to llvmbugs@cs.uiuc.edu ##
30464 ## ----------------------------------- ##
30465 _ASBOX
30466      ) | sed "s/^/$as_me: WARNING:     /" >&2
30467     ;;
30468 esac
30469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30472   echo $ECHO_N "(cached) $ECHO_C" >&6
30473 else
30474   eval "$as_ac_Header=\$ac_header_preproc"
30475 fi
30476 ac_res=`eval echo '${'$as_ac_Header'}'`
30477                { echo "$as_me:$LINENO: result: $ac_res" >&5
30478 echo "${ECHO_T}$ac_res" >&6; }
30479
30480 fi
30481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30482   cat >>confdefs.h <<_ACEOF
30483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30484 _ACEOF
30485
30486 fi
30487
30488 done
30489
30490
30491
30492
30493
30494 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30495 do
30496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30501   echo $ECHO_N "(cached) $ECHO_C" >&6
30502 fi
30503 ac_res=`eval echo '${'$as_ac_Header'}'`
30504                { echo "$as_me:$LINENO: result: $ac_res" >&5
30505 echo "${ECHO_T}$ac_res" >&6; }
30506 else
30507   # Is the header compilable?
30508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30510 cat >conftest.$ac_ext <<_ACEOF
30511 /* confdefs.h.  */
30512 _ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h.  */
30516 $ac_includes_default
30517 #include <$ac_header>
30518 _ACEOF
30519 rm -f conftest.$ac_objext
30520 if { (ac_try="$ac_compile"
30521 case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_compile") 2>conftest.er1
30527   ac_status=$?
30528   grep -v '^ *+' conftest.er1 >conftest.err
30529   rm -f conftest.er1
30530   cat conftest.err >&5
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } &&
30533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534   { (case "(($ac_try" in
30535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536   *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539   (eval "$ac_try") 2>&5
30540   ac_status=$?
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); }; } &&
30543          { ac_try='test -s conftest.$ac_objext'
30544   { (case "(($ac_try" in
30545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546   *) ac_try_echo=$ac_try;;
30547 esac
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549   (eval "$ac_try") 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); }; }; then
30553   ac_header_compiler=yes
30554 else
30555   echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30557
30558         ac_header_compiler=no
30559 fi
30560
30561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30563 echo "${ECHO_T}$ac_header_compiler" >&6; }
30564
30565 # Is the header present?
30566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30568 cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h.  */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h.  */
30574 #include <$ac_header>
30575 _ACEOF
30576 if { (ac_try="$ac_cpp conftest.$ac_ext"
30577 case "(($ac_try" in
30578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579   *) ac_try_echo=$ac_try;;
30580 esac
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30583   ac_status=$?
30584   grep -v '^ *+' conftest.er1 >conftest.err
30585   rm -f conftest.er1
30586   cat conftest.err >&5
30587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588   (exit $ac_status); } >/dev/null; then
30589   if test -s conftest.err; then
30590     ac_cpp_err=$ac_c_preproc_warn_flag
30591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30592   else
30593     ac_cpp_err=
30594   fi
30595 else
30596   ac_cpp_err=yes
30597 fi
30598 if test -z "$ac_cpp_err"; then
30599   ac_header_preproc=yes
30600 else
30601   echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30603
30604   ac_header_preproc=no
30605 fi
30606
30607 rm -f conftest.err conftest.$ac_ext
30608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30609 echo "${ECHO_T}$ac_header_preproc" >&6; }
30610
30611 # So?  What about this header?
30612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30613   yes:no: )
30614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30618     ac_header_preproc=yes
30619     ;;
30620   no:yes:* )
30621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30633     ( cat <<\_ASBOX
30634 ## ----------------------------------- ##
30635 ## Report this to llvmbugs@cs.uiuc.edu ##
30636 ## ----------------------------------- ##
30637 _ASBOX
30638      ) | sed "s/^/$as_me: WARNING:     /" >&2
30639     ;;
30640 esac
30641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30644   echo $ECHO_N "(cached) $ECHO_C" >&6
30645 else
30646   eval "$as_ac_Header=\$ac_header_preproc"
30647 fi
30648 ac_res=`eval echo '${'$as_ac_Header'}'`
30649                { echo "$as_me:$LINENO: result: $ac_res" >&5
30650 echo "${ECHO_T}$ac_res" >&6; }
30651
30652 fi
30653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30654   cat >>confdefs.h <<_ACEOF
30655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30656 _ACEOF
30657
30658 fi
30659
30660 done
30661
30662 if test "$ENABLE_THREADS" -eq 1 ; then
30663
30664 for ac_header in pthread.h
30665 do
30666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30671   echo $ECHO_N "(cached) $ECHO_C" >&6
30672 fi
30673 ac_res=`eval echo '${'$as_ac_Header'}'`
30674                { echo "$as_me:$LINENO: result: $ac_res" >&5
30675 echo "${ECHO_T}$ac_res" >&6; }
30676 else
30677   # Is the header compilable?
30678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30680 cat >conftest.$ac_ext <<_ACEOF
30681 /* confdefs.h.  */
30682 _ACEOF
30683 cat confdefs.h >>conftest.$ac_ext
30684 cat >>conftest.$ac_ext <<_ACEOF
30685 /* end confdefs.h.  */
30686 $ac_includes_default
30687 #include <$ac_header>
30688 _ACEOF
30689 rm -f conftest.$ac_objext
30690 if { (ac_try="$ac_compile"
30691 case "(($ac_try" in
30692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693   *) ac_try_echo=$ac_try;;
30694 esac
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696   (eval "$ac_compile") 2>conftest.er1
30697   ac_status=$?
30698   grep -v '^ *+' conftest.er1 >conftest.err
30699   rm -f conftest.er1
30700   cat conftest.err >&5
30701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702   (exit $ac_status); } &&
30703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30704   { (case "(($ac_try" in
30705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30706   *) ac_try_echo=$ac_try;;
30707 esac
30708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709   (eval "$ac_try") 2>&5
30710   ac_status=$?
30711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712   (exit $ac_status); }; } &&
30713          { ac_try='test -s conftest.$ac_objext'
30714   { (case "(($ac_try" in
30715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716   *) ac_try_echo=$ac_try;;
30717 esac
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719   (eval "$ac_try") 2>&5
30720   ac_status=$?
30721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722   (exit $ac_status); }; }; then
30723   ac_header_compiler=yes
30724 else
30725   echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.$ac_ext >&5
30727
30728         ac_header_compiler=no
30729 fi
30730
30731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30733 echo "${ECHO_T}$ac_header_compiler" >&6; }
30734
30735 # Is the header present?
30736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30738 cat >conftest.$ac_ext <<_ACEOF
30739 /* confdefs.h.  */
30740 _ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h.  */
30744 #include <$ac_header>
30745 _ACEOF
30746 if { (ac_try="$ac_cpp conftest.$ac_ext"
30747 case "(($ac_try" in
30748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749   *) ac_try_echo=$ac_try;;
30750 esac
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30753   ac_status=$?
30754   grep -v '^ *+' conftest.er1 >conftest.err
30755   rm -f conftest.er1
30756   cat conftest.err >&5
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); } >/dev/null; then
30759   if test -s conftest.err; then
30760     ac_cpp_err=$ac_c_preproc_warn_flag
30761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30762   else
30763     ac_cpp_err=
30764   fi
30765 else
30766   ac_cpp_err=yes
30767 fi
30768 if test -z "$ac_cpp_err"; then
30769   ac_header_preproc=yes
30770 else
30771   echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30773
30774   ac_header_preproc=no
30775 fi
30776
30777 rm -f conftest.err conftest.$ac_ext
30778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30779 echo "${ECHO_T}$ac_header_preproc" >&6; }
30780
30781 # So?  What about this header?
30782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30783   yes:no: )
30784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30788     ac_header_preproc=yes
30789     ;;
30790   no:yes:* )
30791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30803     ( cat <<\_ASBOX
30804 ## ----------------------------------- ##
30805 ## Report this to llvmbugs@cs.uiuc.edu ##
30806 ## ----------------------------------- ##
30807 _ASBOX
30808      ) | sed "s/^/$as_me: WARNING:     /" >&2
30809     ;;
30810 esac
30811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30814   echo $ECHO_N "(cached) $ECHO_C" >&6
30815 else
30816   eval "$as_ac_Header=\$ac_header_preproc"
30817 fi
30818 ac_res=`eval echo '${'$as_ac_Header'}'`
30819                { echo "$as_me:$LINENO: result: $ac_res" >&5
30820 echo "${ECHO_T}$ac_res" >&6; }
30821
30822 fi
30823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30824   cat >>confdefs.h <<_ACEOF
30825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30826 _ACEOF
30827  HAVE_PTHREAD=1
30828
30829 else
30830   HAVE_PTHREAD=0
30831
30832 fi
30833
30834 done
30835
30836 else
30837   HAVE_PTHREAD=0
30838
30839 fi
30840
30841 if test "$llvm_cv_enable_libffi" = "yes" ; then
30842
30843
30844 for ac_header in ffi.h ffi/ffi.h
30845 do
30846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30848   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851   echo $ECHO_N "(cached) $ECHO_C" >&6
30852 fi
30853 ac_res=`eval echo '${'$as_ac_Header'}'`
30854                { echo "$as_me:$LINENO: result: $ac_res" >&5
30855 echo "${ECHO_T}$ac_res" >&6; }
30856 else
30857   # Is the header compilable?
30858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30860 cat >conftest.$ac_ext <<_ACEOF
30861 /* confdefs.h.  */
30862 _ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h.  */
30866 $ac_includes_default
30867 #include <$ac_header>
30868 _ACEOF
30869 rm -f conftest.$ac_objext
30870 if { (ac_try="$ac_compile"
30871 case "(($ac_try" in
30872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873   *) ac_try_echo=$ac_try;;
30874 esac
30875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876   (eval "$ac_compile") 2>conftest.er1
30877   ac_status=$?
30878   grep -v '^ *+' conftest.er1 >conftest.err
30879   rm -f conftest.er1
30880   cat conftest.err >&5
30881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882   (exit $ac_status); } &&
30883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30884   { (case "(($ac_try" in
30885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886   *) ac_try_echo=$ac_try;;
30887 esac
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889   (eval "$ac_try") 2>&5
30890   ac_status=$?
30891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892   (exit $ac_status); }; } &&
30893          { ac_try='test -s conftest.$ac_objext'
30894   { (case "(($ac_try" in
30895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896   *) ac_try_echo=$ac_try;;
30897 esac
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899   (eval "$ac_try") 2>&5
30900   ac_status=$?
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); }; }; then
30903   ac_header_compiler=yes
30904 else
30905   echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30907
30908         ac_header_compiler=no
30909 fi
30910
30911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30913 echo "${ECHO_T}$ac_header_compiler" >&6; }
30914
30915 # Is the header present?
30916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30918 cat >conftest.$ac_ext <<_ACEOF
30919 /* confdefs.h.  */
30920 _ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h.  */
30924 #include <$ac_header>
30925 _ACEOF
30926 if { (ac_try="$ac_cpp conftest.$ac_ext"
30927 case "(($ac_try" in
30928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30929   *) ac_try_echo=$ac_try;;
30930 esac
30931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30933   ac_status=$?
30934   grep -v '^ *+' conftest.er1 >conftest.err
30935   rm -f conftest.er1
30936   cat conftest.err >&5
30937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938   (exit $ac_status); } >/dev/null; then
30939   if test -s conftest.err; then
30940     ac_cpp_err=$ac_c_preproc_warn_flag
30941     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30942   else
30943     ac_cpp_err=
30944   fi
30945 else
30946   ac_cpp_err=yes
30947 fi
30948 if test -z "$ac_cpp_err"; then
30949   ac_header_preproc=yes
30950 else
30951   echo "$as_me: failed program was:" >&5
30952 sed 's/^/| /' conftest.$ac_ext >&5
30953
30954   ac_header_preproc=no
30955 fi
30956
30957 rm -f conftest.err conftest.$ac_ext
30958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30959 echo "${ECHO_T}$ac_header_preproc" >&6; }
30960
30961 # So?  What about this header?
30962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30963   yes:no: )
30964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30968     ac_header_preproc=yes
30969     ;;
30970   no:yes:* )
30971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30983     ( cat <<\_ASBOX
30984 ## ----------------------------------- ##
30985 ## Report this to llvmbugs@cs.uiuc.edu ##
30986 ## ----------------------------------- ##
30987 _ASBOX
30988      ) | sed "s/^/$as_me: WARNING:     /" >&2
30989     ;;
30990 esac
30991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30994   echo $ECHO_N "(cached) $ECHO_C" >&6
30995 else
30996   eval "$as_ac_Header=\$ac_header_preproc"
30997 fi
30998 ac_res=`eval echo '${'$as_ac_Header'}'`
30999                { echo "$as_me:$LINENO: result: $ac_res" >&5
31000 echo "${ECHO_T}$ac_res" >&6; }
31001
31002 fi
31003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31004   cat >>confdefs.h <<_ACEOF
31005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31006 _ACEOF
31007
31008 fi
31009
31010 done
31011
31012 fi
31013
31014
31015
31016   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31017 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31018 if test "${ac_cv_huge_val_sanity+set}" = set; then
31019   echo $ECHO_N "(cached) $ECHO_C" >&6
31020 else
31021
31022     ac_ext=cpp
31023 ac_cpp='$CXXCPP $CPPFLAGS'
31024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31027
31028     CXXFLAGS=-pedantic
31029     if test "$cross_compiling" = yes; then
31030   ac_cv_huge_val_sanity=yes
31031 else
31032   cat >conftest.$ac_ext <<_ACEOF
31033 /* confdefs.h.  */
31034 _ACEOF
31035 cat confdefs.h >>conftest.$ac_ext
31036 cat >>conftest.$ac_ext <<_ACEOF
31037 /* end confdefs.h.  */
31038 #include <math.h>
31039 int
31040 main ()
31041 {
31042 double x = HUGE_VAL; return x != x;
31043   ;
31044   return 0;
31045 }
31046 _ACEOF
31047 rm -f conftest$ac_exeext
31048 if { (ac_try="$ac_link"
31049 case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_link") 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31058   { (case "(($ac_try" in
31059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060   *) ac_try_echo=$ac_try;;
31061 esac
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063   (eval "$ac_try") 2>&5
31064   ac_status=$?
31065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066   (exit $ac_status); }; }; then
31067   ac_cv_huge_val_sanity=yes
31068 else
31069   echo "$as_me: program exited with status $ac_status" >&5
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31072
31073 ( exit $ac_status )
31074 ac_cv_huge_val_sanity=no
31075 fi
31076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31077 fi
31078
31079
31080     ac_ext=c
31081 ac_cpp='$CPP $CPPFLAGS'
31082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31085
31086
31087 fi
31088 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31089 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31090   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31091
31092
31093 { echo "$as_me:$LINENO: checking for pid_t" >&5
31094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31095 if test "${ac_cv_type_pid_t+set}" = set; then
31096   echo $ECHO_N "(cached) $ECHO_C" >&6
31097 else
31098   cat >conftest.$ac_ext <<_ACEOF
31099 /* confdefs.h.  */
31100 _ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h.  */
31104 $ac_includes_default
31105 typedef pid_t ac__type_new_;
31106 int
31107 main ()
31108 {
31109 if ((ac__type_new_ *) 0)
31110   return 0;
31111 if (sizeof (ac__type_new_))
31112   return 0;
31113   ;
31114   return 0;
31115 }
31116 _ACEOF
31117 rm -f conftest.$ac_objext
31118 if { (ac_try="$ac_compile"
31119 case "(($ac_try" in
31120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31121   *) ac_try_echo=$ac_try;;
31122 esac
31123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31124   (eval "$ac_compile") 2>conftest.er1
31125   ac_status=$?
31126   grep -v '^ *+' conftest.er1 >conftest.err
31127   rm -f conftest.er1
31128   cat conftest.err >&5
31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130   (exit $ac_status); } &&
31131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31132   { (case "(($ac_try" in
31133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134   *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137   (eval "$ac_try") 2>&5
31138   ac_status=$?
31139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140   (exit $ac_status); }; } &&
31141          { ac_try='test -s conftest.$ac_objext'
31142   { (case "(($ac_try" in
31143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144   *) ac_try_echo=$ac_try;;
31145 esac
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147   (eval "$ac_try") 2>&5
31148   ac_status=$?
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); }; }; then
31151   ac_cv_type_pid_t=yes
31152 else
31153   echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31155
31156         ac_cv_type_pid_t=no
31157 fi
31158
31159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31160 fi
31161 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31162 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31163 if test $ac_cv_type_pid_t = yes; then
31164   :
31165 else
31166
31167 cat >>confdefs.h <<_ACEOF
31168 #define pid_t int
31169 _ACEOF
31170
31171 fi
31172
31173 { echo "$as_me:$LINENO: checking for size_t" >&5
31174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31175 if test "${ac_cv_type_size_t+set}" = set; then
31176   echo $ECHO_N "(cached) $ECHO_C" >&6
31177 else
31178   cat >conftest.$ac_ext <<_ACEOF
31179 /* confdefs.h.  */
31180 _ACEOF
31181 cat confdefs.h >>conftest.$ac_ext
31182 cat >>conftest.$ac_ext <<_ACEOF
31183 /* end confdefs.h.  */
31184 $ac_includes_default
31185 typedef size_t ac__type_new_;
31186 int
31187 main ()
31188 {
31189 if ((ac__type_new_ *) 0)
31190   return 0;
31191 if (sizeof (ac__type_new_))
31192   return 0;
31193   ;
31194   return 0;
31195 }
31196 _ACEOF
31197 rm -f conftest.$ac_objext
31198 if { (ac_try="$ac_compile"
31199 case "(($ac_try" in
31200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201   *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204   (eval "$ac_compile") 2>conftest.er1
31205   ac_status=$?
31206   grep -v '^ *+' conftest.er1 >conftest.err
31207   rm -f conftest.er1
31208   cat conftest.err >&5
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); } &&
31211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31212   { (case "(($ac_try" in
31213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214   *) ac_try_echo=$ac_try;;
31215 esac
31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217   (eval "$ac_try") 2>&5
31218   ac_status=$?
31219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220   (exit $ac_status); }; } &&
31221          { ac_try='test -s conftest.$ac_objext'
31222   { (case "(($ac_try" in
31223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224   *) ac_try_echo=$ac_try;;
31225 esac
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227   (eval "$ac_try") 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; }; then
31231   ac_cv_type_size_t=yes
31232 else
31233   echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31235
31236         ac_cv_type_size_t=no
31237 fi
31238
31239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31240 fi
31241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31243 if test $ac_cv_type_size_t = yes; then
31244   :
31245 else
31246
31247 cat >>confdefs.h <<_ACEOF
31248 #define size_t unsigned int
31249 _ACEOF
31250
31251 fi
31252
31253 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31254 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31255 if test "${ac_cv_type_signal+set}" = set; then
31256   echo $ECHO_N "(cached) $ECHO_C" >&6
31257 else
31258   cat >conftest.$ac_ext <<_ACEOF
31259 /* confdefs.h.  */
31260 _ACEOF
31261 cat confdefs.h >>conftest.$ac_ext
31262 cat >>conftest.$ac_ext <<_ACEOF
31263 /* end confdefs.h.  */
31264 #include <sys/types.h>
31265 #include <signal.h>
31266
31267 int
31268 main ()
31269 {
31270 return *(signal (0, 0)) (0) == 1;
31271   ;
31272   return 0;
31273 }
31274 _ACEOF
31275 rm -f conftest.$ac_objext
31276 if { (ac_try="$ac_compile"
31277 case "(($ac_try" in
31278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279   *) ac_try_echo=$ac_try;;
31280 esac
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282   (eval "$ac_compile") 2>conftest.er1
31283   ac_status=$?
31284   grep -v '^ *+' conftest.er1 >conftest.err
31285   rm -f conftest.er1
31286   cat conftest.err >&5
31287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288   (exit $ac_status); } &&
31289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31290   { (case "(($ac_try" in
31291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292   *) ac_try_echo=$ac_try;;
31293 esac
31294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295   (eval "$ac_try") 2>&5
31296   ac_status=$?
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); }; } &&
31299          { ac_try='test -s conftest.$ac_objext'
31300   { (case "(($ac_try" in
31301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302   *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305   (eval "$ac_try") 2>&5
31306   ac_status=$?
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); }; }; then
31309   ac_cv_type_signal=int
31310 else
31311   echo "$as_me: failed program was:" >&5
31312 sed 's/^/| /' conftest.$ac_ext >&5
31313
31314         ac_cv_type_signal=void
31315 fi
31316
31317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31318 fi
31319 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31320 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31321
31322 cat >>confdefs.h <<_ACEOF
31323 #define RETSIGTYPE $ac_cv_type_signal
31324 _ACEOF
31325
31326
31327 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31328 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31329 if test "${ac_cv_struct_tm+set}" = set; then
31330   echo $ECHO_N "(cached) $ECHO_C" >&6
31331 else
31332   cat >conftest.$ac_ext <<_ACEOF
31333 /* confdefs.h.  */
31334 _ACEOF
31335 cat confdefs.h >>conftest.$ac_ext
31336 cat >>conftest.$ac_ext <<_ACEOF
31337 /* end confdefs.h.  */
31338 #include <sys/types.h>
31339 #include <time.h>
31340
31341 int
31342 main ()
31343 {
31344 struct tm *tp; tp->tm_sec;
31345   ;
31346   return 0;
31347 }
31348 _ACEOF
31349 rm -f conftest.$ac_objext
31350 if { (ac_try="$ac_compile"
31351 case "(($ac_try" in
31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353   *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356   (eval "$ac_compile") 2>conftest.er1
31357   ac_status=$?
31358   grep -v '^ *+' conftest.er1 >conftest.err
31359   rm -f conftest.er1
31360   cat conftest.err >&5
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); } &&
31363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31364   { (case "(($ac_try" in
31365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366   *) ac_try_echo=$ac_try;;
31367 esac
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369   (eval "$ac_try") 2>&5
31370   ac_status=$?
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); }; } &&
31373          { ac_try='test -s conftest.$ac_objext'
31374   { (case "(($ac_try" in
31375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376   *) ac_try_echo=$ac_try;;
31377 esac
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379   (eval "$ac_try") 2>&5
31380   ac_status=$?
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); }; }; then
31383   ac_cv_struct_tm=time.h
31384 else
31385   echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31387
31388         ac_cv_struct_tm=sys/time.h
31389 fi
31390
31391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31392 fi
31393 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31394 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31395 if test $ac_cv_struct_tm = sys/time.h; then
31396
31397 cat >>confdefs.h <<\_ACEOF
31398 #define TM_IN_SYS_TIME 1
31399 _ACEOF
31400
31401 fi
31402
31403 { echo "$as_me:$LINENO: checking for int64_t" >&5
31404 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31405 if test "${ac_cv_type_int64_t+set}" = set; then
31406   echo $ECHO_N "(cached) $ECHO_C" >&6
31407 else
31408   cat >conftest.$ac_ext <<_ACEOF
31409 /* confdefs.h.  */
31410 _ACEOF
31411 cat confdefs.h >>conftest.$ac_ext
31412 cat >>conftest.$ac_ext <<_ACEOF
31413 /* end confdefs.h.  */
31414 $ac_includes_default
31415 typedef int64_t ac__type_new_;
31416 int
31417 main ()
31418 {
31419 if ((ac__type_new_ *) 0)
31420   return 0;
31421 if (sizeof (ac__type_new_))
31422   return 0;
31423   ;
31424   return 0;
31425 }
31426 _ACEOF
31427 rm -f conftest.$ac_objext
31428 if { (ac_try="$ac_compile"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_compile") 2>conftest.er1
31435   ac_status=$?
31436   grep -v '^ *+' conftest.er1 >conftest.err
31437   rm -f conftest.er1
31438   cat conftest.err >&5
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); } &&
31441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31442   { (case "(($ac_try" in
31443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444   *) ac_try_echo=$ac_try;;
31445 esac
31446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447   (eval "$ac_try") 2>&5
31448   ac_status=$?
31449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450   (exit $ac_status); }; } &&
31451          { ac_try='test -s conftest.$ac_objext'
31452   { (case "(($ac_try" in
31453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454   *) ac_try_echo=$ac_try;;
31455 esac
31456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457   (eval "$ac_try") 2>&5
31458   ac_status=$?
31459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460   (exit $ac_status); }; }; then
31461   ac_cv_type_int64_t=yes
31462 else
31463   echo "$as_me: failed program was:" >&5
31464 sed 's/^/| /' conftest.$ac_ext >&5
31465
31466         ac_cv_type_int64_t=no
31467 fi
31468
31469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31470 fi
31471 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31472 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31473 if test $ac_cv_type_int64_t = yes; then
31474
31475 cat >>confdefs.h <<_ACEOF
31476 #define HAVE_INT64_T 1
31477 _ACEOF
31478
31479
31480 else
31481   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31482 echo "$as_me: error: Type int64_t required but not found" >&2;}
31483    { (exit 1); exit 1; }; }
31484 fi
31485
31486 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31487 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31488 if test "${ac_cv_type_uint64_t+set}" = set; then
31489   echo $ECHO_N "(cached) $ECHO_C" >&6
31490 else
31491   cat >conftest.$ac_ext <<_ACEOF
31492 /* confdefs.h.  */
31493 _ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h.  */
31497 $ac_includes_default
31498 typedef uint64_t ac__type_new_;
31499 int
31500 main ()
31501 {
31502 if ((ac__type_new_ *) 0)
31503   return 0;
31504 if (sizeof (ac__type_new_))
31505   return 0;
31506   ;
31507   return 0;
31508 }
31509 _ACEOF
31510 rm -f conftest.$ac_objext
31511 if { (ac_try="$ac_compile"
31512 case "(($ac_try" in
31513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514   *) ac_try_echo=$ac_try;;
31515 esac
31516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517   (eval "$ac_compile") 2>conftest.er1
31518   ac_status=$?
31519   grep -v '^ *+' conftest.er1 >conftest.err
31520   rm -f conftest.er1
31521   cat conftest.err >&5
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); } &&
31524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31525   { (case "(($ac_try" in
31526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527   *) ac_try_echo=$ac_try;;
31528 esac
31529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530   (eval "$ac_try") 2>&5
31531   ac_status=$?
31532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533   (exit $ac_status); }; } &&
31534          { ac_try='test -s conftest.$ac_objext'
31535   { (case "(($ac_try" in
31536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537   *) ac_try_echo=$ac_try;;
31538 esac
31539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540   (eval "$ac_try") 2>&5
31541   ac_status=$?
31542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543   (exit $ac_status); }; }; then
31544   ac_cv_type_uint64_t=yes
31545 else
31546   echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31548
31549         ac_cv_type_uint64_t=no
31550 fi
31551
31552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31553 fi
31554 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31555 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31556 if test $ac_cv_type_uint64_t = yes; then
31557
31558 cat >>confdefs.h <<_ACEOF
31559 #define HAVE_UINT64_T 1
31560 _ACEOF
31561
31562
31563 else
31564   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31565 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31566 if test "${ac_cv_type_u_int64_t+set}" = set; then
31567   echo $ECHO_N "(cached) $ECHO_C" >&6
31568 else
31569   cat >conftest.$ac_ext <<_ACEOF
31570 /* confdefs.h.  */
31571 _ACEOF
31572 cat confdefs.h >>conftest.$ac_ext
31573 cat >>conftest.$ac_ext <<_ACEOF
31574 /* end confdefs.h.  */
31575 $ac_includes_default
31576 typedef u_int64_t ac__type_new_;
31577 int
31578 main ()
31579 {
31580 if ((ac__type_new_ *) 0)
31581   return 0;
31582 if (sizeof (ac__type_new_))
31583   return 0;
31584   ;
31585   return 0;
31586 }
31587 _ACEOF
31588 rm -f conftest.$ac_objext
31589 if { (ac_try="$ac_compile"
31590 case "(($ac_try" in
31591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592   *) ac_try_echo=$ac_try;;
31593 esac
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595   (eval "$ac_compile") 2>conftest.er1
31596   ac_status=$?
31597   grep -v '^ *+' conftest.er1 >conftest.err
31598   rm -f conftest.er1
31599   cat conftest.err >&5
31600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601   (exit $ac_status); } &&
31602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31603   { (case "(($ac_try" in
31604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605   *) ac_try_echo=$ac_try;;
31606 esac
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608   (eval "$ac_try") 2>&5
31609   ac_status=$?
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); }; } &&
31612          { ac_try='test -s conftest.$ac_objext'
31613   { (case "(($ac_try" in
31614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615   *) ac_try_echo=$ac_try;;
31616 esac
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618   (eval "$ac_try") 2>&5
31619   ac_status=$?
31620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621   (exit $ac_status); }; }; then
31622   ac_cv_type_u_int64_t=yes
31623 else
31624   echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.$ac_ext >&5
31626
31627         ac_cv_type_u_int64_t=no
31628 fi
31629
31630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631 fi
31632 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31633 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31634 if test $ac_cv_type_u_int64_t = yes; then
31635
31636 cat >>confdefs.h <<_ACEOF
31637 #define HAVE_U_INT64_T 1
31638 _ACEOF
31639
31640
31641 else
31642   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31643 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31644    { (exit 1); exit 1; }; }
31645 fi
31646
31647 fi
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31659 do
31660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31664   echo $ECHO_N "(cached) $ECHO_C" >&6
31665 else
31666   cat >conftest.$ac_ext <<_ACEOF
31667 /* confdefs.h.  */
31668 _ACEOF
31669 cat confdefs.h >>conftest.$ac_ext
31670 cat >>conftest.$ac_ext <<_ACEOF
31671 /* end confdefs.h.  */
31672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31674 #define $ac_func innocuous_$ac_func
31675
31676 /* System header to define __stub macros and hopefully few prototypes,
31677     which can conflict with char $ac_func (); below.
31678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31679     <limits.h> exists even on freestanding compilers.  */
31680
31681 #ifdef __STDC__
31682 # include <limits.h>
31683 #else
31684 # include <assert.h>
31685 #endif
31686
31687 #undef $ac_func
31688
31689 /* Override any GCC internal prototype to avoid an error.
31690    Use char because int might match the return type of a GCC
31691    builtin and then its argument prototype would still apply.  */
31692 #ifdef __cplusplus
31693 extern "C"
31694 #endif
31695 char $ac_func ();
31696 /* The GNU C library defines this for functions which it implements
31697     to always fail with ENOSYS.  Some functions are actually named
31698     something starting with __ and the normal name is an alias.  */
31699 #if defined __stub_$ac_func || defined __stub___$ac_func
31700 choke me
31701 #endif
31702
31703 int
31704 main ()
31705 {
31706 return $ac_func ();
31707   ;
31708   return 0;
31709 }
31710 _ACEOF
31711 rm -f conftest.$ac_objext conftest$ac_exeext
31712 if { (ac_try="$ac_link"
31713 case "(($ac_try" in
31714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715   *) ac_try_echo=$ac_try;;
31716 esac
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718   (eval "$ac_link") 2>conftest.er1
31719   ac_status=$?
31720   grep -v '^ *+' conftest.er1 >conftest.err
31721   rm -f conftest.er1
31722   cat conftest.err >&5
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); } &&
31725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31726   { (case "(($ac_try" in
31727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728   *) ac_try_echo=$ac_try;;
31729 esac
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731   (eval "$ac_try") 2>&5
31732   ac_status=$?
31733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734   (exit $ac_status); }; } &&
31735          { ac_try='test -s conftest$ac_exeext'
31736   { (case "(($ac_try" in
31737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738   *) ac_try_echo=$ac_try;;
31739 esac
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741   (eval "$ac_try") 2>&5
31742   ac_status=$?
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); }; }; then
31745   eval "$as_ac_var=yes"
31746 else
31747   echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31749
31750         eval "$as_ac_var=no"
31751 fi
31752
31753 rm -f core conftest.err conftest.$ac_objext \
31754       conftest$ac_exeext conftest.$ac_ext
31755 fi
31756 ac_res=`eval echo '${'$as_ac_var'}'`
31757                { echo "$as_me:$LINENO: result: $ac_res" >&5
31758 echo "${ECHO_T}$ac_res" >&6; }
31759 if test `eval echo '${'$as_ac_var'}'` = yes; then
31760   cat >>confdefs.h <<_ACEOF
31761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31762 _ACEOF
31763
31764 fi
31765 done
31766
31767
31768
31769
31770
31771 for ac_func in powf fmodf strtof round
31772 do
31773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31777   echo $ECHO_N "(cached) $ECHO_C" >&6
31778 else
31779   cat >conftest.$ac_ext <<_ACEOF
31780 /* confdefs.h.  */
31781 _ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h.  */
31785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31787 #define $ac_func innocuous_$ac_func
31788
31789 /* System header to define __stub macros and hopefully few prototypes,
31790     which can conflict with char $ac_func (); below.
31791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31792     <limits.h> exists even on freestanding compilers.  */
31793
31794 #ifdef __STDC__
31795 # include <limits.h>
31796 #else
31797 # include <assert.h>
31798 #endif
31799
31800 #undef $ac_func
31801
31802 /* Override any GCC internal prototype to avoid an error.
31803    Use char because int might match the return type of a GCC
31804    builtin and then its argument prototype would still apply.  */
31805 #ifdef __cplusplus
31806 extern "C"
31807 #endif
31808 char $ac_func ();
31809 /* The GNU C library defines this for functions which it implements
31810     to always fail with ENOSYS.  Some functions are actually named
31811     something starting with __ and the normal name is an alias.  */
31812 #if defined __stub_$ac_func || defined __stub___$ac_func
31813 choke me
31814 #endif
31815
31816 int
31817 main ()
31818 {
31819 return $ac_func ();
31820   ;
31821   return 0;
31822 }
31823 _ACEOF
31824 rm -f conftest.$ac_objext conftest$ac_exeext
31825 if { (ac_try="$ac_link"
31826 case "(($ac_try" in
31827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828   *) ac_try_echo=$ac_try;;
31829 esac
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831   (eval "$ac_link") 2>conftest.er1
31832   ac_status=$?
31833   grep -v '^ *+' conftest.er1 >conftest.err
31834   rm -f conftest.er1
31835   cat conftest.err >&5
31836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837   (exit $ac_status); } &&
31838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31839   { (case "(($ac_try" in
31840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841   *) ac_try_echo=$ac_try;;
31842 esac
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844   (eval "$ac_try") 2>&5
31845   ac_status=$?
31846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); }; } &&
31848          { ac_try='test -s conftest$ac_exeext'
31849   { (case "(($ac_try" in
31850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851   *) ac_try_echo=$ac_try;;
31852 esac
31853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854   (eval "$ac_try") 2>&5
31855   ac_status=$?
31856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857   (exit $ac_status); }; }; then
31858   eval "$as_ac_var=yes"
31859 else
31860   echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31862
31863         eval "$as_ac_var=no"
31864 fi
31865
31866 rm -f core conftest.err conftest.$ac_objext \
31867       conftest$ac_exeext conftest.$ac_ext
31868 fi
31869 ac_res=`eval echo '${'$as_ac_var'}'`
31870                { echo "$as_me:$LINENO: result: $ac_res" >&5
31871 echo "${ECHO_T}$ac_res" >&6; }
31872 if test `eval echo '${'$as_ac_var'}'` = yes; then
31873   cat >>confdefs.h <<_ACEOF
31874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31875 _ACEOF
31876
31877 fi
31878 done
31879
31880
31881
31882
31883
31884
31885 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31886 do
31887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31891   echo $ECHO_N "(cached) $ECHO_C" >&6
31892 else
31893   cat >conftest.$ac_ext <<_ACEOF
31894 /* confdefs.h.  */
31895 _ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h.  */
31899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31901 #define $ac_func innocuous_$ac_func
31902
31903 /* System header to define __stub macros and hopefully few prototypes,
31904     which can conflict with char $ac_func (); below.
31905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31906     <limits.h> exists even on freestanding compilers.  */
31907
31908 #ifdef __STDC__
31909 # include <limits.h>
31910 #else
31911 # include <assert.h>
31912 #endif
31913
31914 #undef $ac_func
31915
31916 /* Override any GCC internal prototype to avoid an error.
31917    Use char because int might match the return type of a GCC
31918    builtin and then its argument prototype would still apply.  */
31919 #ifdef __cplusplus
31920 extern "C"
31921 #endif
31922 char $ac_func ();
31923 /* The GNU C library defines this for functions which it implements
31924     to always fail with ENOSYS.  Some functions are actually named
31925     something starting with __ and the normal name is an alias.  */
31926 #if defined __stub_$ac_func || defined __stub___$ac_func
31927 choke me
31928 #endif
31929
31930 int
31931 main ()
31932 {
31933 return $ac_func ();
31934   ;
31935   return 0;
31936 }
31937 _ACEOF
31938 rm -f conftest.$ac_objext conftest$ac_exeext
31939 if { (ac_try="$ac_link"
31940 case "(($ac_try" in
31941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31942   *) ac_try_echo=$ac_try;;
31943 esac
31944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945   (eval "$ac_link") 2>conftest.er1
31946   ac_status=$?
31947   grep -v '^ *+' conftest.er1 >conftest.err
31948   rm -f conftest.er1
31949   cat conftest.err >&5
31950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); } &&
31952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31953   { (case "(($ac_try" in
31954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955   *) ac_try_echo=$ac_try;;
31956 esac
31957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958   (eval "$ac_try") 2>&5
31959   ac_status=$?
31960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961   (exit $ac_status); }; } &&
31962          { ac_try='test -s conftest$ac_exeext'
31963   { (case "(($ac_try" in
31964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31965   *) ac_try_echo=$ac_try;;
31966 esac
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968   (eval "$ac_try") 2>&5
31969   ac_status=$?
31970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971   (exit $ac_status); }; }; then
31972   eval "$as_ac_var=yes"
31973 else
31974   echo "$as_me: failed program was:" >&5
31975 sed 's/^/| /' conftest.$ac_ext >&5
31976
31977         eval "$as_ac_var=no"
31978 fi
31979
31980 rm -f core conftest.err conftest.$ac_objext \
31981       conftest$ac_exeext conftest.$ac_ext
31982 fi
31983 ac_res=`eval echo '${'$as_ac_var'}'`
31984                { echo "$as_me:$LINENO: result: $ac_res" >&5
31985 echo "${ECHO_T}$ac_res" >&6; }
31986 if test `eval echo '${'$as_ac_var'}'` = yes; then
31987   cat >>confdefs.h <<_ACEOF
31988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31989 _ACEOF
31990
31991 fi
31992 done
31993
31994
31995
31996
31997 for ac_func in isatty mkdtemp mkstemp
31998 do
31999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32003   echo $ECHO_N "(cached) $ECHO_C" >&6
32004 else
32005   cat >conftest.$ac_ext <<_ACEOF
32006 /* confdefs.h.  */
32007 _ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h.  */
32011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32013 #define $ac_func innocuous_$ac_func
32014
32015 /* System header to define __stub macros and hopefully few prototypes,
32016     which can conflict with char $ac_func (); below.
32017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32018     <limits.h> exists even on freestanding compilers.  */
32019
32020 #ifdef __STDC__
32021 # include <limits.h>
32022 #else
32023 # include <assert.h>
32024 #endif
32025
32026 #undef $ac_func
32027
32028 /* Override any GCC internal prototype to avoid an error.
32029    Use char because int might match the return type of a GCC
32030    builtin and then its argument prototype would still apply.  */
32031 #ifdef __cplusplus
32032 extern "C"
32033 #endif
32034 char $ac_func ();
32035 /* The GNU C library defines this for functions which it implements
32036     to always fail with ENOSYS.  Some functions are actually named
32037     something starting with __ and the normal name is an alias.  */
32038 #if defined __stub_$ac_func || defined __stub___$ac_func
32039 choke me
32040 #endif
32041
32042 int
32043 main ()
32044 {
32045 return $ac_func ();
32046   ;
32047   return 0;
32048 }
32049 _ACEOF
32050 rm -f conftest.$ac_objext conftest$ac_exeext
32051 if { (ac_try="$ac_link"
32052 case "(($ac_try" in
32053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054   *) ac_try_echo=$ac_try;;
32055 esac
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057   (eval "$ac_link") 2>conftest.er1
32058   ac_status=$?
32059   grep -v '^ *+' conftest.er1 >conftest.err
32060   rm -f conftest.er1
32061   cat conftest.err >&5
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } &&
32064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32065   { (case "(($ac_try" in
32066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067   *) ac_try_echo=$ac_try;;
32068 esac
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070   (eval "$ac_try") 2>&5
32071   ac_status=$?
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); }; } &&
32074          { ac_try='test -s conftest$ac_exeext'
32075   { (case "(($ac_try" in
32076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077   *) ac_try_echo=$ac_try;;
32078 esac
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080   (eval "$ac_try") 2>&5
32081   ac_status=$?
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); }; }; then
32084   eval "$as_ac_var=yes"
32085 else
32086   echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089         eval "$as_ac_var=no"
32090 fi
32091
32092 rm -f core conftest.err conftest.$ac_objext \
32093       conftest$ac_exeext conftest.$ac_ext
32094 fi
32095 ac_res=`eval echo '${'$as_ac_var'}'`
32096                { echo "$as_me:$LINENO: result: $ac_res" >&5
32097 echo "${ECHO_T}$ac_res" >&6; }
32098 if test `eval echo '${'$as_ac_var'}'` = yes; then
32099   cat >>confdefs.h <<_ACEOF
32100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32101 _ACEOF
32102
32103 fi
32104 done
32105
32106
32107
32108
32109
32110
32111 for ac_func in mktemp realpath sbrk setrlimit strdup
32112 do
32113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32117   echo $ECHO_N "(cached) $ECHO_C" >&6
32118 else
32119   cat >conftest.$ac_ext <<_ACEOF
32120 /* confdefs.h.  */
32121 _ACEOF
32122 cat confdefs.h >>conftest.$ac_ext
32123 cat >>conftest.$ac_ext <<_ACEOF
32124 /* end confdefs.h.  */
32125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32127 #define $ac_func innocuous_$ac_func
32128
32129 /* System header to define __stub macros and hopefully few prototypes,
32130     which can conflict with char $ac_func (); below.
32131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32132     <limits.h> exists even on freestanding compilers.  */
32133
32134 #ifdef __STDC__
32135 # include <limits.h>
32136 #else
32137 # include <assert.h>
32138 #endif
32139
32140 #undef $ac_func
32141
32142 /* Override any GCC internal prototype to avoid an error.
32143    Use char because int might match the return type of a GCC
32144    builtin and then its argument prototype would still apply.  */
32145 #ifdef __cplusplus
32146 extern "C"
32147 #endif
32148 char $ac_func ();
32149 /* The GNU C library defines this for functions which it implements
32150     to always fail with ENOSYS.  Some functions are actually named
32151     something starting with __ and the normal name is an alias.  */
32152 #if defined __stub_$ac_func || defined __stub___$ac_func
32153 choke me
32154 #endif
32155
32156 int
32157 main ()
32158 {
32159 return $ac_func ();
32160   ;
32161   return 0;
32162 }
32163 _ACEOF
32164 rm -f conftest.$ac_objext conftest$ac_exeext
32165 if { (ac_try="$ac_link"
32166 case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171   (eval "$ac_link") 2>conftest.er1
32172   ac_status=$?
32173   grep -v '^ *+' conftest.er1 >conftest.err
32174   rm -f conftest.er1
32175   cat conftest.err >&5
32176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177   (exit $ac_status); } &&
32178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32179   { (case "(($ac_try" in
32180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181   *) ac_try_echo=$ac_try;;
32182 esac
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184   (eval "$ac_try") 2>&5
32185   ac_status=$?
32186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187   (exit $ac_status); }; } &&
32188          { ac_try='test -s conftest$ac_exeext'
32189   { (case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194   (eval "$ac_try") 2>&5
32195   ac_status=$?
32196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197   (exit $ac_status); }; }; then
32198   eval "$as_ac_var=yes"
32199 else
32200   echo "$as_me: failed program was:" >&5
32201 sed 's/^/| /' conftest.$ac_ext >&5
32202
32203         eval "$as_ac_var=no"
32204 fi
32205
32206 rm -f core conftest.err conftest.$ac_objext \
32207       conftest$ac_exeext conftest.$ac_ext
32208 fi
32209 ac_res=`eval echo '${'$as_ac_var'}'`
32210                { echo "$as_me:$LINENO: result: $ac_res" >&5
32211 echo "${ECHO_T}$ac_res" >&6; }
32212 if test `eval echo '${'$as_ac_var'}'` = yes; then
32213   cat >>confdefs.h <<_ACEOF
32214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32215 _ACEOF
32216
32217 fi
32218 done
32219
32220
32221
32222
32223 for ac_func in strerror strerror_r strerror_s
32224 do
32225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32229   echo $ECHO_N "(cached) $ECHO_C" >&6
32230 else
32231   cat >conftest.$ac_ext <<_ACEOF
32232 /* confdefs.h.  */
32233 _ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h.  */
32237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32239 #define $ac_func innocuous_$ac_func
32240
32241 /* System header to define __stub macros and hopefully few prototypes,
32242     which can conflict with char $ac_func (); below.
32243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32244     <limits.h> exists even on freestanding compilers.  */
32245
32246 #ifdef __STDC__
32247 # include <limits.h>
32248 #else
32249 # include <assert.h>
32250 #endif
32251
32252 #undef $ac_func
32253
32254 /* Override any GCC internal prototype to avoid an error.
32255    Use char because int might match the return type of a GCC
32256    builtin and then its argument prototype would still apply.  */
32257 #ifdef __cplusplus
32258 extern "C"
32259 #endif
32260 char $ac_func ();
32261 /* The GNU C library defines this for functions which it implements
32262     to always fail with ENOSYS.  Some functions are actually named
32263     something starting with __ and the normal name is an alias.  */
32264 #if defined __stub_$ac_func || defined __stub___$ac_func
32265 choke me
32266 #endif
32267
32268 int
32269 main ()
32270 {
32271 return $ac_func ();
32272   ;
32273   return 0;
32274 }
32275 _ACEOF
32276 rm -f conftest.$ac_objext conftest$ac_exeext
32277 if { (ac_try="$ac_link"
32278 case "(($ac_try" in
32279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280   *) ac_try_echo=$ac_try;;
32281 esac
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283   (eval "$ac_link") 2>conftest.er1
32284   ac_status=$?
32285   grep -v '^ *+' conftest.er1 >conftest.err
32286   rm -f conftest.er1
32287   cat conftest.err >&5
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); } &&
32290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32291   { (case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_try") 2>&5
32297   ac_status=$?
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); }; } &&
32300          { ac_try='test -s conftest$ac_exeext'
32301   { (case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_try") 2>&5
32307   ac_status=$?
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); }; }; then
32310   eval "$as_ac_var=yes"
32311 else
32312   echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32314
32315         eval "$as_ac_var=no"
32316 fi
32317
32318 rm -f core conftest.err conftest.$ac_objext \
32319       conftest$ac_exeext conftest.$ac_ext
32320 fi
32321 ac_res=`eval echo '${'$as_ac_var'}'`
32322                { echo "$as_me:$LINENO: result: $ac_res" >&5
32323 echo "${ECHO_T}$ac_res" >&6; }
32324 if test `eval echo '${'$as_ac_var'}'` = yes; then
32325   cat >>confdefs.h <<_ACEOF
32326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32327 _ACEOF
32328
32329 fi
32330 done
32331
32332
32333
32334
32335
32336 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32337 do
32338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32342   echo $ECHO_N "(cached) $ECHO_C" >&6
32343 else
32344   cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32352 #define $ac_func innocuous_$ac_func
32353
32354 /* System header to define __stub macros and hopefully few prototypes,
32355     which can conflict with char $ac_func (); below.
32356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32357     <limits.h> exists even on freestanding compilers.  */
32358
32359 #ifdef __STDC__
32360 # include <limits.h>
32361 #else
32362 # include <assert.h>
32363 #endif
32364
32365 #undef $ac_func
32366
32367 /* Override any GCC internal prototype to avoid an error.
32368    Use char because int might match the return type of a GCC
32369    builtin and then its argument prototype would still apply.  */
32370 #ifdef __cplusplus
32371 extern "C"
32372 #endif
32373 char $ac_func ();
32374 /* The GNU C library defines this for functions which it implements
32375     to always fail with ENOSYS.  Some functions are actually named
32376     something starting with __ and the normal name is an alias.  */
32377 #if defined __stub_$ac_func || defined __stub___$ac_func
32378 choke me
32379 #endif
32380
32381 int
32382 main ()
32383 {
32384 return $ac_func ();
32385   ;
32386   return 0;
32387 }
32388 _ACEOF
32389 rm -f conftest.$ac_objext conftest$ac_exeext
32390 if { (ac_try="$ac_link"
32391 case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_link") 2>conftest.er1
32397   ac_status=$?
32398   grep -v '^ *+' conftest.er1 >conftest.err
32399   rm -f conftest.er1
32400   cat conftest.err >&5
32401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402   (exit $ac_status); } &&
32403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32404   { (case "(($ac_try" in
32405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406   *) ac_try_echo=$ac_try;;
32407 esac
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409   (eval "$ac_try") 2>&5
32410   ac_status=$?
32411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412   (exit $ac_status); }; } &&
32413          { ac_try='test -s conftest$ac_exeext'
32414   { (case "(($ac_try" in
32415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416   *) ac_try_echo=$ac_try;;
32417 esac
32418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419   (eval "$ac_try") 2>&5
32420   ac_status=$?
32421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422   (exit $ac_status); }; }; then
32423   eval "$as_ac_var=yes"
32424 else
32425   echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32427
32428         eval "$as_ac_var=no"
32429 fi
32430
32431 rm -f core conftest.err conftest.$ac_objext \
32432       conftest$ac_exeext conftest.$ac_ext
32433 fi
32434 ac_res=`eval echo '${'$as_ac_var'}'`
32435                { echo "$as_me:$LINENO: result: $ac_res" >&5
32436 echo "${ECHO_T}$ac_res" >&6; }
32437 if test `eval echo '${'$as_ac_var'}'` = yes; then
32438   cat >>confdefs.h <<_ACEOF
32439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32440 _ACEOF
32441
32442 fi
32443 done
32444
32445
32446
32447
32448
32449 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32450 do
32451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32455   echo $ECHO_N "(cached) $ECHO_C" >&6
32456 else
32457   cat >conftest.$ac_ext <<_ACEOF
32458 /* confdefs.h.  */
32459 _ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h.  */
32463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32465 #define $ac_func innocuous_$ac_func
32466
32467 /* System header to define __stub macros and hopefully few prototypes,
32468     which can conflict with char $ac_func (); below.
32469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32470     <limits.h> exists even on freestanding compilers.  */
32471
32472 #ifdef __STDC__
32473 # include <limits.h>
32474 #else
32475 # include <assert.h>
32476 #endif
32477
32478 #undef $ac_func
32479
32480 /* Override any GCC internal prototype to avoid an error.
32481    Use char because int might match the return type of a GCC
32482    builtin and then its argument prototype would still apply.  */
32483 #ifdef __cplusplus
32484 extern "C"
32485 #endif
32486 char $ac_func ();
32487 /* The GNU C library defines this for functions which it implements
32488     to always fail with ENOSYS.  Some functions are actually named
32489     something starting with __ and the normal name is an alias.  */
32490 #if defined __stub_$ac_func || defined __stub___$ac_func
32491 choke me
32492 #endif
32493
32494 int
32495 main ()
32496 {
32497 return $ac_func ();
32498   ;
32499   return 0;
32500 }
32501 _ACEOF
32502 rm -f conftest.$ac_objext conftest$ac_exeext
32503 if { (ac_try="$ac_link"
32504 case "(($ac_try" in
32505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506   *) ac_try_echo=$ac_try;;
32507 esac
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509   (eval "$ac_link") 2>conftest.er1
32510   ac_status=$?
32511   grep -v '^ *+' conftest.er1 >conftest.err
32512   rm -f conftest.er1
32513   cat conftest.err >&5
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); } &&
32516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32517   { (case "(($ac_try" in
32518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519   *) ac_try_echo=$ac_try;;
32520 esac
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522   (eval "$ac_try") 2>&5
32523   ac_status=$?
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); }; } &&
32526          { ac_try='test -s conftest$ac_exeext'
32527   { (case "(($ac_try" in
32528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529   *) ac_try_echo=$ac_try;;
32530 esac
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532   (eval "$ac_try") 2>&5
32533   ac_status=$?
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); }; }; then
32536   eval "$as_ac_var=yes"
32537 else
32538   echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32540
32541         eval "$as_ac_var=no"
32542 fi
32543
32544 rm -f core conftest.err conftest.$ac_objext \
32545       conftest$ac_exeext conftest.$ac_ext
32546 fi
32547 ac_res=`eval echo '${'$as_ac_var'}'`
32548                { echo "$as_me:$LINENO: result: $ac_res" >&5
32549 echo "${ECHO_T}$ac_res" >&6; }
32550 if test `eval echo '${'$as_ac_var'}'` = yes; then
32551   cat >>confdefs.h <<_ACEOF
32552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32553 _ACEOF
32554
32555 fi
32556 done
32557
32558 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32559 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32560 if test "${llvm_cv_c_printf_a+set}" = set; then
32561   echo $ECHO_N "(cached) $ECHO_C" >&6
32562 else
32563   ac_ext=c
32564 ac_cpp='$CPP $CPPFLAGS'
32565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32568
32569  if test "$cross_compiling" = yes; then
32570   llvmac_cv_c_printf_a=no
32571 else
32572   cat >conftest.$ac_ext <<_ACEOF
32573
32574   /* confdefs.h.  */
32575 _ACEOF
32576 cat confdefs.h >>conftest.$ac_ext
32577 cat >>conftest.$ac_ext <<_ACEOF
32578 /* end confdefs.h.  */
32579
32580 #include <stdio.h>
32581 #include <stdlib.h>
32582
32583 int
32584 main ()
32585 {
32586
32587 volatile double A, B;
32588 char Buffer[100];
32589 A = 1;
32590 A /= 10.0;
32591 sprintf(Buffer, "%a", A);
32592 B = atof(Buffer);
32593 if (A != B)
32594   return (1);
32595 if (A != 0x1.999999999999ap-4)
32596   return (1);
32597 return (0);
32598   ;
32599   return 0;
32600 }
32601 _ACEOF
32602 rm -f conftest$ac_exeext
32603 if { (ac_try="$ac_link"
32604 case "(($ac_try" in
32605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606   *) ac_try_echo=$ac_try;;
32607 esac
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609   (eval "$ac_link") 2>&5
32610   ac_status=$?
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32613   { (case "(($ac_try" in
32614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615   *) ac_try_echo=$ac_try;;
32616 esac
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618   (eval "$ac_try") 2>&5
32619   ac_status=$?
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); }; }; then
32622   llvm_cv_c_printf_a=yes
32623 else
32624   echo "$as_me: program exited with status $ac_status" >&5
32625 echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.$ac_ext >&5
32627
32628 ( exit $ac_status )
32629 llvmac_cv_c_printf_a=no
32630 fi
32631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32632 fi
32633
32634
32635  ac_ext=c
32636 ac_cpp='$CPP $CPPFLAGS'
32637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32640
32641 fi
32642 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32643 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32644  if test "$llvm_cv_c_printf_a" = "yes"; then
32645
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_PRINTF_A 1
32648 _ACEOF
32649
32650  fi
32651
32652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32653 # for constant arguments.  Useless!
32654 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32655 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32656 if test "${ac_cv_working_alloca_h+set}" = set; then
32657   echo $ECHO_N "(cached) $ECHO_C" >&6
32658 else
32659   cat >conftest.$ac_ext <<_ACEOF
32660 /* confdefs.h.  */
32661 _ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h.  */
32665 #include <alloca.h>
32666 int
32667 main ()
32668 {
32669 char *p = (char *) alloca (2 * sizeof (int));
32670                           if (p) return 0;
32671   ;
32672   return 0;
32673 }
32674 _ACEOF
32675 rm -f conftest.$ac_objext conftest$ac_exeext
32676 if { (ac_try="$ac_link"
32677 case "(($ac_try" in
32678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679   *) ac_try_echo=$ac_try;;
32680 esac
32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682   (eval "$ac_link") 2>conftest.er1
32683   ac_status=$?
32684   grep -v '^ *+' conftest.er1 >conftest.err
32685   rm -f conftest.er1
32686   cat conftest.err >&5
32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); } &&
32689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32690   { (case "(($ac_try" in
32691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692   *) ac_try_echo=$ac_try;;
32693 esac
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695   (eval "$ac_try") 2>&5
32696   ac_status=$?
32697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698   (exit $ac_status); }; } &&
32699          { ac_try='test -s conftest$ac_exeext'
32700   { (case "(($ac_try" in
32701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702   *) ac_try_echo=$ac_try;;
32703 esac
32704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705   (eval "$ac_try") 2>&5
32706   ac_status=$?
32707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708   (exit $ac_status); }; }; then
32709   ac_cv_working_alloca_h=yes
32710 else
32711   echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32713
32714         ac_cv_working_alloca_h=no
32715 fi
32716
32717 rm -f core conftest.err conftest.$ac_objext \
32718       conftest$ac_exeext conftest.$ac_ext
32719 fi
32720 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32721 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32722 if test $ac_cv_working_alloca_h = yes; then
32723
32724 cat >>confdefs.h <<\_ACEOF
32725 #define HAVE_ALLOCA_H 1
32726 _ACEOF
32727
32728 fi
32729
32730 { echo "$as_me:$LINENO: checking for alloca" >&5
32731 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32732 if test "${ac_cv_func_alloca_works+set}" = set; then
32733   echo $ECHO_N "(cached) $ECHO_C" >&6
32734 else
32735   cat >conftest.$ac_ext <<_ACEOF
32736 /* confdefs.h.  */
32737 _ACEOF
32738 cat confdefs.h >>conftest.$ac_ext
32739 cat >>conftest.$ac_ext <<_ACEOF
32740 /* end confdefs.h.  */
32741 #ifdef __GNUC__
32742 # define alloca __builtin_alloca
32743 #else
32744 # ifdef _MSC_VER
32745 #  include <malloc.h>
32746 #  define alloca _alloca
32747 # else
32748 #  if HAVE_ALLOCA_H
32749 #   include <alloca.h>
32750 #  else
32751 #   ifdef _AIX
32752  #pragma alloca
32753 #   else
32754 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32755 char *alloca ();
32756 #    endif
32757 #   endif
32758 #  endif
32759 # endif
32760 #endif
32761
32762 int
32763 main ()
32764 {
32765 char *p = (char *) alloca (1);
32766                                     if (p) return 0;
32767   ;
32768   return 0;
32769 }
32770 _ACEOF
32771 rm -f conftest.$ac_objext conftest$ac_exeext
32772 if { (ac_try="$ac_link"
32773 case "(($ac_try" in
32774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775   *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778   (eval "$ac_link") 2>conftest.er1
32779   ac_status=$?
32780   grep -v '^ *+' conftest.er1 >conftest.err
32781   rm -f conftest.er1
32782   cat conftest.err >&5
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); } &&
32785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32786   { (case "(($ac_try" in
32787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788   *) ac_try_echo=$ac_try;;
32789 esac
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791   (eval "$ac_try") 2>&5
32792   ac_status=$?
32793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794   (exit $ac_status); }; } &&
32795          { ac_try='test -s conftest$ac_exeext'
32796   { (case "(($ac_try" in
32797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798   *) ac_try_echo=$ac_try;;
32799 esac
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801   (eval "$ac_try") 2>&5
32802   ac_status=$?
32803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804   (exit $ac_status); }; }; then
32805   ac_cv_func_alloca_works=yes
32806 else
32807   echo "$as_me: failed program was:" >&5
32808 sed 's/^/| /' conftest.$ac_ext >&5
32809
32810         ac_cv_func_alloca_works=no
32811 fi
32812
32813 rm -f core conftest.err conftest.$ac_objext \
32814       conftest$ac_exeext conftest.$ac_ext
32815 fi
32816 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32818
32819 if test $ac_cv_func_alloca_works = yes; then
32820
32821 cat >>confdefs.h <<\_ACEOF
32822 #define HAVE_ALLOCA 1
32823 _ACEOF
32824
32825 else
32826   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32827 # that cause trouble.  Some versions do not even contain alloca or
32828 # contain a buggy version.  If you still want to use their alloca,
32829 # use ar to extract alloca.o from them instead of compiling alloca.c.
32830
32831 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32832
32833 cat >>confdefs.h <<\_ACEOF
32834 #define C_ALLOCA 1
32835 _ACEOF
32836
32837
32838 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32840 if test "${ac_cv_os_cray+set}" = set; then
32841   echo $ECHO_N "(cached) $ECHO_C" >&6
32842 else
32843   cat >conftest.$ac_ext <<_ACEOF
32844 /* confdefs.h.  */
32845 _ACEOF
32846 cat confdefs.h >>conftest.$ac_ext
32847 cat >>conftest.$ac_ext <<_ACEOF
32848 /* end confdefs.h.  */
32849 #if defined CRAY && ! defined CRAY2
32850 webecray
32851 #else
32852 wenotbecray
32853 #endif
32854
32855 _ACEOF
32856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32857   $EGREP "webecray" >/dev/null 2>&1; then
32858   ac_cv_os_cray=yes
32859 else
32860   ac_cv_os_cray=no
32861 fi
32862 rm -f conftest*
32863
32864 fi
32865 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32866 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32867 if test $ac_cv_os_cray = yes; then
32868   for ac_func in _getb67 GETB67 getb67; do
32869     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32873   echo $ECHO_N "(cached) $ECHO_C" >&6
32874 else
32875   cat >conftest.$ac_ext <<_ACEOF
32876 /* confdefs.h.  */
32877 _ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h.  */
32881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32883 #define $ac_func innocuous_$ac_func
32884
32885 /* System header to define __stub macros and hopefully few prototypes,
32886     which can conflict with char $ac_func (); below.
32887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32888     <limits.h> exists even on freestanding compilers.  */
32889
32890 #ifdef __STDC__
32891 # include <limits.h>
32892 #else
32893 # include <assert.h>
32894 #endif
32895
32896 #undef $ac_func
32897
32898 /* Override any GCC internal prototype to avoid an error.
32899    Use char because int might match the return type of a GCC
32900    builtin and then its argument prototype would still apply.  */
32901 #ifdef __cplusplus
32902 extern "C"
32903 #endif
32904 char $ac_func ();
32905 /* The GNU C library defines this for functions which it implements
32906     to always fail with ENOSYS.  Some functions are actually named
32907     something starting with __ and the normal name is an alias.  */
32908 #if defined __stub_$ac_func || defined __stub___$ac_func
32909 choke me
32910 #endif
32911
32912 int
32913 main ()
32914 {
32915 return $ac_func ();
32916   ;
32917   return 0;
32918 }
32919 _ACEOF
32920 rm -f conftest.$ac_objext conftest$ac_exeext
32921 if { (ac_try="$ac_link"
32922 case "(($ac_try" in
32923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924   *) ac_try_echo=$ac_try;;
32925 esac
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927   (eval "$ac_link") 2>conftest.er1
32928   ac_status=$?
32929   grep -v '^ *+' conftest.er1 >conftest.err
32930   rm -f conftest.er1
32931   cat conftest.err >&5
32932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933   (exit $ac_status); } &&
32934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32935   { (case "(($ac_try" in
32936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937   *) ac_try_echo=$ac_try;;
32938 esac
32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940   (eval "$ac_try") 2>&5
32941   ac_status=$?
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); }; } &&
32944          { ac_try='test -s conftest$ac_exeext'
32945   { (case "(($ac_try" in
32946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947   *) ac_try_echo=$ac_try;;
32948 esac
32949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950   (eval "$ac_try") 2>&5
32951   ac_status=$?
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); }; }; then
32954   eval "$as_ac_var=yes"
32955 else
32956   echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32958
32959         eval "$as_ac_var=no"
32960 fi
32961
32962 rm -f core conftest.err conftest.$ac_objext \
32963       conftest$ac_exeext conftest.$ac_ext
32964 fi
32965 ac_res=`eval echo '${'$as_ac_var'}'`
32966                { echo "$as_me:$LINENO: result: $ac_res" >&5
32967 echo "${ECHO_T}$ac_res" >&6; }
32968 if test `eval echo '${'$as_ac_var'}'` = yes; then
32969
32970 cat >>confdefs.h <<_ACEOF
32971 #define CRAY_STACKSEG_END $ac_func
32972 _ACEOF
32973
32974     break
32975 fi
32976
32977   done
32978 fi
32979
32980 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32981 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32982 if test "${ac_cv_c_stack_direction+set}" = set; then
32983   echo $ECHO_N "(cached) $ECHO_C" >&6
32984 else
32985   if test "$cross_compiling" = yes; then
32986   ac_cv_c_stack_direction=0
32987 else
32988   cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h.  */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h.  */
32994 $ac_includes_default
32995 int
32996 find_stack_direction ()
32997 {
32998   static char *addr = 0;
32999   auto char dummy;
33000   if (addr == 0)
33001     {
33002       addr = &dummy;
33003       return find_stack_direction ();
33004     }
33005   else
33006     return (&dummy > addr) ? 1 : -1;
33007 }
33008
33009 int
33010 main ()
33011 {
33012   return find_stack_direction () < 0;
33013 }
33014 _ACEOF
33015 rm -f conftest$ac_exeext
33016 if { (ac_try="$ac_link"
33017 case "(($ac_try" in
33018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33019   *) ac_try_echo=$ac_try;;
33020 esac
33021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33022   (eval "$ac_link") 2>&5
33023   ac_status=$?
33024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33026   { (case "(($ac_try" in
33027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028   *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031   (eval "$ac_try") 2>&5
33032   ac_status=$?
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); }; }; then
33035   ac_cv_c_stack_direction=1
33036 else
33037   echo "$as_me: program exited with status $ac_status" >&5
33038 echo "$as_me: failed program was:" >&5
33039 sed 's/^/| /' conftest.$ac_ext >&5
33040
33041 ( exit $ac_status )
33042 ac_cv_c_stack_direction=-1
33043 fi
33044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33045 fi
33046
33047
33048 fi
33049 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33050 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33051
33052 cat >>confdefs.h <<_ACEOF
33053 #define STACK_DIRECTION $ac_cv_c_stack_direction
33054 _ACEOF
33055
33056
33057 fi
33058
33059
33060 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33061 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33062 if test "${ac_cv_func_rand48+set}" = set; then
33063   echo $ECHO_N "(cached) $ECHO_C" >&6
33064 else
33065   ac_ext=cpp
33066 ac_cpp='$CXXCPP $CPPFLAGS'
33067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33070
33071    cat >conftest.$ac_ext <<_ACEOF
33072 /* confdefs.h.  */
33073 _ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h.  */
33077 #include <stdlib.h>
33078 int
33079 main ()
33080 {
33081 srand48(0);lrand48();drand48();
33082   ;
33083   return 0;
33084 }
33085 _ACEOF
33086 rm -f conftest.$ac_objext
33087 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33094   ac_status=$?
33095   grep -v '^ *+' conftest.er1 >conftest.err
33096   rm -f conftest.er1
33097   cat conftest.err >&5
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); } &&
33100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33101   { (case "(($ac_try" in
33102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103   *) ac_try_echo=$ac_try;;
33104 esac
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106   (eval "$ac_try") 2>&5
33107   ac_status=$?
33108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109   (exit $ac_status); }; } &&
33110          { ac_try='test -s conftest.$ac_objext'
33111   { (case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_try") 2>&5
33117   ac_status=$?
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); }; }; then
33120   ac_cv_func_rand48=yes
33121 else
33122   echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33124
33125         ac_cv_func_rand48=no
33126 fi
33127
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33129   ac_ext=c
33130 ac_cpp='$CPP $CPPFLAGS'
33131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33134
33135 fi
33136 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33137 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33138
33139 if test "$ac_cv_func_rand48" = "yes" ; then
33140
33141 cat >>confdefs.h <<\_ACEOF
33142 #define HAVE_RAND48 1
33143 _ACEOF
33144
33145 fi
33146
33147
33148 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33149 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33150 if test "${ac_cv_cxx_namespaces+set}" = set; then
33151   echo $ECHO_N "(cached) $ECHO_C" >&6
33152 else
33153   ac_ext=cpp
33154 ac_cpp='$CXXCPP $CPPFLAGS'
33155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33158
33159  cat >conftest.$ac_ext <<_ACEOF
33160 /* confdefs.h.  */
33161 _ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h.  */
33165 namespace Outer { namespace Inner { int i = 0; }}
33166 int
33167 main ()
33168 {
33169 using namespace Outer::Inner; return i;
33170   ;
33171   return 0;
33172 }
33173 _ACEOF
33174 rm -f conftest.$ac_objext
33175 if { (ac_try="$ac_compile"
33176 case "(($ac_try" in
33177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178   *) ac_try_echo=$ac_try;;
33179 esac
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181   (eval "$ac_compile") 2>conftest.er1
33182   ac_status=$?
33183   grep -v '^ *+' conftest.er1 >conftest.err
33184   rm -f conftest.er1
33185   cat conftest.err >&5
33186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); } &&
33188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33189   { (case "(($ac_try" in
33190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191   *) ac_try_echo=$ac_try;;
33192 esac
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194   (eval "$ac_try") 2>&5
33195   ac_status=$?
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); }; } &&
33198          { ac_try='test -s conftest.$ac_objext'
33199   { (case "(($ac_try" in
33200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33201   *) ac_try_echo=$ac_try;;
33202 esac
33203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204   (eval "$ac_try") 2>&5
33205   ac_status=$?
33206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207   (exit $ac_status); }; }; then
33208   ac_cv_cxx_namespaces=yes
33209 else
33210   echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33212
33213         ac_cv_cxx_namespaces=no
33214 fi
33215
33216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33217  ac_ext=c
33218 ac_cpp='$CPP $CPPFLAGS'
33219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33222
33223
33224 fi
33225 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33226 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33227 if test "$ac_cv_cxx_namespaces" = yes; then
33228
33229 cat >>confdefs.h <<\_ACEOF
33230 #define HAVE_NAMESPACES
33231 _ACEOF
33232
33233 fi
33234
33235 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33236 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33237 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33238   echo $ECHO_N "(cached) $ECHO_C" >&6
33239 else
33240
33241   ac_ext=cpp
33242 ac_cpp='$CXXCPP $CPPFLAGS'
33243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33246
33247   cat >conftest.$ac_ext <<_ACEOF
33248 /* confdefs.h.  */
33249 _ACEOF
33250 cat confdefs.h >>conftest.$ac_ext
33251 cat >>conftest.$ac_ext <<_ACEOF
33252 /* end confdefs.h.  */
33253 #include <iterator>
33254 #ifdef HAVE_NAMESPACES
33255 using namespace std;
33256 #endif
33257 int
33258 main ()
33259 {
33260 iterator<int,int,int> t; return 0;
33261   ;
33262   return 0;
33263 }
33264 _ACEOF
33265 rm -f conftest.$ac_objext
33266 if { (ac_try="$ac_compile"
33267 case "(($ac_try" in
33268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269   *) ac_try_echo=$ac_try;;
33270 esac
33271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272   (eval "$ac_compile") 2>conftest.er1
33273   ac_status=$?
33274   grep -v '^ *+' conftest.er1 >conftest.err
33275   rm -f conftest.er1
33276   cat conftest.err >&5
33277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278   (exit $ac_status); } &&
33279          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33280   { (case "(($ac_try" in
33281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282   *) ac_try_echo=$ac_try;;
33283 esac
33284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285   (eval "$ac_try") 2>&5
33286   ac_status=$?
33287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288   (exit $ac_status); }; } &&
33289          { ac_try='test -s conftest.$ac_objext'
33290   { (case "(($ac_try" in
33291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292   *) ac_try_echo=$ac_try;;
33293 esac
33294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295   (eval "$ac_try") 2>&5
33296   ac_status=$?
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); }; }; then
33299   ac_cv_cxx_have_std_iterator=yes
33300 else
33301   echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304         ac_cv_cxx_have_std_iterator=no
33305 fi
33306
33307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33308   ac_ext=c
33309 ac_cpp='$CPP $CPPFLAGS'
33310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33313
33314
33315 fi
33316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33317 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33318 if test "$ac_cv_cxx_have_std_iterator" = yes
33319 then
33320
33321 cat >>confdefs.h <<\_ACEOF
33322 #define HAVE_STD_ITERATOR 1
33323 _ACEOF
33324
33325 else
33326
33327 cat >>confdefs.h <<\_ACEOF
33328 #define HAVE_STD_ITERATOR 0
33329 _ACEOF
33330
33331 fi
33332
33333 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33334 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33335 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33336   echo $ECHO_N "(cached) $ECHO_C" >&6
33337 else
33338
33339   ac_ext=cpp
33340 ac_cpp='$CXXCPP $CPPFLAGS'
33341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33344
33345   cat >conftest.$ac_ext <<_ACEOF
33346 /* confdefs.h.  */
33347 _ACEOF
33348 cat confdefs.h >>conftest.$ac_ext
33349 cat >>conftest.$ac_ext <<_ACEOF
33350 /* end confdefs.h.  */
33351 #include <iterator>
33352 #ifdef HAVE_NAMESPACES
33353 using namespace std;
33354 #endif
33355 int
33356 main ()
33357 {
33358 bidirectional_iterator<int,int> t; return 0;
33359   ;
33360   return 0;
33361 }
33362 _ACEOF
33363 rm -f conftest.$ac_objext
33364 if { (ac_try="$ac_compile"
33365 case "(($ac_try" in
33366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367   *) ac_try_echo=$ac_try;;
33368 esac
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370   (eval "$ac_compile") 2>conftest.er1
33371   ac_status=$?
33372   grep -v '^ *+' conftest.er1 >conftest.err
33373   rm -f conftest.er1
33374   cat conftest.err >&5
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); } &&
33377          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33378   { (case "(($ac_try" in
33379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380   *) ac_try_echo=$ac_try;;
33381 esac
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383   (eval "$ac_try") 2>&5
33384   ac_status=$?
33385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386   (exit $ac_status); }; } &&
33387          { ac_try='test -s conftest.$ac_objext'
33388   { (case "(($ac_try" in
33389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390   *) ac_try_echo=$ac_try;;
33391 esac
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393   (eval "$ac_try") 2>&5
33394   ac_status=$?
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); }; }; then
33397   ac_cv_cxx_have_bi_iterator=yes
33398 else
33399   echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33401
33402         ac_cv_cxx_have_bi_iterator=no
33403 fi
33404
33405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33406   ac_ext=c
33407 ac_cpp='$CPP $CPPFLAGS'
33408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33411
33412
33413 fi
33414 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33415 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33416 if test "$ac_cv_cxx_have_bi_iterator" = yes
33417 then
33418
33419 cat >>confdefs.h <<\_ACEOF
33420 #define HAVE_BI_ITERATOR 1
33421 _ACEOF
33422
33423 else
33424
33425 cat >>confdefs.h <<\_ACEOF
33426 #define HAVE_BI_ITERATOR 0
33427 _ACEOF
33428
33429 fi
33430
33431 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33432 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33433 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33434   echo $ECHO_N "(cached) $ECHO_C" >&6
33435 else
33436
33437   ac_ext=cpp
33438 ac_cpp='$CXXCPP $CPPFLAGS'
33439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33442
33443   cat >conftest.$ac_ext <<_ACEOF
33444 /* confdefs.h.  */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h.  */
33449 #include <iterator>
33450 #ifdef HAVE_NAMESPACES
33451 using namespace std;
33452 #endif
33453 int
33454 main ()
33455 {
33456 forward_iterator<int,int> t; return 0;
33457   ;
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } &&
33475          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33476   { (case "(($ac_try" in
33477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478   *) ac_try_echo=$ac_try;;
33479 esac
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481   (eval "$ac_try") 2>&5
33482   ac_status=$?
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); }; } &&
33485          { ac_try='test -s conftest.$ac_objext'
33486   { (case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_try") 2>&5
33492   ac_status=$?
33493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494   (exit $ac_status); }; }; then
33495   ac_cv_cxx_have_fwd_iterator=yes
33496 else
33497   echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33499
33500         ac_cv_cxx_have_fwd_iterator=no
33501 fi
33502
33503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504   ac_ext=c
33505 ac_cpp='$CPP $CPPFLAGS'
33506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33509
33510
33511 fi
33512 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33513 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33514 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33515 then
33516
33517 cat >>confdefs.h <<\_ACEOF
33518 #define HAVE_FWD_ITERATOR 1
33519 _ACEOF
33520
33521 else
33522
33523 cat >>confdefs.h <<\_ACEOF
33524 #define HAVE_FWD_ITERATOR 0
33525 _ACEOF
33526
33527 fi
33528
33529
33530 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33531 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33532 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33533   echo $ECHO_N "(cached) $ECHO_C" >&6
33534 else
33535   ac_ext=cpp
33536 ac_cpp='$CXXCPP $CPPFLAGS'
33537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33540
33541    cat >conftest.$ac_ext <<_ACEOF
33542 /* confdefs.h.  */
33543 _ACEOF
33544 cat confdefs.h >>conftest.$ac_ext
33545 cat >>conftest.$ac_ext <<_ACEOF
33546 /* end confdefs.h.  */
33547 #include <math.h>
33548 int
33549 main ()
33550 {
33551 float f; isnan(f);
33552   ;
33553   return 0;
33554 }
33555 _ACEOF
33556 rm -f conftest.$ac_objext
33557 if { (ac_try="$ac_compile"
33558 case "(($ac_try" in
33559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33560   *) ac_try_echo=$ac_try;;
33561 esac
33562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33563   (eval "$ac_compile") 2>conftest.er1
33564   ac_status=$?
33565   grep -v '^ *+' conftest.er1 >conftest.err
33566   rm -f conftest.er1
33567   cat conftest.err >&5
33568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569   (exit $ac_status); } &&
33570          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33571   { (case "(($ac_try" in
33572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573   *) ac_try_echo=$ac_try;;
33574 esac
33575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576   (eval "$ac_try") 2>&5
33577   ac_status=$?
33578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579   (exit $ac_status); }; } &&
33580          { ac_try='test -s conftest.$ac_objext'
33581   { (case "(($ac_try" in
33582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583   *) ac_try_echo=$ac_try;;
33584 esac
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586   (eval "$ac_try") 2>&5
33587   ac_status=$?
33588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589   (exit $ac_status); }; }; then
33590   ac_cv_func_isnan_in_math_h=yes
33591 else
33592   echo "$as_me: failed program was:" >&5
33593 sed 's/^/| /' conftest.$ac_ext >&5
33594
33595         ac_cv_func_isnan_in_math_h=no
33596 fi
33597
33598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33599   ac_ext=c
33600 ac_cpp='$CPP $CPPFLAGS'
33601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33604
33605 fi
33606 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33607 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33608
33609
33610 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33611
33612 cat >>confdefs.h <<\_ACEOF
33613 #define HAVE_ISNAN_IN_MATH_H 1
33614 _ACEOF
33615
33616 fi
33617
33618 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33619 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33620 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33621   echo $ECHO_N "(cached) $ECHO_C" >&6
33622 else
33623   ac_ext=cpp
33624 ac_cpp='$CXXCPP $CPPFLAGS'
33625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33628
33629    cat >conftest.$ac_ext <<_ACEOF
33630 /* confdefs.h.  */
33631 _ACEOF
33632 cat confdefs.h >>conftest.$ac_ext
33633 cat >>conftest.$ac_ext <<_ACEOF
33634 /* end confdefs.h.  */
33635 #include <cmath>
33636 int
33637 main ()
33638 {
33639 float f; isnan(f);
33640   ;
33641   return 0;
33642 }
33643 _ACEOF
33644 rm -f conftest.$ac_objext
33645 if { (ac_try="$ac_compile"
33646 case "(($ac_try" in
33647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33648   *) ac_try_echo=$ac_try;;
33649 esac
33650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33651   (eval "$ac_compile") 2>conftest.er1
33652   ac_status=$?
33653   grep -v '^ *+' conftest.er1 >conftest.err
33654   rm -f conftest.er1
33655   cat conftest.err >&5
33656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657   (exit $ac_status); } &&
33658          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33659   { (case "(($ac_try" in
33660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33661   *) ac_try_echo=$ac_try;;
33662 esac
33663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664   (eval "$ac_try") 2>&5
33665   ac_status=$?
33666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667   (exit $ac_status); }; } &&
33668          { ac_try='test -s conftest.$ac_objext'
33669   { (case "(($ac_try" in
33670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671   *) ac_try_echo=$ac_try;;
33672 esac
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674   (eval "$ac_try") 2>&5
33675   ac_status=$?
33676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677   (exit $ac_status); }; }; then
33678   ac_cv_func_isnan_in_cmath=yes
33679 else
33680   echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33682
33683         ac_cv_func_isnan_in_cmath=no
33684 fi
33685
33686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33687   ac_ext=c
33688 ac_cpp='$CPP $CPPFLAGS'
33689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33692
33693 fi
33694 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33695 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33696
33697 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33698
33699 cat >>confdefs.h <<\_ACEOF
33700 #define HAVE_ISNAN_IN_CMATH 1
33701 _ACEOF
33702
33703 fi
33704
33705 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33706 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33707 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33708   echo $ECHO_N "(cached) $ECHO_C" >&6
33709 else
33710   ac_ext=cpp
33711 ac_cpp='$CXXCPP $CPPFLAGS'
33712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33715
33716    cat >conftest.$ac_ext <<_ACEOF
33717 /* confdefs.h.  */
33718 _ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h.  */
33722 #include <cmath>
33723 int
33724 main ()
33725 {
33726 float f; std::isnan(f);
33727   ;
33728   return 0;
33729 }
33730 _ACEOF
33731 rm -f conftest.$ac_objext
33732 if { (ac_try="$ac_compile"
33733 case "(($ac_try" in
33734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33735   *) ac_try_echo=$ac_try;;
33736 esac
33737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33738   (eval "$ac_compile") 2>conftest.er1
33739   ac_status=$?
33740   grep -v '^ *+' conftest.er1 >conftest.err
33741   rm -f conftest.er1
33742   cat conftest.err >&5
33743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744   (exit $ac_status); } &&
33745          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33746   { (case "(($ac_try" in
33747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748   *) ac_try_echo=$ac_try;;
33749 esac
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751   (eval "$ac_try") 2>&5
33752   ac_status=$?
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); }; } &&
33755          { ac_try='test -s conftest.$ac_objext'
33756   { (case "(($ac_try" in
33757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33758   *) ac_try_echo=$ac_try;;
33759 esac
33760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33761   (eval "$ac_try") 2>&5
33762   ac_status=$?
33763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764   (exit $ac_status); }; }; then
33765   ac_cv_func_std_isnan_in_cmath=yes
33766 else
33767   echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33769
33770         ac_cv_func_std_isnan_in_cmath=no
33771 fi
33772
33773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33774   ac_ext=c
33775 ac_cpp='$CPP $CPPFLAGS'
33776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33779
33780 fi
33781 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33782 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33783
33784 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33785
33786 cat >>confdefs.h <<\_ACEOF
33787 #define HAVE_STD_ISNAN_IN_CMATH 1
33788 _ACEOF
33789
33790 fi
33791
33792
33793 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33794 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33795 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33796   echo $ECHO_N "(cached) $ECHO_C" >&6
33797 else
33798   ac_ext=cpp
33799 ac_cpp='$CXXCPP $CPPFLAGS'
33800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33803
33804    cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h.  */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h.  */
33810 #include <math.h>
33811 int
33812 main ()
33813 {
33814 float f; isinf(f);
33815   ;
33816   return 0;
33817 }
33818 _ACEOF
33819 rm -f conftest.$ac_objext
33820 if { (ac_try="$ac_compile"
33821 case "(($ac_try" in
33822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33823   *) ac_try_echo=$ac_try;;
33824 esac
33825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33826   (eval "$ac_compile") 2>conftest.er1
33827   ac_status=$?
33828   grep -v '^ *+' conftest.er1 >conftest.err
33829   rm -f conftest.er1
33830   cat conftest.err >&5
33831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832   (exit $ac_status); } &&
33833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33834   { (case "(($ac_try" in
33835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836   *) ac_try_echo=$ac_try;;
33837 esac
33838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839   (eval "$ac_try") 2>&5
33840   ac_status=$?
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); }; } &&
33843          { ac_try='test -s conftest.$ac_objext'
33844   { (case "(($ac_try" in
33845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33846   *) ac_try_echo=$ac_try;;
33847 esac
33848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33849   (eval "$ac_try") 2>&5
33850   ac_status=$?
33851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852   (exit $ac_status); }; }; then
33853   ac_cv_func_isinf_in_math_h=yes
33854 else
33855   echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33857
33858         ac_cv_func_isinf_in_math_h=no
33859 fi
33860
33861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33862   ac_ext=c
33863 ac_cpp='$CPP $CPPFLAGS'
33864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33867
33868 fi
33869 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33870 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33871
33872 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33873
33874 cat >>confdefs.h <<\_ACEOF
33875 #define HAVE_ISINF_IN_MATH_H 1
33876 _ACEOF
33877
33878 fi
33879
33880 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33881 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33882 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33883   echo $ECHO_N "(cached) $ECHO_C" >&6
33884 else
33885   ac_ext=cpp
33886 ac_cpp='$CXXCPP $CPPFLAGS'
33887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33890
33891    cat >conftest.$ac_ext <<_ACEOF
33892 /* confdefs.h.  */
33893 _ACEOF
33894 cat confdefs.h >>conftest.$ac_ext
33895 cat >>conftest.$ac_ext <<_ACEOF
33896 /* end confdefs.h.  */
33897 #include <cmath>
33898 int
33899 main ()
33900 {
33901 float f; isinf(f);
33902   ;
33903   return 0;
33904 }
33905 _ACEOF
33906 rm -f conftest.$ac_objext
33907 if { (ac_try="$ac_compile"
33908 case "(($ac_try" in
33909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33910   *) ac_try_echo=$ac_try;;
33911 esac
33912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33913   (eval "$ac_compile") 2>conftest.er1
33914   ac_status=$?
33915   grep -v '^ *+' conftest.er1 >conftest.err
33916   rm -f conftest.er1
33917   cat conftest.err >&5
33918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919   (exit $ac_status); } &&
33920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33921   { (case "(($ac_try" in
33922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33923   *) ac_try_echo=$ac_try;;
33924 esac
33925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33926   (eval "$ac_try") 2>&5
33927   ac_status=$?
33928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929   (exit $ac_status); }; } &&
33930          { ac_try='test -s conftest.$ac_objext'
33931   { (case "(($ac_try" in
33932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33933   *) ac_try_echo=$ac_try;;
33934 esac
33935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33936   (eval "$ac_try") 2>&5
33937   ac_status=$?
33938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939   (exit $ac_status); }; }; then
33940   ac_cv_func_isinf_in_cmath=yes
33941 else
33942   echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33944
33945         ac_cv_func_isinf_in_cmath=no
33946 fi
33947
33948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33949   ac_ext=c
33950 ac_cpp='$CPP $CPPFLAGS'
33951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33954
33955 fi
33956 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33957 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33958
33959 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33960
33961 cat >>confdefs.h <<\_ACEOF
33962 #define HAVE_ISINF_IN_CMATH 1
33963 _ACEOF
33964
33965 fi
33966
33967 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33968 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33969 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33970   echo $ECHO_N "(cached) $ECHO_C" >&6
33971 else
33972   ac_ext=cpp
33973 ac_cpp='$CXXCPP $CPPFLAGS'
33974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33977
33978    cat >conftest.$ac_ext <<_ACEOF
33979 /* confdefs.h.  */
33980 _ACEOF
33981 cat confdefs.h >>conftest.$ac_ext
33982 cat >>conftest.$ac_ext <<_ACEOF
33983 /* end confdefs.h.  */
33984 #include <cmath>
33985 int
33986 main ()
33987 {
33988 float f; std::isinf(f)}
33989   ;
33990   return 0;
33991 }
33992 _ACEOF
33993 rm -f conftest.$ac_objext
33994 if { (ac_try="$ac_compile"
33995 case "(($ac_try" in
33996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997   *) ac_try_echo=$ac_try;;
33998 esac
33999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34000   (eval "$ac_compile") 2>conftest.er1
34001   ac_status=$?
34002   grep -v '^ *+' conftest.er1 >conftest.err
34003   rm -f conftest.er1
34004   cat conftest.err >&5
34005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006   (exit $ac_status); } &&
34007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34008   { (case "(($ac_try" in
34009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010   *) ac_try_echo=$ac_try;;
34011 esac
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013   (eval "$ac_try") 2>&5
34014   ac_status=$?
34015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016   (exit $ac_status); }; } &&
34017          { ac_try='test -s conftest.$ac_objext'
34018   { (case "(($ac_try" in
34019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020   *) ac_try_echo=$ac_try;;
34021 esac
34022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023   (eval "$ac_try") 2>&5
34024   ac_status=$?
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); }; }; then
34027   ac_cv_func_std_isinf_in_cmath=yes
34028 else
34029   echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34031
34032         ac_cv_func_std_isinf_in_cmath=no
34033 fi
34034
34035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34036   ac_ext=c
34037 ac_cpp='$CPP $CPPFLAGS'
34038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34041
34042 fi
34043 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34044 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34045
34046 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34047
34048 cat >>confdefs.h <<\_ACEOF
34049 #define HAVE_STD_ISINF_IN_CMATH 1
34050 _ACEOF
34051
34052 fi
34053
34054 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34055 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34056 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34057   echo $ECHO_N "(cached) $ECHO_C" >&6
34058 else
34059   ac_ext=cpp
34060 ac_cpp='$CXXCPP $CPPFLAGS'
34061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34064
34065    cat >conftest.$ac_ext <<_ACEOF
34066 /* confdefs.h.  */
34067 _ACEOF
34068 cat confdefs.h >>conftest.$ac_ext
34069 cat >>conftest.$ac_ext <<_ACEOF
34070 /* end confdefs.h.  */
34071 #include <ieeefp.h>
34072 int
34073 main ()
34074 {
34075 float f; finite(f);
34076   ;
34077   return 0;
34078 }
34079 _ACEOF
34080 rm -f conftest.$ac_objext
34081 if { (ac_try="$ac_compile"
34082 case "(($ac_try" in
34083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084   *) ac_try_echo=$ac_try;;
34085 esac
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087   (eval "$ac_compile") 2>conftest.er1
34088   ac_status=$?
34089   grep -v '^ *+' conftest.er1 >conftest.err
34090   rm -f conftest.er1
34091   cat conftest.err >&5
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); } &&
34094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34095   { (case "(($ac_try" in
34096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097   *) ac_try_echo=$ac_try;;
34098 esac
34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100   (eval "$ac_try") 2>&5
34101   ac_status=$?
34102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103   (exit $ac_status); }; } &&
34104          { ac_try='test -s conftest.$ac_objext'
34105   { (case "(($ac_try" in
34106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107   *) ac_try_echo=$ac_try;;
34108 esac
34109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110   (eval "$ac_try") 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; }; then
34114   ac_cv_func_finite_in_ieeefp_h=yes
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119         ac_cv_func_finite_in_ieeefp_h=no
34120 fi
34121
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123   ac_ext=c
34124 ac_cpp='$CPP $CPPFLAGS'
34125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34128
34129 fi
34130 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34131 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34132
34133 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34134
34135 cat >>confdefs.h <<\_ACEOF
34136 #define HAVE_FINITE_IN_IEEEFP_H 1
34137 _ACEOF
34138
34139 fi
34140
34141
34142
34143 if test "$llvm_cv_platform_type" = "Unix" ; then
34144
34145
34146 for ac_header in stdlib.h unistd.h
34147 do
34148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34153   echo $ECHO_N "(cached) $ECHO_C" >&6
34154 fi
34155 ac_res=`eval echo '${'$as_ac_Header'}'`
34156                { echo "$as_me:$LINENO: result: $ac_res" >&5
34157 echo "${ECHO_T}$ac_res" >&6; }
34158 else
34159   # Is the header compilable?
34160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34162 cat >conftest.$ac_ext <<_ACEOF
34163 /* confdefs.h.  */
34164 _ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h.  */
34168 $ac_includes_default
34169 #include <$ac_header>
34170 _ACEOF
34171 rm -f conftest.$ac_objext
34172 if { (ac_try="$ac_compile"
34173 case "(($ac_try" in
34174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175   *) ac_try_echo=$ac_try;;
34176 esac
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178   (eval "$ac_compile") 2>conftest.er1
34179   ac_status=$?
34180   grep -v '^ *+' conftest.er1 >conftest.err
34181   rm -f conftest.er1
34182   cat conftest.err >&5
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); } &&
34185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34186   { (case "(($ac_try" in
34187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34188   *) ac_try_echo=$ac_try;;
34189 esac
34190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34191   (eval "$ac_try") 2>&5
34192   ac_status=$?
34193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194   (exit $ac_status); }; } &&
34195          { ac_try='test -s conftest.$ac_objext'
34196   { (case "(($ac_try" in
34197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198   *) ac_try_echo=$ac_try;;
34199 esac
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201   (eval "$ac_try") 2>&5
34202   ac_status=$?
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); }; }; then
34205   ac_header_compiler=yes
34206 else
34207   echo "$as_me: failed program was:" >&5
34208 sed 's/^/| /' conftest.$ac_ext >&5
34209
34210         ac_header_compiler=no
34211 fi
34212
34213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34215 echo "${ECHO_T}$ac_header_compiler" >&6; }
34216
34217 # Is the header present?
34218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34220 cat >conftest.$ac_ext <<_ACEOF
34221 /* confdefs.h.  */
34222 _ACEOF
34223 cat confdefs.h >>conftest.$ac_ext
34224 cat >>conftest.$ac_ext <<_ACEOF
34225 /* end confdefs.h.  */
34226 #include <$ac_header>
34227 _ACEOF
34228 if { (ac_try="$ac_cpp conftest.$ac_ext"
34229 case "(($ac_try" in
34230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231   *) ac_try_echo=$ac_try;;
34232 esac
34233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34235   ac_status=$?
34236   grep -v '^ *+' conftest.er1 >conftest.err
34237   rm -f conftest.er1
34238   cat conftest.err >&5
34239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240   (exit $ac_status); } >/dev/null; then
34241   if test -s conftest.err; then
34242     ac_cpp_err=$ac_c_preproc_warn_flag
34243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34244   else
34245     ac_cpp_err=
34246   fi
34247 else
34248   ac_cpp_err=yes
34249 fi
34250 if test -z "$ac_cpp_err"; then
34251   ac_header_preproc=yes
34252 else
34253   echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34255
34256   ac_header_preproc=no
34257 fi
34258
34259 rm -f conftest.err conftest.$ac_ext
34260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34261 echo "${ECHO_T}$ac_header_preproc" >&6; }
34262
34263 # So?  What about this header?
34264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34265   yes:no: )
34266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34270     ac_header_preproc=yes
34271     ;;
34272   no:yes:* )
34273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34285     ( cat <<\_ASBOX
34286 ## ----------------------------------- ##
34287 ## Report this to llvmbugs@cs.uiuc.edu ##
34288 ## ----------------------------------- ##
34289 _ASBOX
34290      ) | sed "s/^/$as_me: WARNING:     /" >&2
34291     ;;
34292 esac
34293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34296   echo $ECHO_N "(cached) $ECHO_C" >&6
34297 else
34298   eval "$as_ac_Header=\$ac_header_preproc"
34299 fi
34300 ac_res=`eval echo '${'$as_ac_Header'}'`
34301                { echo "$as_me:$LINENO: result: $ac_res" >&5
34302 echo "${ECHO_T}$ac_res" >&6; }
34303
34304 fi
34305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34306   cat >>confdefs.h <<_ACEOF
34307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34308 _ACEOF
34309
34310 fi
34311
34312 done
34313
34314
34315 for ac_func in getpagesize
34316 do
34317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34321   echo $ECHO_N "(cached) $ECHO_C" >&6
34322 else
34323   cat >conftest.$ac_ext <<_ACEOF
34324 /* confdefs.h.  */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h.  */
34329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34331 #define $ac_func innocuous_$ac_func
34332
34333 /* System header to define __stub macros and hopefully few prototypes,
34334     which can conflict with char $ac_func (); below.
34335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34336     <limits.h> exists even on freestanding compilers.  */
34337
34338 #ifdef __STDC__
34339 # include <limits.h>
34340 #else
34341 # include <assert.h>
34342 #endif
34343
34344 #undef $ac_func
34345
34346 /* Override any GCC internal prototype to avoid an error.
34347    Use char because int might match the return type of a GCC
34348    builtin and then its argument prototype would still apply.  */
34349 #ifdef __cplusplus
34350 extern "C"
34351 #endif
34352 char $ac_func ();
34353 /* The GNU C library defines this for functions which it implements
34354     to always fail with ENOSYS.  Some functions are actually named
34355     something starting with __ and the normal name is an alias.  */
34356 #if defined __stub_$ac_func || defined __stub___$ac_func
34357 choke me
34358 #endif
34359
34360 int
34361 main ()
34362 {
34363 return $ac_func ();
34364   ;
34365   return 0;
34366 }
34367 _ACEOF
34368 rm -f conftest.$ac_objext conftest$ac_exeext
34369 if { (ac_try="$ac_link"
34370 case "(($ac_try" in
34371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34372   *) ac_try_echo=$ac_try;;
34373 esac
34374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375   (eval "$ac_link") 2>conftest.er1
34376   ac_status=$?
34377   grep -v '^ *+' conftest.er1 >conftest.err
34378   rm -f conftest.er1
34379   cat conftest.err >&5
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); } &&
34382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34383   { (case "(($ac_try" in
34384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385   *) ac_try_echo=$ac_try;;
34386 esac
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388   (eval "$ac_try") 2>&5
34389   ac_status=$?
34390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391   (exit $ac_status); }; } &&
34392          { ac_try='test -s conftest$ac_exeext'
34393   { (case "(($ac_try" in
34394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34395   *) ac_try_echo=$ac_try;;
34396 esac
34397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34398   (eval "$ac_try") 2>&5
34399   ac_status=$?
34400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); }; }; then
34402   eval "$as_ac_var=yes"
34403 else
34404   echo "$as_me: failed program was:" >&5
34405 sed 's/^/| /' conftest.$ac_ext >&5
34406
34407         eval "$as_ac_var=no"
34408 fi
34409
34410 rm -f core conftest.err conftest.$ac_objext \
34411       conftest$ac_exeext conftest.$ac_ext
34412 fi
34413 ac_res=`eval echo '${'$as_ac_var'}'`
34414                { echo "$as_me:$LINENO: result: $ac_res" >&5
34415 echo "${ECHO_T}$ac_res" >&6; }
34416 if test `eval echo '${'$as_ac_var'}'` = yes; then
34417   cat >>confdefs.h <<_ACEOF
34418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34419 _ACEOF
34420
34421 fi
34422 done
34423
34424 { echo "$as_me:$LINENO: checking for working mmap" >&5
34425 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34426 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34427   echo $ECHO_N "(cached) $ECHO_C" >&6
34428 else
34429   if test "$cross_compiling" = yes; then
34430   ac_cv_func_mmap_fixed_mapped=no
34431 else
34432   cat >conftest.$ac_ext <<_ACEOF
34433 /* confdefs.h.  */
34434 _ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h.  */
34438 $ac_includes_default
34439 /* malloc might have been renamed as rpl_malloc. */
34440 #undef malloc
34441
34442 /* Thanks to Mike Haertel and Jim Avera for this test.
34443    Here is a matrix of mmap possibilities:
34444         mmap private not fixed
34445         mmap private fixed at somewhere currently unmapped
34446         mmap private fixed at somewhere already mapped
34447         mmap shared not fixed
34448         mmap shared fixed at somewhere currently unmapped
34449         mmap shared fixed at somewhere already mapped
34450    For private mappings, we should verify that changes cannot be read()
34451    back from the file, nor mmap's back from the file at a different
34452    address.  (There have been systems where private was not correctly
34453    implemented like the infamous i386 svr4.0, and systems where the
34454    VM page cache was not coherent with the file system buffer cache
34455    like early versions of FreeBSD and possibly contemporary NetBSD.)
34456    For shared mappings, we should conversely verify that changes get
34457    propagated back to all the places they're supposed to be.
34458
34459    Grep wants private fixed already mapped.
34460    The main things grep needs to know about mmap are:
34461    * does it exist and is it safe to write into the mmap'd area
34462    * how to use it (BSD variants)  */
34463
34464 #include <fcntl.h>
34465 #include <sys/mman.h>
34466
34467 #if !STDC_HEADERS && !HAVE_STDLIB_H
34468 char *malloc ();
34469 #endif
34470
34471 /* This mess was copied from the GNU getpagesize.h.  */
34472 #if !HAVE_GETPAGESIZE
34473 /* Assume that all systems that can run configure have sys/param.h.  */
34474 # if !HAVE_SYS_PARAM_H
34475 #  define HAVE_SYS_PARAM_H 1
34476 # endif
34477
34478 # ifdef _SC_PAGESIZE
34479 #  define getpagesize() sysconf(_SC_PAGESIZE)
34480 # else /* no _SC_PAGESIZE */
34481 #  if HAVE_SYS_PARAM_H
34482 #   include <sys/param.h>
34483 #   ifdef EXEC_PAGESIZE
34484 #    define getpagesize() EXEC_PAGESIZE
34485 #   else /* no EXEC_PAGESIZE */
34486 #    ifdef NBPG
34487 #     define getpagesize() NBPG * CLSIZE
34488 #     ifndef CLSIZE
34489 #      define CLSIZE 1
34490 #     endif /* no CLSIZE */
34491 #    else /* no NBPG */
34492 #     ifdef NBPC
34493 #      define getpagesize() NBPC
34494 #     else /* no NBPC */
34495 #      ifdef PAGESIZE
34496 #       define getpagesize() PAGESIZE
34497 #      endif /* PAGESIZE */
34498 #     endif /* no NBPC */
34499 #    endif /* no NBPG */
34500 #   endif /* no EXEC_PAGESIZE */
34501 #  else /* no HAVE_SYS_PARAM_H */
34502 #   define getpagesize() 8192   /* punt totally */
34503 #  endif /* no HAVE_SYS_PARAM_H */
34504 # endif /* no _SC_PAGESIZE */
34505
34506 #endif /* no HAVE_GETPAGESIZE */
34507
34508 int
34509 main ()
34510 {
34511   char *data, *data2, *data3;
34512   int i, pagesize;
34513   int fd;
34514
34515   pagesize = getpagesize ();
34516
34517   /* First, make a file with some known garbage in it. */
34518   data = (char *) malloc (pagesize);
34519   if (!data)
34520     return 1;
34521   for (i = 0; i < pagesize; ++i)
34522     *(data + i) = rand ();
34523   umask (0);
34524   fd = creat ("conftest.mmap", 0600);
34525   if (fd < 0)
34526     return 1;
34527   if (write (fd, data, pagesize) != pagesize)
34528     return 1;
34529   close (fd);
34530
34531   /* Next, try to mmap the file at a fixed address which already has
34532      something else allocated at it.  If we can, also make sure that
34533      we see the same garbage.  */
34534   fd = open ("conftest.mmap", O_RDWR);
34535   if (fd < 0)
34536     return 1;
34537   data2 = (char *) malloc (2 * pagesize);
34538   if (!data2)
34539     return 1;
34540   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34541   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34542                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34543     return 1;
34544   for (i = 0; i < pagesize; ++i)
34545     if (*(data + i) != *(data2 + i))
34546       return 1;
34547
34548   /* Finally, make sure that changes to the mapped area do not
34549      percolate back to the file as seen by read().  (This is a bug on
34550      some variants of i386 svr4.0.)  */
34551   for (i = 0; i < pagesize; ++i)
34552     *(data2 + i) = *(data2 + i) + 1;
34553   data3 = (char *) malloc (pagesize);
34554   if (!data3)
34555     return 1;
34556   if (read (fd, data3, pagesize) != pagesize)
34557     return 1;
34558   for (i = 0; i < pagesize; ++i)
34559     if (*(data + i) != *(data3 + i))
34560       return 1;
34561   close (fd);
34562   return 0;
34563 }
34564 _ACEOF
34565 rm -f conftest$ac_exeext
34566 if { (ac_try="$ac_link"
34567 case "(($ac_try" in
34568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34569   *) ac_try_echo=$ac_try;;
34570 esac
34571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34572   (eval "$ac_link") 2>&5
34573   ac_status=$?
34574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34576   { (case "(($ac_try" in
34577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34578   *) ac_try_echo=$ac_try;;
34579 esac
34580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34581   (eval "$ac_try") 2>&5
34582   ac_status=$?
34583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584   (exit $ac_status); }; }; then
34585   ac_cv_func_mmap_fixed_mapped=yes
34586 else
34587   echo "$as_me: program exited with status $ac_status" >&5
34588 echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.$ac_ext >&5
34590
34591 ( exit $ac_status )
34592 ac_cv_func_mmap_fixed_mapped=no
34593 fi
34594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34595 fi
34596
34597
34598 fi
34599 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34600 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34602
34603 cat >>confdefs.h <<\_ACEOF
34604 #define HAVE_MMAP 1
34605 _ACEOF
34606
34607 fi
34608 rm -f conftest.mmap
34609
34610   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34611 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34612 if test "${ac_cv_func_mmap_file+set}" = set; then
34613   echo $ECHO_N "(cached) $ECHO_C" >&6
34614 else
34615    ac_ext=c
34616 ac_cpp='$CPP $CPPFLAGS'
34617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34620
34621   if test "$cross_compiling" = yes; then
34622   ac_cv_func_mmap_file=no
34623 else
34624   cat >conftest.$ac_ext <<_ACEOF
34625
34626     /* confdefs.h.  */
34627 _ACEOF
34628 cat confdefs.h >>conftest.$ac_ext
34629 cat >>conftest.$ac_ext <<_ACEOF
34630 /* end confdefs.h.  */
34631
34632 #include <sys/types.h>
34633 #include <sys/mman.h>
34634 #include <fcntl.h>
34635
34636 int
34637 main ()
34638 {
34639
34640   int fd;
34641   fd = creat ("foo",0777);
34642   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34643   unlink ("foo");
34644   return (fd != (int) MAP_FAILED);
34645   ;
34646   return 0;
34647 }
34648 _ACEOF
34649 rm -f conftest$ac_exeext
34650 if { (ac_try="$ac_link"
34651 case "(($ac_try" in
34652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34653   *) ac_try_echo=$ac_try;;
34654 esac
34655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34656   (eval "$ac_link") 2>&5
34657   ac_status=$?
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34660   { (case "(($ac_try" in
34661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662   *) ac_try_echo=$ac_try;;
34663 esac
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665   (eval "$ac_try") 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; }; then
34669   ac_cv_func_mmap_file=yes
34670 else
34671   echo "$as_me: program exited with status $ac_status" >&5
34672 echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34674
34675 ( exit $ac_status )
34676 ac_cv_func_mmap_file=no
34677 fi
34678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34679 fi
34680
34681
34682   ac_ext=c
34683 ac_cpp='$CPP $CPPFLAGS'
34684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34687
34688
34689 fi
34690 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34691 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34692 if test "$ac_cv_func_mmap_file" = yes; then
34693
34694 cat >>confdefs.h <<\_ACEOF
34695 #define HAVE_MMAP_FILE
34696 _ACEOF
34697
34698    MMAP_FILE=yes
34699
34700 fi
34701
34702   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34703 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34704 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34705   echo $ECHO_N "(cached) $ECHO_C" >&6
34706 else
34707   if test "$llvm_cv_os_type" = "Interix" ; then
34708    ac_cv_need_dev_zero_for_mmap=yes
34709  else
34710    ac_cv_need_dev_zero_for_mmap=no
34711  fi
34712
34713 fi
34714 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34715 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34716 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34717
34718 cat >>confdefs.h <<\_ACEOF
34719 #define NEED_DEV_ZERO_FOR_MMAP 1
34720 _ACEOF
34721
34722 fi
34723
34724   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34725   then
34726     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34727 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34728   fi
34729   if test "$ac_cv_func_mmap_file" = "no"
34730   then
34731     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34732 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34733   fi
34734 fi
34735
34736 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34737 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34738 cat >conftest.$ac_ext <<_ACEOF
34739 /* confdefs.h.  */
34740 _ACEOF
34741 cat confdefs.h >>conftest.$ac_ext
34742 cat >>conftest.$ac_ext <<_ACEOF
34743 /* end confdefs.h.  */
34744 int main() {
34745         volatile unsigned long val = 1;
34746         __sync_synchronize();
34747         __sync_val_compare_and_swap(&val, 1, 0);
34748         __sync_add_and_fetch(&val, 1);
34749         __sync_sub_and_fetch(&val, 1);
34750         return 0;
34751       }
34752
34753 _ACEOF
34754 rm -f conftest.$ac_objext conftest$ac_exeext
34755 if { (ac_try="$ac_link"
34756 case "(($ac_try" in
34757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34758   *) ac_try_echo=$ac_try;;
34759 esac
34760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34761   (eval "$ac_link") 2>conftest.er1
34762   ac_status=$?
34763   grep -v '^ *+' conftest.er1 >conftest.err
34764   rm -f conftest.er1
34765   cat conftest.err >&5
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); } &&
34768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34769   { (case "(($ac_try" in
34770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34771   *) ac_try_echo=$ac_try;;
34772 esac
34773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34774   (eval "$ac_try") 2>&5
34775   ac_status=$?
34776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777   (exit $ac_status); }; } &&
34778          { ac_try='test -s conftest$ac_exeext'
34779   { (case "(($ac_try" in
34780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781   *) ac_try_echo=$ac_try;;
34782 esac
34783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34784   (eval "$ac_try") 2>&5
34785   ac_status=$?
34786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787   (exit $ac_status); }; }; then
34788   { echo "$as_me:$LINENO: result: yes" >&5
34789 echo "${ECHO_T}yes" >&6; }
34790
34791 cat >>confdefs.h <<\_ACEOF
34792 #define LLVM_MULTITHREADED 1
34793 _ACEOF
34794
34795 else
34796   echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34798
34799         { echo "$as_me:$LINENO: result: no" >&5
34800 echo "${ECHO_T}no" >&6; }
34801
34802 cat >>confdefs.h <<\_ACEOF
34803 #define LLVM_MULTITHREADED 0
34804 _ACEOF
34805
34806   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34807 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34808 fi
34809
34810 rm -f core conftest.err conftest.$ac_objext \
34811       conftest$ac_exeext conftest.$ac_ext
34812
34813
34814
34815
34816 for ac_func in __dso_handle
34817 do
34818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34822   echo $ECHO_N "(cached) $ECHO_C" >&6
34823 else
34824   cat >conftest.$ac_ext <<_ACEOF
34825 /* confdefs.h.  */
34826 _ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h.  */
34830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34832 #define $ac_func innocuous_$ac_func
34833
34834 /* System header to define __stub macros and hopefully few prototypes,
34835     which can conflict with char $ac_func (); below.
34836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34837     <limits.h> exists even on freestanding compilers.  */
34838
34839 #ifdef __STDC__
34840 # include <limits.h>
34841 #else
34842 # include <assert.h>
34843 #endif
34844
34845 #undef $ac_func
34846
34847 /* Override any GCC internal prototype to avoid an error.
34848    Use char because int might match the return type of a GCC
34849    builtin and then its argument prototype would still apply.  */
34850 #ifdef __cplusplus
34851 extern "C"
34852 #endif
34853 char $ac_func ();
34854 /* The GNU C library defines this for functions which it implements
34855     to always fail with ENOSYS.  Some functions are actually named
34856     something starting with __ and the normal name is an alias.  */
34857 #if defined __stub_$ac_func || defined __stub___$ac_func
34858 choke me
34859 #endif
34860
34861 int
34862 main ()
34863 {
34864 return $ac_func ();
34865   ;
34866   return 0;
34867 }
34868 _ACEOF
34869 rm -f conftest.$ac_objext conftest$ac_exeext
34870 if { (ac_try="$ac_link"
34871 case "(($ac_try" in
34872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873   *) ac_try_echo=$ac_try;;
34874 esac
34875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34876   (eval "$ac_link") 2>conftest.er1
34877   ac_status=$?
34878   grep -v '^ *+' conftest.er1 >conftest.err
34879   rm -f conftest.er1
34880   cat conftest.err >&5
34881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882   (exit $ac_status); } &&
34883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34884   { (case "(($ac_try" in
34885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886   *) ac_try_echo=$ac_try;;
34887 esac
34888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889   (eval "$ac_try") 2>&5
34890   ac_status=$?
34891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892   (exit $ac_status); }; } &&
34893          { ac_try='test -s conftest$ac_exeext'
34894   { (case "(($ac_try" in
34895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34896   *) ac_try_echo=$ac_try;;
34897 esac
34898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34899   (eval "$ac_try") 2>&5
34900   ac_status=$?
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); }; }; then
34903   eval "$as_ac_var=yes"
34904 else
34905   echo "$as_me: failed program was:" >&5
34906 sed 's/^/| /' conftest.$ac_ext >&5
34907
34908         eval "$as_ac_var=no"
34909 fi
34910
34911 rm -f core conftest.err conftest.$ac_objext \
34912       conftest$ac_exeext conftest.$ac_ext
34913 fi
34914 ac_res=`eval echo '${'$as_ac_var'}'`
34915                { echo "$as_me:$LINENO: result: $ac_res" >&5
34916 echo "${ECHO_T}$ac_res" >&6; }
34917 if test `eval echo '${'$as_ac_var'}'` = yes; then
34918   cat >>confdefs.h <<_ACEOF
34919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34920 _ACEOF
34921
34922 fi
34923 done
34924
34925
34926 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34927 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34928 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34929   echo $ECHO_N "(cached) $ECHO_C" >&6
34930 else
34931   llvm_cv_llvmgcc_sanity="no"
34932 if test -x "$LLVMGCC" ; then
34933   cp /dev/null conftest.c
34934   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34935       grep 'target datalayout =' > /dev/null 2>&1
34936   if test $? -eq 0 ; then
34937     llvm_cv_llvmgcc_sanity="yes"
34938   fi
34939   rm conftest.c
34940 fi
34941 fi
34942 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34943 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34944
34945 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34946   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34947 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34948   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34949   LLVMCC1=$llvmcc1path
34950
34951   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34952   LLVMCC1PLUS=$llvmcc1pluspath
34953
34954   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34955   LLVMGCCDIR=$llvmgccdir
34956
34957   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34958   LLVMGCCLIBEXEC=$llvmgcclibexec
34959
34960   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34961   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34962   LLVMGCC_VERSION=$llvmgccversion
34963
34964   LLVMGCC_MAJVERS=$llvmgccmajvers
34965
34966   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34967   LLVMGCC_LANGS=$llvmgcclangs
34968
34969   { echo "$as_me:$LINENO: result: ok" >&5
34970 echo "${ECHO_T}ok" >&6; }
34971 fi
34972
34973 SHLIBEXT=$libltdl_cv_shlibext
34974
34975
34976 # Translate the various configuration directories and other basic
34977 # information into substitutions that will end up in Makefile.config.in
34978 # that these configured values can be used by the makefiles
34979 if test "${prefix}" = "NONE" ; then
34980   prefix="/usr/local"
34981 fi
34982 eval LLVM_PREFIX="${prefix}";
34983 eval LLVM_BINDIR="${prefix}/bin";
34984 eval LLVM_LIBDIR="${prefix}/lib";
34985 eval LLVM_DATADIR="${prefix}/share/llvm";
34986 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34987 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34988 eval LLVM_INCLUDEDIR="${prefix}/include";
34989 eval LLVM_INFODIR="${prefix}/info";
34990 eval LLVM_MANDIR="${prefix}/man";
34991 LLVM_CONFIGTIME=`date`
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003 # Place the various directores into the config.h file as #defines so that we
35004 # can know about the installation paths within LLVM.
35005
35006 cat >>confdefs.h <<_ACEOF
35007 #define LLVM_PREFIX "$LLVM_PREFIX"
35008 _ACEOF
35009
35010
35011 cat >>confdefs.h <<_ACEOF
35012 #define LLVM_BINDIR "$LLVM_BINDIR"
35013 _ACEOF
35014
35015
35016 cat >>confdefs.h <<_ACEOF
35017 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35018 _ACEOF
35019
35020
35021 cat >>confdefs.h <<_ACEOF
35022 #define LLVM_DATADIR "$LLVM_DATADIR"
35023 _ACEOF
35024
35025
35026 cat >>confdefs.h <<_ACEOF
35027 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35028 _ACEOF
35029
35030
35031 cat >>confdefs.h <<_ACEOF
35032 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35033 _ACEOF
35034
35035
35036 cat >>confdefs.h <<_ACEOF
35037 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35038 _ACEOF
35039
35040
35041 cat >>confdefs.h <<_ACEOF
35042 #define LLVM_INFODIR "$LLVM_INFODIR"
35043 _ACEOF
35044
35045
35046 cat >>confdefs.h <<_ACEOF
35047 #define LLVM_MANDIR "$LLVM_MANDIR"
35048 _ACEOF
35049
35050
35051 cat >>confdefs.h <<_ACEOF
35052 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35053 _ACEOF
35054
35055
35056 cat >>confdefs.h <<_ACEOF
35057 #define LLVM_HOSTTRIPLE "$host"
35058 _ACEOF
35059
35060
35061 # Determine which bindings to build.
35062 if test "$BINDINGS_TO_BUILD" = auto ; then
35063   BINDINGS_TO_BUILD=""
35064   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35065     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35066   fi
35067 fi
35068 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35069
35070
35071 # This isn't really configurey, but it avoids having to repeat the list in
35072 # other files.
35073 ALL_BINDINGS=ocaml
35074
35075
35076 # Do any work necessary to ensure that bindings have what they need.
35077 binding_prereqs_failed=0
35078 for a_binding in $BINDINGS_TO_BUILD ; do
35079   case "$a_binding" in
35080   ocaml)
35081     if test "x$OCAMLC" = x ; then
35082       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35083 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35084       binding_prereqs_failed=1
35085     fi
35086     if test "x$OCAMLDEP" = x ; then
35087       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35089       binding_prereqs_failed=1
35090     fi
35091     if test "x$OCAMLOPT" = x ; then
35092       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35093 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35094           fi
35095     if test "x$with_ocaml_libdir" != xauto ; then
35096       OCAML_LIBDIR=$with_ocaml_libdir
35097
35098     else
35099       ocaml_stdlib="`"$OCAMLC" -where`"
35100       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35101       then
35102         # ocaml stdlib is beneath our prefix; use stdlib
35103         OCAML_LIBDIR=$ocaml_stdlib
35104
35105       else
35106         # ocaml stdlib is outside our prefix; use libdir/ocaml
35107         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35108
35109       fi
35110     fi
35111     ;;
35112   esac
35113 done
35114 if test "$binding_prereqs_failed" = 1 ; then
35115   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35116 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35117    { (exit 1); exit 1; }; }
35118 fi
35119
35120 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35121 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35122 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35123   echo $ECHO_N "(cached) $ECHO_C" >&6
35124 else
35125    ac_ext=cpp
35126 ac_cpp='$CXXCPP $CPPFLAGS'
35127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35130
35131   oldcxxflags="$CXXFLAGS"
35132   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35133   cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h.  */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h.  */
35139
35140 int
35141 main ()
35142 {
35143
35144   ;
35145   return 0;
35146 }
35147 _ACEOF
35148 rm -f conftest.$ac_objext
35149 if { (ac_try="$ac_compile"
35150 case "(($ac_try" in
35151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152   *) ac_try_echo=$ac_try;;
35153 esac
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155   (eval "$ac_compile") 2>conftest.er1
35156   ac_status=$?
35157   grep -v '^ *+' conftest.er1 >conftest.err
35158   rm -f conftest.er1
35159   cat conftest.err >&5
35160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161   (exit $ac_status); } &&
35162          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35163   { (case "(($ac_try" in
35164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165   *) ac_try_echo=$ac_try;;
35166 esac
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168   (eval "$ac_try") 2>&5
35169   ac_status=$?
35170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); }; } &&
35172          { ac_try='test -s conftest.$ac_objext'
35173   { (case "(($ac_try" in
35174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175   *) ac_try_echo=$ac_try;;
35176 esac
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178   (eval "$ac_try") 2>&5
35179   ac_status=$?
35180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181   (exit $ac_status); }; }; then
35182   llvm_cv_cxx_visibility_inlines_hidden=yes
35183 else
35184   echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35186
35187         llvm_cv_cxx_visibility_inlines_hidden=no
35188 fi
35189
35190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35191   CXXFLAGS="$oldcxxflags"
35192   ac_ext=c
35193 ac_cpp='$CPP $CPPFLAGS'
35194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35197
35198
35199 fi
35200 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35201 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35202 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35203   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35204
35205 else
35206   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35207
35208 fi
35209
35210
35211 if test "$llvm_cv_link_use_r" = "yes" ; then
35212   RPATH="-Wl,-R"
35213 else
35214   RPATH="-Wl,-rpath"
35215 fi
35216
35217
35218 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35219   RDYNAMIC="-Wl,-export-dynamic"
35220 else
35221   RDYNAMIC=""
35222 fi
35223
35224
35225
35226 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35227
35228 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35229
35230 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35231
35232 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35233
35234 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35235
35236
35237 ac_config_files="$ac_config_files Makefile.config"
35238
35239
35240 ac_config_files="$ac_config_files llvm.spec"
35241
35242
35243 ac_config_files="$ac_config_files docs/doxygen.cfg"
35244
35245
35246 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35247
35248
35249 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35250
35251
35252 ac_config_commands="$ac_config_commands setup"
35253
35254 ac_config_commands="$ac_config_commands Makefile"
35255
35256
35257 ac_config_commands="$ac_config_commands Makefile.common"
35258
35259
35260 ac_config_commands="$ac_config_commands examples/Makefile"
35261
35262
35263 ac_config_commands="$ac_config_commands lib/Makefile"
35264
35265
35266 ac_config_commands="$ac_config_commands runtime/Makefile"
35267
35268
35269 ac_config_commands="$ac_config_commands test/Makefile"
35270
35271
35272 ac_config_commands="$ac_config_commands test/Makefile.tests"
35273
35274
35275 ac_config_commands="$ac_config_commands unittests/Makefile"
35276
35277
35278 ac_config_commands="$ac_config_commands tools/Makefile"
35279
35280
35281 ac_config_commands="$ac_config_commands utils/Makefile"
35282
35283
35284 ac_config_commands="$ac_config_commands projects/Makefile"
35285
35286
35287 ac_config_commands="$ac_config_commands bindings/Makefile"
35288
35289
35290 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35291
35292
35293
35294 cat >confcache <<\_ACEOF
35295 # This file is a shell script that caches the results of configure
35296 # tests run on this system so they can be shared between configure
35297 # scripts and configure runs, see configure's option --config-cache.
35298 # It is not useful on other systems.  If it contains results you don't
35299 # want to keep, you may remove or edit it.
35300 #
35301 # config.status only pays attention to the cache file if you give it
35302 # the --recheck option to rerun configure.
35303 #
35304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35306 # following values.
35307
35308 _ACEOF
35309
35310 # The following way of writing the cache mishandles newlines in values,
35311 # but we know of no workaround that is simple, portable, and efficient.
35312 # So, we kill variables containing newlines.
35313 # Ultrix sh set writes to stderr and can't be redirected directly,
35314 # and sets the high bit in the cache file unless we assign to the vars.
35315 (
35316   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35317     eval ac_val=\$$ac_var
35318     case $ac_val in #(
35319     *${as_nl}*)
35320       case $ac_var in #(
35321       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35322 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35323       esac
35324       case $ac_var in #(
35325       _ | IFS | as_nl) ;; #(
35326       *) $as_unset $ac_var ;;
35327       esac ;;
35328     esac
35329   done
35330
35331   (set) 2>&1 |
35332     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35333     *${as_nl}ac_space=\ *)
35334       # `set' does not quote correctly, so add quotes (double-quote
35335       # substitution turns \\\\ into \\, and sed turns \\ into \).
35336       sed -n \
35337         "s/'/'\\\\''/g;
35338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35339       ;; #(
35340     *)
35341       # `set' quotes correctly as required by POSIX, so do not add quotes.
35342       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35343       ;;
35344     esac |
35345     sort
35346 ) |
35347   sed '
35348      /^ac_cv_env_/b end
35349      t clear
35350      :clear
35351      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35352      t end
35353      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35354      :end' >>confcache
35355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35356   if test -w "$cache_file"; then
35357     test "x$cache_file" != "x/dev/null" &&
35358       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35359 echo "$as_me: updating cache $cache_file" >&6;}
35360     cat confcache >$cache_file
35361   else
35362     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35363 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35364   fi
35365 fi
35366 rm -f confcache
35367
35368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35369 # Let make expand exec_prefix.
35370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35371
35372 DEFS=-DHAVE_CONFIG_H
35373
35374 ac_libobjs=
35375 ac_ltlibobjs=
35376 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35377   # 1. Remove the extension, and $U if already installed.
35378   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35379   ac_i=`echo "$ac_i" | sed "$ac_script"`
35380   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35381   #    will be set to the directory where LIBOBJS objects are built.
35382   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35383   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35384 done
35385 LIBOBJS=$ac_libobjs
35386
35387 LTLIBOBJS=$ac_ltlibobjs
35388
35389
35390 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35391   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35392 Usually this means the macro was only invoked conditionally." >&5
35393 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35394 Usually this means the macro was only invoked conditionally." >&2;}
35395    { (exit 1); exit 1; }; }
35396 fi
35397 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35398   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35399 Usually this means the macro was only invoked conditionally." >&5
35400 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35401 Usually this means the macro was only invoked conditionally." >&2;}
35402    { (exit 1); exit 1; }; }
35403 fi
35404
35405 : ${CONFIG_STATUS=./config.status}
35406 ac_clean_files_save=$ac_clean_files
35407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35410 cat >$CONFIG_STATUS <<_ACEOF
35411 #! $SHELL
35412 # Generated by $as_me.
35413 # Run this file to recreate the current configuration.
35414 # Compiler output produced by configure, useful for debugging
35415 # configure, is in config.log if it exists.
35416
35417 debug=false
35418 ac_cs_recheck=false
35419 ac_cs_silent=false
35420 SHELL=\${CONFIG_SHELL-$SHELL}
35421 _ACEOF
35422
35423 cat >>$CONFIG_STATUS <<\_ACEOF
35424 ## --------------------- ##
35425 ## M4sh Initialization.  ##
35426 ## --------------------- ##
35427
35428 # Be Bourne compatible
35429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35430   emulate sh
35431   NULLCMD=:
35432   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35433   # is contrary to our usage.  Disable this feature.
35434   alias -g '${1+"$@"}'='"$@"'
35435   setopt NO_GLOB_SUBST
35436 else
35437   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35438 fi
35439 BIN_SH=xpg4; export BIN_SH # for Tru64
35440 DUALCASE=1; export DUALCASE # for MKS sh
35441
35442
35443 # PATH needs CR
35444 # Avoid depending upon Character Ranges.
35445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35448 as_cr_digits='0123456789'
35449 as_cr_alnum=$as_cr_Letters$as_cr_digits
35450
35451 # The user is always right.
35452 if test "${PATH_SEPARATOR+set}" != set; then
35453   echo "#! /bin/sh" >conf$$.sh
35454   echo  "exit 0"   >>conf$$.sh
35455   chmod +x conf$$.sh
35456   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35457     PATH_SEPARATOR=';'
35458   else
35459     PATH_SEPARATOR=:
35460   fi
35461   rm -f conf$$.sh
35462 fi
35463
35464 # Support unset when possible.
35465 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35466   as_unset=unset
35467 else
35468   as_unset=false
35469 fi
35470
35471
35472 # IFS
35473 # We need space, tab and new line, in precisely that order.  Quoting is
35474 # there to prevent editors from complaining about space-tab.
35475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35476 # splitting by setting IFS to empty value.)
35477 as_nl='
35478 '
35479 IFS=" ""        $as_nl"
35480
35481 # Find who we are.  Look in the path if we contain no directory separator.
35482 case $0 in
35483   *[\\/]* ) as_myself=$0 ;;
35484   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35485 for as_dir in $PATH
35486 do
35487   IFS=$as_save_IFS
35488   test -z "$as_dir" && as_dir=.
35489   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35490 done
35491 IFS=$as_save_IFS
35492
35493      ;;
35494 esac
35495 # We did not find ourselves, most probably we were run as `sh COMMAND'
35496 # in which case we are not to be found in the path.
35497 if test "x$as_myself" = x; then
35498   as_myself=$0
35499 fi
35500 if test ! -f "$as_myself"; then
35501   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35502   { (exit 1); exit 1; }
35503 fi
35504
35505 # Work around bugs in pre-3.0 UWIN ksh.
35506 for as_var in ENV MAIL MAILPATH
35507 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35508 done
35509 PS1='$ '
35510 PS2='> '
35511 PS4='+ '
35512
35513 # NLS nuisances.
35514 for as_var in \
35515   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35516   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35517   LC_TELEPHONE LC_TIME
35518 do
35519   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35520     eval $as_var=C; export $as_var
35521   else
35522     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35523   fi
35524 done
35525
35526 # Required to use basename.
35527 if expr a : '\(a\)' >/dev/null 2>&1 &&
35528    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35529   as_expr=expr
35530 else
35531   as_expr=false
35532 fi
35533
35534 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35535   as_basename=basename
35536 else
35537   as_basename=false
35538 fi
35539
35540
35541 # Name of the executable.
35542 as_me=`$as_basename -- "$0" ||
35543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35544          X"$0" : 'X\(//\)$' \| \
35545          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35546 echo X/"$0" |
35547     sed '/^.*\/\([^/][^/]*\)\/*$/{
35548             s//\1/
35549             q
35550           }
35551           /^X\/\(\/\/\)$/{
35552             s//\1/
35553             q
35554           }
35555           /^X\/\(\/\).*/{
35556             s//\1/
35557             q
35558           }
35559           s/.*/./; q'`
35560
35561 # CDPATH.
35562 $as_unset CDPATH
35563
35564
35565
35566   as_lineno_1=$LINENO
35567   as_lineno_2=$LINENO
35568   test "x$as_lineno_1" != "x$as_lineno_2" &&
35569   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35570
35571   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35572   # uniformly replaced by the line number.  The first 'sed' inserts a
35573   # line-number line after each line using $LINENO; the second 'sed'
35574   # does the real work.  The second script uses 'N' to pair each
35575   # line-number line with the line containing $LINENO, and appends
35576   # trailing '-' during substitution so that $LINENO is not a special
35577   # case at line end.
35578   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35579   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35580   # E. McMahon (1931-1989) for sed's syntax.  :-)
35581   sed -n '
35582     p
35583     /[$]LINENO/=
35584   ' <$as_myself |
35585     sed '
35586       s/[$]LINENO.*/&-/
35587       t lineno
35588       b
35589       :lineno
35590       N
35591       :loop
35592       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35593       t loop
35594       s/-\n.*//
35595     ' >$as_me.lineno &&
35596   chmod +x "$as_me.lineno" ||
35597     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35598    { (exit 1); exit 1; }; }
35599
35600   # Don't try to exec as it changes $[0], causing all sort of problems
35601   # (the dirname of $[0] is not the place where we might find the
35602   # original and so on.  Autoconf is especially sensitive to this).
35603   . "./$as_me.lineno"
35604   # Exit status is that of the last command.
35605   exit
35606 }
35607
35608
35609 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35610   as_dirname=dirname
35611 else
35612   as_dirname=false
35613 fi
35614
35615 ECHO_C= ECHO_N= ECHO_T=
35616 case `echo -n x` in
35617 -n*)
35618   case `echo 'x\c'` in
35619   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35620   *)   ECHO_C='\c';;
35621   esac;;
35622 *)
35623   ECHO_N='-n';;
35624 esac
35625
35626 if expr a : '\(a\)' >/dev/null 2>&1 &&
35627    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35628   as_expr=expr
35629 else
35630   as_expr=false
35631 fi
35632
35633 rm -f conf$$ conf$$.exe conf$$.file
35634 if test -d conf$$.dir; then
35635   rm -f conf$$.dir/conf$$.file
35636 else
35637   rm -f conf$$.dir
35638   mkdir conf$$.dir
35639 fi
35640 echo >conf$$.file
35641 if ln -s conf$$.file conf$$ 2>/dev/null; then
35642   as_ln_s='ln -s'
35643   # ... but there are two gotchas:
35644   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35645   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35646   # In both cases, we have to default to `cp -p'.
35647   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35648     as_ln_s='cp -p'
35649 elif ln conf$$.file conf$$ 2>/dev/null; then
35650   as_ln_s=ln
35651 else
35652   as_ln_s='cp -p'
35653 fi
35654 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35655 rmdir conf$$.dir 2>/dev/null
35656
35657 if mkdir -p . 2>/dev/null; then
35658   as_mkdir_p=:
35659 else
35660   test -d ./-p && rmdir ./-p
35661   as_mkdir_p=false
35662 fi
35663
35664 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35665 # systems may use methods other than mode bits to determine executability.
35666 cat >conf$$.file <<_ASEOF
35667 #! /bin/sh
35668 exit 0
35669 _ASEOF
35670 chmod +x conf$$.file
35671 if test -x conf$$.file >/dev/null 2>&1; then
35672   as_executable_p="test -x"
35673 else
35674   as_executable_p=:
35675 fi
35676 rm -f conf$$.file
35677
35678 # Sed expression to map a string onto a valid CPP name.
35679 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35680
35681 # Sed expression to map a string onto a valid variable name.
35682 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35683
35684
35685 exec 6>&1
35686
35687 # Save the log message, to keep $[0] and so on meaningful, and to
35688 # report actual input values of CONFIG_FILES etc. instead of their
35689 # values after options handling.
35690 ac_log="
35691 This file was extended by llvm $as_me 2.6svn, which was
35692 generated by GNU Autoconf 2.60.  Invocation command line was
35693
35694   CONFIG_FILES    = $CONFIG_FILES
35695   CONFIG_HEADERS  = $CONFIG_HEADERS
35696   CONFIG_LINKS    = $CONFIG_LINKS
35697   CONFIG_COMMANDS = $CONFIG_COMMANDS
35698   $ $0 $@
35699
35700 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35701 "
35702
35703 _ACEOF
35704
35705 cat >>$CONFIG_STATUS <<_ACEOF
35706 # Files that config.status was made for.
35707 config_files="$ac_config_files"
35708 config_headers="$ac_config_headers"
35709 config_commands="$ac_config_commands"
35710
35711 _ACEOF
35712
35713 cat >>$CONFIG_STATUS <<\_ACEOF
35714 ac_cs_usage="\
35715 \`$as_me' instantiates files from templates according to the
35716 current configuration.
35717
35718 Usage: $0 [OPTIONS] [FILE]...
35719
35720   -h, --help       print this help, then exit
35721   -V, --version    print version number, then exit
35722   -q, --quiet      do not print progress messages
35723   -d, --debug      don't remove temporary files
35724       --recheck    update $as_me by reconfiguring in the same conditions
35725   --file=FILE[:TEMPLATE]
35726                    instantiate the configuration file FILE
35727   --header=FILE[:TEMPLATE]
35728                    instantiate the configuration header FILE
35729
35730 Configuration files:
35731 $config_files
35732
35733 Configuration headers:
35734 $config_headers
35735
35736 Configuration commands:
35737 $config_commands
35738
35739 Report bugs to <bug-autoconf@gnu.org>."
35740
35741 _ACEOF
35742 cat >>$CONFIG_STATUS <<_ACEOF
35743 ac_cs_version="\\
35744 llvm config.status 2.6svn
35745 configured by $0, generated by GNU Autoconf 2.60,
35746   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35747
35748 Copyright (C) 2006 Free Software Foundation, Inc.
35749 This config.status script is free software; the Free Software Foundation
35750 gives unlimited permission to copy, distribute and modify it."
35751
35752 ac_pwd='$ac_pwd'
35753 srcdir='$srcdir'
35754 INSTALL='$INSTALL'
35755 _ACEOF
35756
35757 cat >>$CONFIG_STATUS <<\_ACEOF
35758 # If no file are specified by the user, then we need to provide default
35759 # value.  By we need to know if files were specified by the user.
35760 ac_need_defaults=:
35761 while test $# != 0
35762 do
35763   case $1 in
35764   --*=*)
35765     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35766     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35767     ac_shift=:
35768     ;;
35769   *)
35770     ac_option=$1
35771     ac_optarg=$2
35772     ac_shift=shift
35773     ;;
35774   esac
35775
35776   case $ac_option in
35777   # Handling of the options.
35778   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35779     ac_cs_recheck=: ;;
35780   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35781     echo "$ac_cs_version"; exit ;;
35782   --debug | --debu | --deb | --de | --d | -d )
35783     debug=: ;;
35784   --file | --fil | --fi | --f )
35785     $ac_shift
35786     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35787     ac_need_defaults=false;;
35788   --header | --heade | --head | --hea )
35789     $ac_shift
35790     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35791     ac_need_defaults=false;;
35792   --he | --h)
35793     # Conflict between --help and --header
35794     { echo "$as_me: error: ambiguous option: $1
35795 Try \`$0 --help' for more information." >&2
35796    { (exit 1); exit 1; }; };;
35797   --help | --hel | -h )
35798     echo "$ac_cs_usage"; exit ;;
35799   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35800   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35801     ac_cs_silent=: ;;
35802
35803   # This is an error.
35804   -*) { echo "$as_me: error: unrecognized option: $1
35805 Try \`$0 --help' for more information." >&2
35806    { (exit 1); exit 1; }; } ;;
35807
35808   *) ac_config_targets="$ac_config_targets $1"
35809      ac_need_defaults=false ;;
35810
35811   esac
35812   shift
35813 done
35814
35815 ac_configure_extra_args=
35816
35817 if $ac_cs_silent; then
35818   exec 6>/dev/null
35819   ac_configure_extra_args="$ac_configure_extra_args --silent"
35820 fi
35821
35822 _ACEOF
35823 cat >>$CONFIG_STATUS <<_ACEOF
35824 if \$ac_cs_recheck; then
35825   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35826   CONFIG_SHELL=$SHELL
35827   export CONFIG_SHELL
35828   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35829 fi
35830
35831 _ACEOF
35832 cat >>$CONFIG_STATUS <<\_ACEOF
35833 exec 5>>config.log
35834 {
35835   echo
35836   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35837 ## Running $as_me. ##
35838 _ASBOX
35839   echo "$ac_log"
35840 } >&5
35841
35842 _ACEOF
35843 cat >>$CONFIG_STATUS <<_ACEOF
35844 #
35845 # INIT-COMMANDS
35846 #
35847 llvm_src="${srcdir}"
35848
35849 _ACEOF
35850
35851 cat >>$CONFIG_STATUS <<\_ACEOF
35852
35853 # Handling of arguments.
35854 for ac_config_target in $ac_config_targets
35855 do
35856   case $ac_config_target in
35857     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35858     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35859     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35860     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35861     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35862     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35863     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35864     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35865     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35866     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35867     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35868     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35869     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35870     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35871     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35872     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35873     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35874     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35875     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35876     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35877     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35878     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35879     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35880     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35881
35882   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35883 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35884    { (exit 1); exit 1; }; };;
35885   esac
35886 done
35887
35888
35889 # If the user did not use the arguments to specify the items to instantiate,
35890 # then the envvar interface is used.  Set only those that are not.
35891 # We use the long form for the default assignment because of an extremely
35892 # bizarre bug on SunOS 4.1.3.
35893 if $ac_need_defaults; then
35894   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35895   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35896   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35897 fi
35898
35899 # Have a temporary directory for convenience.  Make it in the build tree
35900 # simply because there is no reason against having it here, and in addition,
35901 # creating and moving files from /tmp can sometimes cause problems.
35902 # Hook for its removal unless debugging.
35903 # Note that there is a small window in which the directory will not be cleaned:
35904 # after its creation but before its name has been assigned to `$tmp'.
35905 $debug ||
35906 {
35907   tmp=
35908   trap 'exit_status=$?
35909   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35910 ' 0
35911   trap '{ (exit 1); exit 1; }' 1 2 13 15
35912 }
35913 # Create a (secure) tmp directory for tmp files.
35914
35915 {
35916   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35917   test -n "$tmp" && test -d "$tmp"
35918 }  ||
35919 {
35920   tmp=./conf$$-$RANDOM
35921   (umask 077 && mkdir "$tmp")
35922 } ||
35923 {
35924    echo "$me: cannot create a temporary directory in ." >&2
35925    { (exit 1); exit 1; }
35926 }
35927
35928 #
35929 # Set up the sed scripts for CONFIG_FILES section.
35930 #
35931
35932 # No need to generate the scripts if there are no CONFIG_FILES.
35933 # This happens for instance when ./config.status config.h
35934 if test -n "$CONFIG_FILES"; then
35935
35936 _ACEOF
35937
35938
35939
35940 ac_delim='%!_!# '
35941 for ac_last_try in false false false false false :; do
35942   cat >conf$$subs.sed <<_ACEOF
35943 SHELL!$SHELL$ac_delim
35944 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35945 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35946 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35947 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35948 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35949 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35950 exec_prefix!$exec_prefix$ac_delim
35951 prefix!$prefix$ac_delim
35952 program_transform_name!$program_transform_name$ac_delim
35953 bindir!$bindir$ac_delim
35954 sbindir!$sbindir$ac_delim
35955 libexecdir!$libexecdir$ac_delim
35956 datarootdir!$datarootdir$ac_delim
35957 datadir!$datadir$ac_delim
35958 sysconfdir!$sysconfdir$ac_delim
35959 sharedstatedir!$sharedstatedir$ac_delim
35960 localstatedir!$localstatedir$ac_delim
35961 includedir!$includedir$ac_delim
35962 oldincludedir!$oldincludedir$ac_delim
35963 docdir!$docdir$ac_delim
35964 infodir!$infodir$ac_delim
35965 htmldir!$htmldir$ac_delim
35966 dvidir!$dvidir$ac_delim
35967 pdfdir!$pdfdir$ac_delim
35968 psdir!$psdir$ac_delim
35969 libdir!$libdir$ac_delim
35970 localedir!$localedir$ac_delim
35971 mandir!$mandir$ac_delim
35972 DEFS!$DEFS$ac_delim
35973 ECHO_C!$ECHO_C$ac_delim
35974 ECHO_N!$ECHO_N$ac_delim
35975 ECHO_T!$ECHO_T$ac_delim
35976 LIBS!$LIBS$ac_delim
35977 build_alias!$build_alias$ac_delim
35978 host_alias!$host_alias$ac_delim
35979 target_alias!$target_alias$ac_delim
35980 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35981 subdirs!$subdirs$ac_delim
35982 build!$build$ac_delim
35983 build_cpu!$build_cpu$ac_delim
35984 build_vendor!$build_vendor$ac_delim
35985 build_os!$build_os$ac_delim
35986 host!$host$ac_delim
35987 host_cpu!$host_cpu$ac_delim
35988 host_vendor!$host_vendor$ac_delim
35989 host_os!$host_os$ac_delim
35990 target!$target$ac_delim
35991 target_cpu!$target_cpu$ac_delim
35992 target_vendor!$target_vendor$ac_delim
35993 target_os!$target_os$ac_delim
35994 OS!$OS$ac_delim
35995 LINKALL!$LINKALL$ac_delim
35996 NOLINKALL!$NOLINKALL$ac_delim
35997 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35998 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35999 ARCH!$ARCH$ac_delim
36000 ENDIAN!$ENDIAN$ac_delim
36001 CC!$CC$ac_delim
36002 CFLAGS!$CFLAGS$ac_delim
36003 LDFLAGS!$LDFLAGS$ac_delim
36004 CPPFLAGS!$CPPFLAGS$ac_delim
36005 ac_ct_CC!$ac_ct_CC$ac_delim
36006 EXEEXT!$EXEEXT$ac_delim
36007 OBJEXT!$OBJEXT$ac_delim
36008 CPP!$CPP$ac_delim
36009 GREP!$GREP$ac_delim
36010 EGREP!$EGREP$ac_delim
36011 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36012 BUILD_CC!$BUILD_CC$ac_delim
36013 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36014 BUILD_CXX!$BUILD_CXX$ac_delim
36015 CVSBUILD!$CVSBUILD$ac_delim
36016 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36017 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36018 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36019 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36020 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36021 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36022 JIT!$JIT$ac_delim
36023 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36024 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36025 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36026 ENABLE_PIC!$ENABLE_PIC$ac_delim
36027 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36028 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36029 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36030 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36031 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36032 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36033 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36034 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36035 CXX!$CXX$ac_delim
36036 CXXFLAGS!$CXXFLAGS$ac_delim
36037 ac_ct_CXX!$ac_ct_CXX$ac_delim
36038 NM!$NM$ac_delim
36039 ifGNUmake!$ifGNUmake$ac_delim
36040 _ACEOF
36041
36042   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36043     break
36044   elif $ac_last_try; then
36045     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36046 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36047    { (exit 1); exit 1; }; }
36048   else
36049     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36050   fi
36051 done
36052
36053 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36054 if test -n "$ac_eof"; then
36055   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36056   ac_eof=`expr $ac_eof + 1`
36057 fi
36058
36059 cat >>$CONFIG_STATUS <<_ACEOF
36060 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36062 _ACEOF
36063 sed '
36064 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36065 s/^/s,@/; s/!/@,|#_!!_#|/
36066 :n
36067 t n
36068 s/'"$ac_delim"'$/,g/; t
36069 s/$/\\/; p
36070 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36071 ' >>$CONFIG_STATUS <conf$$subs.sed
36072 rm -f conf$$subs.sed
36073 cat >>$CONFIG_STATUS <<_ACEOF
36074 CEOF$ac_eof
36075 _ACEOF
36076
36077
36078 ac_delim='%!_!# '
36079 for ac_last_try in false false false false false :; do
36080   cat >conf$$subs.sed <<_ACEOF
36081 LN_S!$LN_S$ac_delim
36082 CMP!$CMP$ac_delim
36083 CP!$CP$ac_delim
36084 DATE!$DATE$ac_delim
36085 FIND!$FIND$ac_delim
36086 MKDIR!$MKDIR$ac_delim
36087 MV!$MV$ac_delim
36088 RANLIB!$RANLIB$ac_delim
36089 RM!$RM$ac_delim
36090 SED!$SED$ac_delim
36091 TAR!$TAR$ac_delim
36092 BINPWD!$BINPWD$ac_delim
36093 GRAPHVIZ!$GRAPHVIZ$ac_delim
36094 DOT!$DOT$ac_delim
36095 FDP!$FDP$ac_delim
36096 NEATO!$NEATO$ac_delim
36097 TWOPI!$TWOPI$ac_delim
36098 CIRCO!$CIRCO$ac_delim
36099 GV!$GV$ac_delim
36100 DOTTY!$DOTTY$ac_delim
36101 PERL!$PERL$ac_delim
36102 HAVE_PERL!$HAVE_PERL$ac_delim
36103 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36104 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36105 INSTALL_DATA!$INSTALL_DATA$ac_delim
36106 BZIP2!$BZIP2$ac_delim
36107 DOXYGEN!$DOXYGEN$ac_delim
36108 GROFF!$GROFF$ac_delim
36109 GZIP!$GZIP$ac_delim
36110 POD2HTML!$POD2HTML$ac_delim
36111 POD2MAN!$POD2MAN$ac_delim
36112 RUNTEST!$RUNTEST$ac_delim
36113 TCLSH!$TCLSH$ac_delim
36114 ZIP!$ZIP$ac_delim
36115 OCAMLC!$OCAMLC$ac_delim
36116 OCAMLOPT!$OCAMLOPT$ac_delim
36117 OCAMLDEP!$OCAMLDEP$ac_delim
36118 OCAMLDOC!$OCAMLDOC$ac_delim
36119 GAS!$GAS$ac_delim
36120 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36121 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36122 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36123 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36124 LIBADD_DL!$LIBADD_DL$ac_delim
36125 ECHO!$ECHO$ac_delim
36126 AR!$AR$ac_delim
36127 STRIP!$STRIP$ac_delim
36128 CXXCPP!$CXXCPP$ac_delim
36129 F77!$F77$ac_delim
36130 FFLAGS!$FFLAGS$ac_delim
36131 ac_ct_F77!$ac_ct_F77$ac_delim
36132 LIBTOOL!$LIBTOOL$ac_delim
36133 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36134 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36135 LLVMGCC!$LLVMGCC$ac_delim
36136 LLVMGXX!$LLVMGXX$ac_delim
36137 USE_UDIS86!$USE_UDIS86$ac_delim
36138 USE_OPROFILE!$USE_OPROFILE$ac_delim
36139 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36140 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36141 ALLOCA!$ALLOCA$ac_delim
36142 MMAP_FILE!$MMAP_FILE$ac_delim
36143 LLVMCC1!$LLVMCC1$ac_delim
36144 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36145 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36146 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36147 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36148 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36149 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36150 SHLIBEXT!$SHLIBEXT$ac_delim
36151 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36152 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36153 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36154 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36155 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36156 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36157 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36158 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36159 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36160 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36161 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36162 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36163 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36164 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36165 RPATH!$RPATH$ac_delim
36166 RDYNAMIC!$RDYNAMIC$ac_delim
36167 LIBOBJS!$LIBOBJS$ac_delim
36168 LTLIBOBJS!$LTLIBOBJS$ac_delim
36169 _ACEOF
36170
36171   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
36172     break
36173   elif $ac_last_try; then
36174     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36176    { (exit 1); exit 1; }; }
36177   else
36178     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36179   fi
36180 done
36181
36182 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36183 if test -n "$ac_eof"; then
36184   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36185   ac_eof=`expr $ac_eof + 1`
36186 fi
36187
36188 cat >>$CONFIG_STATUS <<_ACEOF
36189 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36191 _ACEOF
36192 sed '
36193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36194 s/^/s,@/; s/!/@,|#_!!_#|/
36195 :n
36196 t n
36197 s/'"$ac_delim"'$/,g/; t
36198 s/$/\\/; p
36199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36200 ' >>$CONFIG_STATUS <conf$$subs.sed
36201 rm -f conf$$subs.sed
36202 cat >>$CONFIG_STATUS <<_ACEOF
36203 :end
36204 s/|#_!!_#|//g
36205 CEOF$ac_eof
36206 _ACEOF
36207
36208
36209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36211 # trailing colons and then remove the whole line if VPATH becomes empty
36212 # (actually we leave an empty line to preserve line numbers).
36213 if test "x$srcdir" = x.; then
36214   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36215 s/:*\$(srcdir):*/:/
36216 s/:*\${srcdir}:*/:/
36217 s/:*@srcdir@:*/:/
36218 s/^\([^=]*=[     ]*\):*/\1/
36219 s/:*$//
36220 s/^[^=]*=[       ]*$//
36221 }'
36222 fi
36223
36224 cat >>$CONFIG_STATUS <<\_ACEOF
36225 fi # test -n "$CONFIG_FILES"
36226
36227
36228 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36229 do
36230   case $ac_tag in
36231   :[FHLC]) ac_mode=$ac_tag; continue;;
36232   esac
36233   case $ac_mode$ac_tag in
36234   :[FHL]*:*);;
36235   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36236 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36237    { (exit 1); exit 1; }; };;
36238   :[FH]-) ac_tag=-:-;;
36239   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36240   esac
36241   ac_save_IFS=$IFS
36242   IFS=:
36243   set x $ac_tag
36244   IFS=$ac_save_IFS
36245   shift
36246   ac_file=$1
36247   shift
36248
36249   case $ac_mode in
36250   :L) ac_source=$1;;
36251   :[FH])
36252     ac_file_inputs=
36253     for ac_f
36254     do
36255       case $ac_f in
36256       -) ac_f="$tmp/stdin";;
36257       *) # Look for the file first in the build tree, then in the source tree
36258          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36259          # because $ac_f cannot contain `:'.
36260          test -f "$ac_f" ||
36261            case $ac_f in
36262            [\\/$]*) false;;
36263            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36264            esac ||
36265            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36266 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36267    { (exit 1); exit 1; }; };;
36268       esac
36269       ac_file_inputs="$ac_file_inputs $ac_f"
36270     done
36271
36272     # Let's still pretend it is `configure' which instantiates (i.e., don't
36273     # use $as_me), people would be surprised to read:
36274     #    /* config.h.  Generated by config.status.  */
36275     configure_input="Generated from "`IFS=:
36276           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36277     if test x"$ac_file" != x-; then
36278       configure_input="$ac_file.  $configure_input"
36279       { echo "$as_me:$LINENO: creating $ac_file" >&5
36280 echo "$as_me: creating $ac_file" >&6;}
36281     fi
36282
36283     case $ac_tag in
36284     *:-:* | *:-) cat >"$tmp/stdin";;
36285     esac
36286     ;;
36287   esac
36288
36289   ac_dir=`$as_dirname -- "$ac_file" ||
36290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36291          X"$ac_file" : 'X\(//\)[^/]' \| \
36292          X"$ac_file" : 'X\(//\)$' \| \
36293          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36294 echo X"$ac_file" |
36295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36296             s//\1/
36297             q
36298           }
36299           /^X\(\/\/\)[^/].*/{
36300             s//\1/
36301             q
36302           }
36303           /^X\(\/\/\)$/{
36304             s//\1/
36305             q
36306           }
36307           /^X\(\/\).*/{
36308             s//\1/
36309             q
36310           }
36311           s/.*/./; q'`
36312   { as_dir="$ac_dir"
36313   case $as_dir in #(
36314   -*) as_dir=./$as_dir;;
36315   esac
36316   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36317     as_dirs=
36318     while :; do
36319       case $as_dir in #(
36320       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36321       *) as_qdir=$as_dir;;
36322       esac
36323       as_dirs="'$as_qdir' $as_dirs"
36324       as_dir=`$as_dirname -- "$as_dir" ||
36325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36326          X"$as_dir" : 'X\(//\)[^/]' \| \
36327          X"$as_dir" : 'X\(//\)$' \| \
36328          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36329 echo X"$as_dir" |
36330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36331             s//\1/
36332             q
36333           }
36334           /^X\(\/\/\)[^/].*/{
36335             s//\1/
36336             q
36337           }
36338           /^X\(\/\/\)$/{
36339             s//\1/
36340             q
36341           }
36342           /^X\(\/\).*/{
36343             s//\1/
36344             q
36345           }
36346           s/.*/./; q'`
36347       test -d "$as_dir" && break
36348     done
36349     test -z "$as_dirs" || eval "mkdir $as_dirs"
36350   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36351 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36352    { (exit 1); exit 1; }; }; }
36353   ac_builddir=.
36354
36355 case "$ac_dir" in
36356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36357 *)
36358   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36359   # A ".." for each directory in $ac_dir_suffix.
36360   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36361   case $ac_top_builddir_sub in
36362   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36363   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36364   esac ;;
36365 esac
36366 ac_abs_top_builddir=$ac_pwd
36367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36368 # for backward compatibility:
36369 ac_top_builddir=$ac_top_build_prefix
36370
36371 case $srcdir in
36372   .)  # We are building in place.
36373     ac_srcdir=.
36374     ac_top_srcdir=$ac_top_builddir_sub
36375     ac_abs_top_srcdir=$ac_pwd ;;
36376   [\\/]* | ?:[\\/]* )  # Absolute name.
36377     ac_srcdir=$srcdir$ac_dir_suffix;
36378     ac_top_srcdir=$srcdir
36379     ac_abs_top_srcdir=$srcdir ;;
36380   *) # Relative name.
36381     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36382     ac_top_srcdir=$ac_top_build_prefix$srcdir
36383     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36384 esac
36385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36386
36387
36388   case $ac_mode in
36389   :F)
36390   #
36391   # CONFIG_FILE
36392   #
36393
36394   case $INSTALL in
36395   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36396   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36397   esac
36398 _ACEOF
36399
36400 cat >>$CONFIG_STATUS <<\_ACEOF
36401 # If the template does not know about datarootdir, expand it.
36402 # FIXME: This hack should be removed a few years after 2.60.
36403 ac_datarootdir_hack=; ac_datarootdir_seen=
36404
36405 case `sed -n '/datarootdir/ {
36406   p
36407   q
36408 }
36409 /@datadir@/p
36410 /@docdir@/p
36411 /@infodir@/p
36412 /@localedir@/p
36413 /@mandir@/p
36414 ' $ac_file_inputs` in
36415 *datarootdir*) ac_datarootdir_seen=yes;;
36416 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36417   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36418 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36419 _ACEOF
36420 cat >>$CONFIG_STATUS <<_ACEOF
36421   ac_datarootdir_hack='
36422   s&@datadir@&$datadir&g
36423   s&@docdir@&$docdir&g
36424   s&@infodir@&$infodir&g
36425   s&@localedir@&$localedir&g
36426   s&@mandir@&$mandir&g
36427     s&\\\${datarootdir}&$datarootdir&g' ;;
36428 esac
36429 _ACEOF
36430
36431 # Neutralize VPATH when `$srcdir' = `.'.
36432 # Shell code in configure.ac might set extrasub.
36433 # FIXME: do we really want to maintain this feature?
36434 cat >>$CONFIG_STATUS <<_ACEOF
36435   sed "$ac_vpsub
36436 $extrasub
36437 _ACEOF
36438 cat >>$CONFIG_STATUS <<\_ACEOF
36439 :t
36440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36441 s&@configure_input@&$configure_input&;t t
36442 s&@top_builddir@&$ac_top_builddir_sub&;t t
36443 s&@srcdir@&$ac_srcdir&;t t
36444 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36445 s&@top_srcdir@&$ac_top_srcdir&;t t
36446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36447 s&@builddir@&$ac_builddir&;t t
36448 s&@abs_builddir@&$ac_abs_builddir&;t t
36449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36450 s&@INSTALL@&$ac_INSTALL&;t t
36451 $ac_datarootdir_hack
36452 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36453
36454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36455   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36456   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36457   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36458 which seems to be undefined.  Please make sure it is defined." >&5
36459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36460 which seems to be undefined.  Please make sure it is defined." >&2;}
36461
36462   rm -f "$tmp/stdin"
36463   case $ac_file in
36464   -) cat "$tmp/out"; rm -f "$tmp/out";;
36465   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36466   esac
36467  ;;
36468   :H)
36469   #
36470   # CONFIG_HEADER
36471   #
36472 _ACEOF
36473
36474 # Transform confdefs.h into a sed script `conftest.defines', that
36475 # substitutes the proper values into config.h.in to produce config.h.
36476 rm -f conftest.defines conftest.tail
36477 # First, append a space to every undef/define line, to ease matching.
36478 echo 's/$/ /' >conftest.defines
36479 # Then, protect against being on the right side of a sed subst, or in
36480 # an unquoted here document, in config.status.  If some macros were
36481 # called several times there might be several #defines for the same
36482 # symbol, which is useless.  But do not sort them, since the last
36483 # AC_DEFINE must be honored.
36484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36487 # PARAMS is the parameter list in the macro definition--in most cases, it's
36488 # just an empty string.
36489 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36490 ac_dB='\\)[      (].*,\\1define\\2'
36491 ac_dC=' '
36492 ac_dD=' ,'
36493
36494 uniq confdefs.h |
36495   sed -n '
36496         t rset
36497         :rset
36498         s/^[     ]*#[    ]*define[       ][      ]*//
36499         t ok
36500         d
36501         :ok
36502         s/[\\&,]/\\&/g
36503         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36504         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36505   ' >>conftest.defines
36506
36507 # Remove the space that was appended to ease matching.
36508 # Then replace #undef with comments.  This is necessary, for
36509 # example, in the case of _POSIX_SOURCE, which is predefined and required
36510 # on some systems where configure will not decide to define it.
36511 # (The regexp can be short, since the line contains either #define or #undef.)
36512 echo 's/ $//
36513 s,^[     #]*u.*,/* & */,' >>conftest.defines
36514
36515 # Break up conftest.defines:
36516 ac_max_sed_lines=50
36517
36518 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36519 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36520 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36521 # et cetera.
36522 ac_in='$ac_file_inputs'
36523 ac_out='"$tmp/out1"'
36524 ac_nxt='"$tmp/out2"'
36525
36526 while :
36527 do
36528   # Write a here document:
36529     cat >>$CONFIG_STATUS <<_ACEOF
36530     # First, check the format of the line:
36531     cat >"\$tmp/defines.sed" <<\\CEOF
36532 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36533 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36534 b
36535 :def
36536 _ACEOF
36537   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36538   echo 'CEOF
36539     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36540   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36541   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36542   grep . conftest.tail >/dev/null || break
36543   rm -f conftest.defines
36544   mv conftest.tail conftest.defines
36545 done
36546 rm -f conftest.defines conftest.tail
36547
36548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36549 cat >>$CONFIG_STATUS <<\_ACEOF
36550   if test x"$ac_file" != x-; then
36551     echo "/* $configure_input  */" >"$tmp/config.h"
36552     cat "$ac_result" >>"$tmp/config.h"
36553     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36554       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36555 echo "$as_me: $ac_file is unchanged" >&6;}
36556     else
36557       rm -f $ac_file
36558       mv "$tmp/config.h" $ac_file
36559     fi
36560   else
36561     echo "/* $configure_input  */"
36562     cat "$ac_result"
36563   fi
36564   rm -f "$tmp/out12"
36565  ;;
36566
36567   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36568 echo "$as_me: executing $ac_file commands" >&6;}
36569  ;;
36570   esac
36571
36572
36573   case $ac_file$ac_mode in
36574     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36575    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36576     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36577    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36578     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36579    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36580     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36581    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36582     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36583    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36584     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36585    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36586     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36587    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36588     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36589    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36590     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36591    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36592     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36593    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36594     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36596     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36598     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36600
36601   esac
36602 done # for ac_tag
36603
36604
36605 { (exit 0); exit 0; }
36606 _ACEOF
36607 chmod +x $CONFIG_STATUS
36608 ac_clean_files=$ac_clean_files_save
36609
36610
36611 # configure is writing to config.log, and then calls config.status.
36612 # config.status does its own redirection, appending to config.log.
36613 # Unfortunately, on DOS this fails, as config.log is still kept open
36614 # by configure, so config.status won't be able to write to it; its
36615 # output is simply discarded.  So we exec the FD to /dev/null,
36616 # effectively closing config.log, so it can be properly (re)opened and
36617 # appended to by config.status.  When coming back to configure, we
36618 # need to make the FD available again.
36619 if test "$no_create" != yes; then
36620   ac_cs_success=:
36621   ac_config_status_args=
36622   test "$silent" = yes &&
36623     ac_config_status_args="$ac_config_status_args --quiet"
36624   exec 5>/dev/null
36625   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36626   exec 5>>config.log
36627   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36628   # would make configure fail if this is the last instruction.
36629   $ac_cs_success || { (exit 1); exit 1; }
36630 fi
36631
36632 #
36633 # CONFIG_SUBDIRS section.
36634 #
36635 if test "$no_recursion" != yes; then
36636
36637   # Remove --cache-file and --srcdir arguments so they do not pile up.
36638   ac_sub_configure_args=
36639   ac_prev=
36640   eval "set x $ac_configure_args"
36641   shift
36642   for ac_arg
36643   do
36644     if test -n "$ac_prev"; then
36645       ac_prev=
36646       continue
36647     fi
36648     case $ac_arg in
36649     -cache-file | --cache-file | --cache-fil | --cache-fi \
36650     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36651       ac_prev=cache_file ;;
36652     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36653     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36654     | --c=*)
36655       ;;
36656     --config-cache | -C)
36657       ;;
36658     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36659       ac_prev=srcdir ;;
36660     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36661       ;;
36662     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36663       ac_prev=prefix ;;
36664     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36665       ;;
36666     *)
36667       case $ac_arg in
36668       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36669       esac
36670       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36671     esac
36672   done
36673
36674   # Always prepend --prefix to ensure using the same prefix
36675   # in subdir configurations.
36676   ac_arg="--prefix=$prefix"
36677   case $ac_arg in
36678   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36679   esac
36680   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36681
36682   ac_popdir=`pwd`
36683   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36684
36685     # Do not complain, so a configure script can configure whichever
36686     # parts of a large source tree are present.
36687     test -d "$srcdir/$ac_dir" || continue
36688
36689     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36690     echo "$as_me:$LINENO: $ac_msg" >&5
36691     echo "$ac_msg" >&6
36692     { as_dir="$ac_dir"
36693   case $as_dir in #(
36694   -*) as_dir=./$as_dir;;
36695   esac
36696   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36697     as_dirs=
36698     while :; do
36699       case $as_dir in #(
36700       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36701       *) as_qdir=$as_dir;;
36702       esac
36703       as_dirs="'$as_qdir' $as_dirs"
36704       as_dir=`$as_dirname -- "$as_dir" ||
36705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36706          X"$as_dir" : 'X\(//\)[^/]' \| \
36707          X"$as_dir" : 'X\(//\)$' \| \
36708          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36709 echo X"$as_dir" |
36710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36711             s//\1/
36712             q
36713           }
36714           /^X\(\/\/\)[^/].*/{
36715             s//\1/
36716             q
36717           }
36718           /^X\(\/\/\)$/{
36719             s//\1/
36720             q
36721           }
36722           /^X\(\/\).*/{
36723             s//\1/
36724             q
36725           }
36726           s/.*/./; q'`
36727       test -d "$as_dir" && break
36728     done
36729     test -z "$as_dirs" || eval "mkdir $as_dirs"
36730   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36731 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36732    { (exit 1); exit 1; }; }; }
36733     ac_builddir=.
36734
36735 case "$ac_dir" in
36736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36737 *)
36738   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36739   # A ".." for each directory in $ac_dir_suffix.
36740   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36741   case $ac_top_builddir_sub in
36742   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36743   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36744   esac ;;
36745 esac
36746 ac_abs_top_builddir=$ac_pwd
36747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36748 # for backward compatibility:
36749 ac_top_builddir=$ac_top_build_prefix
36750
36751 case $srcdir in
36752   .)  # We are building in place.
36753     ac_srcdir=.
36754     ac_top_srcdir=$ac_top_builddir_sub
36755     ac_abs_top_srcdir=$ac_pwd ;;
36756   [\\/]* | ?:[\\/]* )  # Absolute name.
36757     ac_srcdir=$srcdir$ac_dir_suffix;
36758     ac_top_srcdir=$srcdir
36759     ac_abs_top_srcdir=$srcdir ;;
36760   *) # Relative name.
36761     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36762     ac_top_srcdir=$ac_top_build_prefix$srcdir
36763     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36764 esac
36765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36766
36767
36768     cd "$ac_dir"
36769
36770     # Check for guested configure; otherwise get Cygnus style configure.
36771     if test -f "$ac_srcdir/configure.gnu"; then
36772       ac_sub_configure=$ac_srcdir/configure.gnu
36773     elif test -f "$ac_srcdir/configure"; then
36774       ac_sub_configure=$ac_srcdir/configure
36775     elif test -f "$ac_srcdir/configure.in"; then
36776       # This should be Cygnus configure.
36777       ac_sub_configure=$ac_aux_dir/configure
36778     else
36779       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36780 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36781       ac_sub_configure=
36782     fi
36783
36784     # The recursion is here.
36785     if test -n "$ac_sub_configure"; then
36786       # Make the cache file name correct relative to the subdirectory.
36787       case $cache_file in
36788       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36789       *) # Relative name.
36790         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36791       esac
36792
36793       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36794 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36795       # The eval makes quoting arguments work.
36796       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36797            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36798         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36799 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36800    { (exit 1); exit 1; }; }
36801     fi
36802
36803     cd "$ac_popdir"
36804   done
36805 fi
36806