Introduce new headers whose inclusion forces linking and
[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 CXX
850 CXXFLAGS
851 ac_ct_CXX
852 NM
853 ifGNUmake
854 LN_S
855 CMP
856 CP
857 DATE
858 FIND
859 MKDIR
860 MV
861 RANLIB
862 RM
863 SED
864 TAR
865 BINPWD
866 GRAPHVIZ
867 DOT
868 GV
869 DOTTY
870 PERL
871 HAVE_PERL
872 INSTALL_PROGRAM
873 INSTALL_SCRIPT
874 INSTALL_DATA
875 BZIP2
876 DOXYGEN
877 GROFF
878 GZIP
879 POD2HTML
880 POD2MAN
881 RUNTEST
882 TCLSH
883 ZIP
884 OCAMLC
885 OCAMLOPT
886 OCAMLDEP
887 OCAMLDOC
888 GAS
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCCCOMMAND
903 LLVMGXXCOMMAND
904 LLVMGCC
905 LLVMGXX
906 USE_UDIS86
907 HAVE_PTHREAD
908 HUGE_VAL_SANITY
909 ALLOCA
910 MMAP_FILE
911 LLVMCC1
912 LLVMCC1PLUS
913 LLVMGCCDIR
914 LLVMGCCLIBEXEC
915 LLVMGCC_VERSION
916 LLVMGCC_MAJVERS
917 LLVMGCC_LANGS
918 SHLIBEXT
919 LLVM_PREFIX
920 LLVM_BINDIR
921 LLVM_LIBDIR
922 LLVM_DATADIR
923 LLVM_DOCSDIR
924 LLVM_ETCDIR
925 LLVM_INCLUDEDIR
926 LLVM_INFODIR
927 LLVM_MANDIR
928 LLVM_CONFIGTIME
929 BINDINGS_TO_BUILD
930 ALL_BINDINGS
931 OCAML_LIBDIR
932 ENABLE_VISIBILITY_INLINES_HIDDEN
933 RPATH
934 RDYNAMIC
935 LIBOBJS
936 LTLIBOBJS'
937 ac_subst_files=''
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 CPPFLAGS
945 CPP
946 CXX
947 CXXFLAGS
948 CCC
949 CXXCPP
950 F77
951 FFLAGS'
952 ac_subdirs_all='projects/sample
953 projects/privbracket
954 projects/llvm-stacker
955 projects/llvm-test
956 projects/test-suite
957 projects/llvm-reopt
958 projects/llvm-gcc
959 projects/llvm-java
960 projects/llvm-tv
961 projects/llvm-poolalloc
962 projects/poolalloc
963 projects/llvm-kernel'
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *)    ac_optarg=yes ;;
1025   esac
1026
1027   # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072     eval enable_$ac_feature=no ;;
1073
1074   -docdir | --docdir | --docdi | --doc | --do)
1075     ac_prev=docdir ;;
1076   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077     docdir=$ac_optarg ;;
1078
1079   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080     ac_prev=dvidir ;;
1081   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082     dvidir=$ac_optarg ;;
1083
1084   -enable-* | --enable-*)
1085     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089    { (exit 1); exit 1; }; }
1090     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091     eval enable_$ac_feature=\$ac_optarg ;;
1092
1093   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095   | --exec | --exe | --ex)
1096     ac_prev=exec_prefix ;;
1097   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099   | --exec=* | --exe=* | --ex=*)
1100     exec_prefix=$ac_optarg ;;
1101
1102   -gas | --gas | --ga | --g)
1103     # Obsolete; use --with-gas.
1104     with_gas=yes ;;
1105
1106   -help | --help | --hel | --he | -h)
1107     ac_init_help=long ;;
1108   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109     ac_init_help=recursive ;;
1110   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111     ac_init_help=short ;;
1112
1113   -host | --host | --hos | --ho)
1114     ac_prev=host_alias ;;
1115   -host=* | --host=* | --hos=* | --ho=*)
1116     host_alias=$ac_optarg ;;
1117
1118   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119     ac_prev=htmldir ;;
1120   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121   | --ht=*)
1122     htmldir=$ac_optarg ;;
1123
1124   -includedir | --includedir | --includedi | --included | --include \
1125   | --includ | --inclu | --incl | --inc)
1126     ac_prev=includedir ;;
1127   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128   | --includ=* | --inclu=* | --incl=* | --inc=*)
1129     includedir=$ac_optarg ;;
1130
1131   -infodir | --infodir | --infodi | --infod | --info | --inf)
1132     ac_prev=infodir ;;
1133   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134     infodir=$ac_optarg ;;
1135
1136   -libdir | --libdir | --libdi | --libd)
1137     ac_prev=libdir ;;
1138   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139     libdir=$ac_optarg ;;
1140
1141   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142   | --libexe | --libex | --libe)
1143     ac_prev=libexecdir ;;
1144   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145   | --libexe=* | --libex=* | --libe=*)
1146     libexecdir=$ac_optarg ;;
1147
1148   -localedir | --localedir | --localedi | --localed | --locale)
1149     ac_prev=localedir ;;
1150   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151     localedir=$ac_optarg ;;
1152
1153   -localstatedir | --localstatedir | --localstatedi | --localstated \
1154   | --localstate | --localstat | --localsta | --localst | --locals)
1155     ac_prev=localstatedir ;;
1156   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158     localstatedir=$ac_optarg ;;
1159
1160   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161     ac_prev=mandir ;;
1162   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163     mandir=$ac_optarg ;;
1164
1165   -nfp | --nfp | --nf)
1166     # Obsolete; use --without-fp.
1167     with_fp=no ;;
1168
1169   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170   | --no-cr | --no-c | -n)
1171     no_create=yes ;;
1172
1173   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175     no_recursion=yes ;;
1176
1177   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179   | --oldin | --oldi | --old | --ol | --o)
1180     ac_prev=oldincludedir ;;
1181   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184     oldincludedir=$ac_optarg ;;
1185
1186   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187     ac_prev=prefix ;;
1188   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189     prefix=$ac_optarg ;;
1190
1191   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192   | --program-pre | --program-pr | --program-p)
1193     ac_prev=program_prefix ;;
1194   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196     program_prefix=$ac_optarg ;;
1197
1198   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199   | --program-suf | --program-su | --program-s)
1200     ac_prev=program_suffix ;;
1201   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203     program_suffix=$ac_optarg ;;
1204
1205   -program-transform-name | --program-transform-name \
1206   | --program-transform-nam | --program-transform-na \
1207   | --program-transform-n | --program-transform- \
1208   | --program-transform | --program-transfor \
1209   | --program-transfo | --program-transf \
1210   | --program-trans | --program-tran \
1211   | --progr-tra | --program-tr | --program-t)
1212     ac_prev=program_transform_name ;;
1213   -program-transform-name=* | --program-transform-name=* \
1214   | --program-transform-nam=* | --program-transform-na=* \
1215   | --program-transform-n=* | --program-transform-=* \
1216   | --program-transform=* | --program-transfor=* \
1217   | --program-transfo=* | --program-transf=* \
1218   | --program-trans=* | --program-tran=* \
1219   | --progr-tra=* | --program-tr=* | --program-t=*)
1220     program_transform_name=$ac_optarg ;;
1221
1222   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223     ac_prev=pdfdir ;;
1224   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225     pdfdir=$ac_optarg ;;
1226
1227   -psdir | --psdir | --psdi | --psd | --ps)
1228     ac_prev=psdir ;;
1229   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230     psdir=$ac_optarg ;;
1231
1232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233   | -silent | --silent | --silen | --sile | --sil)
1234     silent=yes ;;
1235
1236   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237     ac_prev=sbindir ;;
1238   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239   | --sbi=* | --sb=*)
1240     sbindir=$ac_optarg ;;
1241
1242   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244   | --sharedst | --shareds | --shared | --share | --shar \
1245   | --sha | --sh)
1246     ac_prev=sharedstatedir ;;
1247   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250   | --sha=* | --sh=*)
1251     sharedstatedir=$ac_optarg ;;
1252
1253   -site | --site | --sit)
1254     ac_prev=site ;;
1255   -site=* | --site=* | --sit=*)
1256     site=$ac_optarg ;;
1257
1258   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259     ac_prev=srcdir ;;
1260   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261     srcdir=$ac_optarg ;;
1262
1263   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264   | --syscon | --sysco | --sysc | --sys | --sy)
1265     ac_prev=sysconfdir ;;
1266   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268     sysconfdir=$ac_optarg ;;
1269
1270   -target | --target | --targe | --targ | --tar | --ta | --t)
1271     ac_prev=target_alias ;;
1272   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273     target_alias=$ac_optarg ;;
1274
1275   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276     verbose=yes ;;
1277
1278   -version | --version | --versio | --versi | --vers | -V)
1279     ac_init_version=: ;;
1280
1281   -with-* | --with-*)
1282     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid package name: $ac_package" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_package=`echo $ac_package| sed 's/-/_/g'`
1288     eval with_$ac_package=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package | sed 's/-/_/g'`
1297     eval with_$ac_package=no ;;
1298
1299   --x)
1300     # Obsolete; use --with-x.
1301     with_x=yes ;;
1302
1303   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304   | --x-incl | --x-inc | --x-in | --x-i)
1305     ac_prev=x_includes ;;
1306   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308     x_includes=$ac_optarg ;;
1309
1310   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312     ac_prev=x_libraries ;;
1313   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315     x_libraries=$ac_optarg ;;
1316
1317   -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319    { (exit 1); exit 1; }; }
1320     ;;
1321
1322   *=*)
1323     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327    { (exit 1); exit 1; }; }
1328     eval $ac_envvar=\$ac_optarg
1329     export $ac_envvar ;;
1330
1331   *)
1332     # FIXME: should be removed in autoconf 3.0.
1333     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337     ;;
1338
1339   esac
1340 done
1341
1342 if test -n "$ac_prev"; then
1343   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344   { echo "$as_me: error: missing argument to $ac_option" >&2
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 # Be sure to have absolute directory names.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   case $ac_val in
1356     [\\/$]* | ?:[\\/]* )  continue;;
1357     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358   esac
1359   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360    { (exit 1); exit 1; }; }
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372   if test "x$build_alias" = x; then
1373     cross_compiling=maybe
1374     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375     If a cross compiler is detected then cross compile mode will be used." >&2
1376   elif test "x$build_alias" != "x$host_alias"; then
1377     cross_compiling=yes
1378   fi
1379 fi
1380
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384 test "$silent" = yes && exec 6>/dev/null
1385
1386
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390   { echo "$as_me: error: Working directory cannot be determined" >&2
1391    { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393   { echo "$as_me: error: pwd does not report name of working directory" >&2
1394    { (exit 1); exit 1; }; }
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$0" : 'X\(//\)[^/]' \| \
1404          X"$0" : 'X\(//\)$' \| \
1405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1406 echo X"$0" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434    { (exit 1); exit 1; }; }
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439    { (exit 1); exit 1; }; }
1440         pwd)`
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443   srcdir=.
1444 fi
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1448 case $srcdir in
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 esac
1451 for ac_var in $ac_precious_vars; do
1452   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_env_${ac_var}_value=\$${ac_var}
1454   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1457
1458 #
1459 # Report the --help message.
1460 #
1461 if test "$ac_init_help" = "long"; then
1462   # Omit some internal or obsolete options to make the list less imposing.
1463   # This message is too long to be a string in the A/UX 3.1 sh.
1464   cat <<_ACEOF
1465 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1466
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472 Defaults for the options are specified in brackets.
1473
1474 Configuration:
1475   -h, --help              display this help and exit
1476       --help=short        display options specific to this package
1477       --help=recursive    display the short help of all the included packages
1478   -V, --version           display version information and exit
1479   -q, --quiet, --silent   do not print \`checking...' messages
1480       --cache-file=FILE   cache test results in FILE [disabled]
1481   -C, --config-cache      alias for \`--cache-file=config.cache'
1482   -n, --no-create         do not create output files
1483       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485 Installation directories:
1486   --prefix=PREFIX         install architecture-independent files in PREFIX
1487                           [$ac_default_prefix]
1488   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                           [PREFIX]
1490
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1495
1496 For better control, use the options below.
1497
1498 Fine tuning of the installation directories:
1499   --bindir=DIR           user executables [EPREFIX/bin]
1500   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1501   --libexecdir=DIR       program executables [EPREFIX/libexec]
1502   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1503   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1504   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1505   --libdir=DIR           object code libraries [EPREFIX/lib]
1506   --includedir=DIR       C header files [PREFIX/include]
1507   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1508   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1509   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1510   --infodir=DIR          info documentation [DATAROOTDIR/info]
1511   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1512   --mandir=DIR           man documentation [DATAROOTDIR/man]
1513   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1514   --htmldir=DIR          html documentation [DOCDIR]
1515   --dvidir=DIR           dvi documentation [DOCDIR]
1516   --pdfdir=DIR           pdf documentation [DOCDIR]
1517   --psdir=DIR            ps documentation [DOCDIR]
1518 _ACEOF
1519
1520   cat <<\_ACEOF
1521
1522 System types:
1523   --build=BUILD     configure for building on BUILD [guessed]
1524   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525   --target=TARGET   configure for building compilers for TARGET [HOST]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530   case $ac_init_help in
1531      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1532    esac
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538   --enable-optimized      Compile with optimizations enabled (default is NO)
1539   --enable-profiling      Compile with profiling enabled (default is NO)
1540   --enable-assertions     Compile with assertion checks enabled (default is
1541                           YES)
1542   --enable-expensive-checks
1543                           Compile with expensive debug checks enabled (default
1544                           is NO)
1545   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1546                           NO)
1547   --enable-jit            Enable Just In Time Compiling (default is YES)
1548   --enable-doxygen        Build doxygen documentation (default is NO)
1549   --enable-threads        Use threads if available (default is YES)
1550   --enable-pic            Build LLVM with Position Independent Code (default
1551                           is YES)
1552   --enable-targets        Build specific host targets:
1553                           all,host-only,{target-name} (default=all)
1554   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1555                           %a (default is YES)
1556   --enable-bindings       Build specific language bindings:
1557                           all,auto,none,{binding-name} (default=auto)
1558   --enable-libffi         Check for the presence of libffi (default is YES)
1559   --enable-ltdl-install   install libltdl
1560   --enable-shared[=PKGS]  build shared libraries
1561                           [default=yes]
1562   --enable-static[=PKGS]  build static libraries
1563                           [default=yes]
1564   --enable-fast-install[=PKGS]
1565                           optimize for fast installation
1566                           [default=yes]
1567   --disable-libtool-lock  avoid locking (might break parallel builds)
1568
1569 Optional Packages:
1570   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1572   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1573                           searches PATH)
1574   --with-llvmgcc          Specify location of llvm-gcc driver (default
1575                           searches PATH)
1576   --with-llvmgxx          Specify location of llvm-g++ driver (default
1577                           searches PATH)
1578   --with-extra-options    Specify additional options to compile LLVM with
1579   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1580                           is stdlib)
1581   --with-binutils-include Specify path to binutils/include/ containing
1582                           plugin-api.h file for gold plugin.
1583   --with-tclinclude       directory where tcl headers are
1584   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585   --with-pic              try to use only PIC/non-PIC objects [default=use
1586                           both]
1587   --with-tags[=TAGS]      include additional configurations [automatic]
1588   --with-udis86=<path>    Use udis86 external x86 disassembler library
1589
1590 Some influential environment variables:
1591   CC          C compiler command
1592   CFLAGS      C compiler flags
1593   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594               nonstandard directory <lib dir>
1595   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596               you have headers in a nonstandard directory <include dir>
1597   CPP         C preprocessor
1598   CXX         C++ compiler command
1599   CXXFLAGS    C++ compiler flags
1600   CXXCPP      C++ preprocessor
1601   F77         Fortran 77 compiler command
1602   FFLAGS      Fortran 77 compiler flags
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 Report bugs to <llvmbugs@cs.uiuc.edu>.
1608 _ACEOF
1609 ac_status=$?
1610 fi
1611
1612 if test "$ac_init_help" = "recursive"; then
1613   # If there are subdirs, report their specific --help.
1614   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615     test -d "$ac_dir" || continue
1616     ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1622   # A ".." for each directory in $ac_dir_suffix.
1623   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624   case $ac_top_builddir_sub in
1625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627   esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635   .)  # We are building in place.
1636     ac_srcdir=.
1637     ac_top_srcdir=$ac_top_builddir_sub
1638     ac_abs_top_srcdir=$ac_pwd ;;
1639   [\\/]* | ?:[\\/]* )  # Absolute name.
1640     ac_srcdir=$srcdir$ac_dir_suffix;
1641     ac_top_srcdir=$srcdir
1642     ac_abs_top_srcdir=$srcdir ;;
1643   *) # Relative name.
1644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645     ac_top_srcdir=$ac_top_build_prefix$srcdir
1646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650     cd "$ac_dir" || { ac_status=$?; continue; }
1651     # Check for guested configure.
1652     if test -f "$ac_srcdir/configure.gnu"; then
1653       echo &&
1654       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655     elif test -f "$ac_srcdir/configure"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure" --help=recursive
1658     else
1659       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660     fi || ac_status=$?
1661     cd "$ac_pwd" || { ac_status=$?; break; }
1662   done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667   cat <<\_ACEOF
1668 llvm configure 2.6svn
1669 generated by GNU Autoconf 2.60
1670
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675
1676 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1677 _ACEOF
1678   exit
1679 fi
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1683
1684 It was created by llvm $as_me 2.6svn, which was
1685 generated by GNU Autoconf 2.60.  Invocation command line was
1686
1687   $ $0 $@
1688
1689 _ACEOF
1690 exec 5>>config.log
1691 {
1692 cat <<_ASUNAME
1693 ## --------- ##
1694 ## Platform. ##
1695 ## --------- ##
1696
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1705
1706 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1707 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1710 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1711 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1712 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1713
1714 _ASUNAME
1715
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   echo "PATH: $as_dir"
1722 done
1723 IFS=$as_save_IFS
1724
1725 } >&5
1726
1727 cat >&5 <<_ACEOF
1728
1729
1730 ## ----------- ##
1731 ## Core tests. ##
1732 ## ----------- ##
1733
1734 _ACEOF
1735
1736
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1742 ac_configure_args=
1743 ac_configure_args0=
1744 ac_configure_args1=
1745 ac_must_keep_next=false
1746 for ac_pass in 1 2
1747 do
1748   for ac_arg
1749   do
1750     case $ac_arg in
1751     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753     | -silent | --silent | --silen | --sile | --sil)
1754       continue ;;
1755     *\'*)
1756       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757     esac
1758     case $ac_pass in
1759     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760     2)
1761       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762       if test $ac_must_keep_next = true; then
1763         ac_must_keep_next=false # Got value, back to normal.
1764       else
1765         case $ac_arg in
1766           *=* | --config-cache | -C | -disable-* | --disable-* \
1767           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769           | -with-* | --with-* | -without-* | --without-* | --x)
1770             case "$ac_configure_args0 " in
1771               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772             esac
1773             ;;
1774           -* ) ac_must_keep_next=true ;;
1775         esac
1776       fi
1777       ac_configure_args="$ac_configure_args '$ac_arg'"
1778       ;;
1779     esac
1780   done
1781 done
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log.  We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791   # Save into config.log some information that might help in debugging.
1792   {
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1799 _ASBOX
1800     echo
1801     # The following way of writing the cache mishandles newlines in values,
1802 (
1803   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804     eval ac_val=\$$ac_var
1805     case $ac_val in #(
1806     *${as_nl}*)
1807       case $ac_var in #(
1808       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810       esac
1811       case $ac_var in #(
1812       _ | IFS | as_nl) ;; #(
1813       *) $as_unset $ac_var ;;
1814       esac ;;
1815     esac
1816   done
1817   (set) 2>&1 |
1818     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819     *${as_nl}ac_space=\ *)
1820       sed -n \
1821         "s/'\''/'\''\\\\'\'''\''/g;
1822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823       ;; #(
1824     *)
1825       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826       ;;
1827     esac |
1828     sort
1829 )
1830     echo
1831
1832     cat <<\_ASBOX
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1836 _ASBOX
1837     echo
1838     for ac_var in $ac_subst_vars
1839     do
1840       eval ac_val=\$$ac_var
1841       case $ac_val in
1842       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843       esac
1844       echo "$ac_var='\''$ac_val'\''"
1845     done | sort
1846     echo
1847
1848     if test -n "$ac_subst_files"; then
1849       cat <<\_ASBOX
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1853 _ASBOX
1854       echo
1855       for ac_var in $ac_subst_files
1856       do
1857         eval ac_val=\$$ac_var
1858         case $ac_val in
1859         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860         esac
1861         echo "$ac_var='\''$ac_val'\''"
1862       done | sort
1863       echo
1864     fi
1865
1866     if test -s confdefs.h; then
1867       cat <<\_ASBOX
1868 ## ----------- ##
1869 ## confdefs.h. ##
1870 ## ----------- ##
1871 _ASBOX
1872       echo
1873       cat confdefs.h
1874       echo
1875     fi
1876     test "$ac_signal" != 0 &&
1877       echo "$as_me: caught signal $ac_signal"
1878     echo "$as_me: exit $exit_status"
1879   } >&5
1880   rm -f core *.core core.conftest.* &&
1881     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882     exit $exit_status
1883 ' 0
1884 for ac_signal in 1 2 13 15; do
1885   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 done
1887 ac_signal=0
1888
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1891
1892 # Predefined preprocessor variables.
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 _ACEOF
1917
1918
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922   set x "$CONFIG_SITE"
1923 elif test "x$prefix" != xNONE; then
1924   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925 else
1926   set x "$ac_default_prefix/share/config.site" \
1927         "$ac_default_prefix/etc/config.site"
1928 fi
1929 shift
1930 for ac_site_file
1931 do
1932   if test -r "$ac_site_file"; then
1933     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934 echo "$as_me: loading site script $ac_site_file" >&6;}
1935     sed 's/^/| /' "$ac_site_file" >&5
1936     . "$ac_site_file"
1937   fi
1938 done
1939
1940 if test -r "$cache_file"; then
1941   # Some versions of bash will fail to source /dev/null (special
1942   # files actually), so we avoid doing that.
1943   if test -f "$cache_file"; then
1944     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945 echo "$as_me: loading cache $cache_file" >&6;}
1946     case $cache_file in
1947       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948       *)                      . "./$cache_file";;
1949     esac
1950   fi
1951 else
1952   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953 echo "$as_me: creating cache $cache_file" >&6;}
1954   >$cache_file
1955 fi
1956
1957 # Check that the precious variables saved in the cache have kept the same
1958 # value.
1959 ac_cache_corrupted=false
1960 for ac_var in $ac_precious_vars; do
1961   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962   eval ac_new_set=\$ac_env_${ac_var}_set
1963   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964   eval ac_new_val=\$ac_env_${ac_var}_value
1965   case $ac_old_set,$ac_new_set in
1966     set,)
1967       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,set)
1971       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973       ac_cache_corrupted=: ;;
1974     ,);;
1975     *)
1976       if test "x$ac_old_val" != "x$ac_new_val"; then
1977         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1980 echo "$as_me:   former value:  $ac_old_val" >&2;}
1981         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1982 echo "$as_me:   current value: $ac_new_val" >&2;}
1983         ac_cache_corrupted=:
1984       fi;;
1985   esac
1986   # Pass precious variables to config.status.
1987   if test "$ac_new_set" = set; then
1988     case $ac_new_val in
1989     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990     *) ac_arg=$ac_var=$ac_new_val ;;
1991     esac
1992     case " $ac_configure_args " in
1993       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1994       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995     esac
1996   fi
1997 done
1998 if $ac_cache_corrupted; then
1999   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003    { (exit 1); exit 1; }; }
2004 fi
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
2038 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2039
2040
2041
2042
2043
2044
2045
2046 ac_aux_dir=
2047 for ac_dir in autoconf "$srcdir"/autoconf; do
2048   if test -f "$ac_dir/install-sh"; then
2049     ac_aux_dir=$ac_dir
2050     ac_install_sh="$ac_aux_dir/install-sh -c"
2051     break
2052   elif test -f "$ac_dir/install.sh"; then
2053     ac_aux_dir=$ac_dir
2054     ac_install_sh="$ac_aux_dir/install.sh -c"
2055     break
2056   elif test -f "$ac_dir/shtool"; then
2057     ac_aux_dir=$ac_dir
2058     ac_install_sh="$ac_aux_dir/shtool install -c"
2059     break
2060   fi
2061 done
2062 if test -z "$ac_aux_dir"; then
2063   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2065    { (exit 1); exit 1; }; }
2066 fi
2067
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2075
2076
2077
2078 if test ${srcdir} != "." ; then
2079   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2081 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082    { (exit 1); exit 1; }; }
2083   fi
2084 fi
2085
2086 for i in `ls ${srcdir}/projects`
2087 do
2088   if test -d ${srcdir}/projects/${i} ; then
2089     case ${i} in
2090       CVS) ;;
2091       sample)       subdirs="$subdirs projects/sample"
2092     ;;
2093       privbracket)  subdirs="$subdirs projects/privbracket"
2094  ;;
2095       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2096  ;;
2097       # llvm-test is the old name of the test-suite, kept here for backwards
2098       # compatibility
2099       llvm-test)    subdirs="$subdirs projects/llvm-test"
2100  ;;
2101       test-suite)   subdirs="$subdirs projects/test-suite"
2102  ;;
2103       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2104 ;;
2105       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2106   ;;
2107       llvm-java)    subdirs="$subdirs projects/llvm-java"
2108  ;;
2109       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2110    ;;
2111       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2112  ;;
2113       poolalloc)    subdirs="$subdirs projects/poolalloc"
2114  ;;
2115       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2116  ;;
2117       *)
2118         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2120         ;;
2121     esac
2122   fi
2123 done
2124
2125
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143    { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 fi
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156    { (exit 1); exit 1; }; };;
2157 esac
2158 build=$ac_cv_build
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_build
2161 shift
2162 build_cpu=$1
2163 build_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 build_os=$*
2168 IFS=$ac_save_IFS
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170
2171
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test "x$host_alias" = x; then
2178   ac_cv_host=$ac_cv_build
2179 else
2180   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186 fi
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 case $ac_cv_host in
2190 *-*-*) ;;
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193    { (exit 1); exit 1; }; };;
2194 esac
2195 host=$ac_cv_host
2196 ac_save_IFS=$IFS; IFS='-'
2197 set x $ac_cv_host
2198 shift
2199 host_cpu=$1
2200 host_vendor=$2
2201 shift; shift
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2204 host_os=$*
2205 IFS=$ac_save_IFS
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207
2208
2209 { echo "$as_me:$LINENO: checking target system type" >&5
2210 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2211 if test "${ac_cv_target+set}" = set; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   if test "x$target_alias" = x; then
2215   ac_cv_target=$ac_cv_host
2216 else
2217   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 fi
2224 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2227 *-*-*) ;;
2228 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229 echo "$as_me: error: invalid value of canonical target" >&2;}
2230    { (exit 1); exit 1; }; };;
2231 esac
2232 target=$ac_cv_target
2233 ac_save_IFS=$IFS; IFS='-'
2234 set x $ac_cv_target
2235 shift
2236 target_cpu=$1
2237 target_vendor=$2
2238 shift; shift
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2241 target_os=$*
2242 IFS=$ac_save_IFS
2243 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2244
2245
2246 # The aliases save the names the user supplied, while $host etc.
2247 # will get canonicalized.
2248 test -n "$target_alias" &&
2249   test "$program_prefix$program_suffix$program_transform_name" = \
2250     NONENONEs,x,x, &&
2251   program_prefix=${target_alias}-
2252
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2255 if test "${llvm_cv_os_type+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   case $host in
2259   *-*-aix*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="AIX"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-irix*)
2265     llvm_cv_link_all_option="-Wl,--whole-archive"
2266     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267     llvm_cv_os_type="IRIX"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-cygwin*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="Cygwin"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-darwin*)
2275     llvm_cv_link_all_option="-Wl,-all_load"
2276     llvm_cv_no_link_all_option="-Wl,-noall_load"
2277     llvm_cv_os_type="Darwin"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-freebsd*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="FreeBSD"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-openbsd*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="OpenBSD"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-netbsd*)
2290     llvm_cv_link_all_option="-Wl,--whole-archive"
2291     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292     llvm_cv_os_type="NetBSD"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-dragonfly*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="DragonFly"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-hpux*)
2300     llvm_cv_link_all_option="-Wl,--whole-archive"
2301     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302     llvm_cv_os_type="HP-UX"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-interix*)
2305     llvm_cv_link_all_option="-Wl,--whole-archive"
2306     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307     llvm_cv_os_type="Interix"
2308     llvm_cv_platform_type="Unix" ;;
2309   *-*-linux*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="Linux"
2313     llvm_cv_platform_type="Unix" ;;
2314   *-*-solaris*)
2315     llvm_cv_link_all_option="-Wl,-z,allextract"
2316     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2317     llvm_cv_os_type="SunOS"
2318     llvm_cv_platform_type="Unix" ;;
2319   *-*-win32*)
2320     llvm_cv_link_all_option="-Wl,--whole-archive"
2321     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322     llvm_cv_os_type="Win32"
2323     llvm_cv_platform_type="Win32" ;;
2324   *-*-mingw*)
2325     llvm_cv_link_all_option="-Wl,--whole-archive"
2326     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327     llvm_cv_os_type="MingW"
2328     llvm_cv_platform_type="Win32" ;;
2329   *)
2330     llvm_cv_link_all_option=""
2331     llvm_cv_no_link_all_option=""
2332     llvm_cv_os_type="Unknown"
2333     llvm_cv_platform_type="Unknown" ;;
2334 esac
2335 fi
2336 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2338
2339 if test "$llvm_cv_os_type" = "Unknown" ; then
2340   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345 OS=$llvm_cv_os_type
2346
2347
2348 LINKALL=$llvm_cv_link_all_option
2349
2350 NOLINKALL=$llvm_cv_no_link_all_option
2351
2352
2353 case $llvm_cv_platform_type in
2354   Unix)
2355
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_UNIX 1
2358 _ACEOF
2359
2360     LLVM_ON_UNIX=1
2361
2362     LLVM_ON_WIN32=0
2363
2364     ;;
2365   Win32)
2366
2367 cat >>confdefs.h <<\_ACEOF
2368 #define LLVM_ON_WIN32 1
2369 _ACEOF
2370
2371     LLVM_ON_UNIX=0
2372
2373     LLVM_ON_WIN32=1
2374
2375     ;;
2376 esac
2377
2378 { echo "$as_me:$LINENO: checking target architecture" >&5
2379 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2380 if test "${llvm_cv_target_arch+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   case $target in
2384   i?86-*)                 llvm_cv_target_arch="x86" ;;
2385   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2386   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2387   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2388   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2389   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2390   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2391   mips-*)                 llvm_cv_target_arch="Mips" ;;
2392   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2393   xcore-*)                llvm_cv_target_arch="XCore" ;;
2394   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2395   *)                      llvm_cv_target_arch="Unknown" ;;
2396 esac
2397 fi
2398 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2400
2401 if test "$llvm_cv_target_arch" = "Unknown" ; then
2402   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404 fi
2405
2406 ARCH=$llvm_cv_target_arch
2407
2408
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 if test -n "$ac_tool_prefix"; then
2415   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   if test -n "$CC"; then
2423   ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   for ac_exec_ext in '' $ac_executable_extensions; do
2431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434     break 2
2435   fi
2436 done
2437 done
2438 IFS=$as_save_IFS
2439
2440 fi
2441 fi
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444   { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2446 else
2447   { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2449 fi
2450
2451
2452 fi
2453 if test -z "$ac_cv_prog_CC"; then
2454   ac_ct_CC=$CC
2455   # Extract the first word of "gcc", so it can be a program name with args.
2456 set dummy gcc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$ac_ct_CC"; then
2463   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472     ac_cv_prog_ac_ct_CC="gcc"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6; }
2486 else
2487   { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2489 fi
2490
2491   if test "x$ac_ct_CC" = x; then
2492     CC=""
2493   else
2494     case $cross_compiling:$ac_tool_warned in
2495 yes:)
2496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet.  If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&5
2499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500 whose name does not start with the host triplet.  If you think this
2501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502 ac_tool_warned=yes ;;
2503 esac
2504     CC=$ac_ct_CC
2505   fi
2506 else
2507   CC="$ac_cv_prog_CC"
2508 fi
2509
2510 if test -z "$CC"; then
2511           if test -n "$ac_tool_prefix"; then
2512     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}cc; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$CC"; then
2520   ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_CC="${ac_tool_prefix}cc"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541   { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548
2549   fi
2550 fi
2551 if test -z "$CC"; then
2552   # Extract the first word of "cc", so it can be a program name with args.
2553 set dummy cc; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562   ac_prog_rejected=no
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2570     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2571        ac_prog_rejected=yes
2572        continue
2573      fi
2574     ac_cv_prog_CC="cc"
2575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 if test $ac_prog_rejected = yes; then
2583   # We found a bogon in the path, so make sure we never use it.
2584   set dummy $ac_cv_prog_CC
2585   shift
2586   if test $# != 0; then
2587     # We chose a different compiler from the bogus one.
2588     # However, it has the same basename, so the bogon will be chosen
2589     # first if we set CC to just the basename; use the full file name.
2590     shift
2591     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2592   fi
2593 fi
2594 fi
2595 fi
2596 CC=$ac_cv_prog_CC
2597 if test -n "$CC"; then
2598   { echo "$as_me:$LINENO: result: $CC" >&5
2599 echo "${ECHO_T}$CC" >&6; }
2600 else
2601   { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$CC"; then
2608   if test -n "$ac_tool_prefix"; then
2609   for ac_prog in cl.exe
2610   do
2611     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$CC"; then
2619   ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2628     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640   { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2642 else
2643   { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2645 fi
2646
2647
2648     test -n "$CC" && break
2649   done
2650 fi
2651 if test -z "$CC"; then
2652   ac_ct_CC=$CC
2653   for ac_prog in cl.exe
2654 do
2655   # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   if test -n "$ac_ct_CC"; then
2663   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   for ac_exec_ext in '' $ac_executable_extensions; do
2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2672     ac_cv_prog_ac_ct_CC="$ac_prog"
2673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683 if test -n "$ac_ct_CC"; then
2684   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2685 echo "${ECHO_T}$ac_ct_CC" >&6; }
2686 else
2687   { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2689 fi
2690
2691
2692   test -n "$ac_ct_CC" && break
2693 done
2694
2695   if test "x$ac_ct_CC" = x; then
2696     CC=""
2697   else
2698     case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet.  If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&5
2703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704 whose name does not start with the host triplet.  If you think this
2705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708     CC=$ac_ct_CC
2709   fi
2710 fi
2711
2712 fi
2713
2714
2715 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: no acceptable C compiler found in \$PATH
2718 See \`config.log' for more details." >&2;}
2719    { (exit 1); exit 1; }; }
2720
2721 # Provide some information about the compiler.
2722 echo "$as_me:$LINENO: checking for C compiler version" >&5
2723 ac_compiler=`set X $ac_compile; echo $2`
2724 { (ac_try="$ac_compiler --version >&5"
2725 case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_compiler --version >&5") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }
2734 { (ac_try="$ac_compiler -v >&5"
2735 case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_compiler -v >&5") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }
2744 { (ac_try="$ac_compiler -V >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler -V >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761
2762 int
2763 main ()
2764 {
2765
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 ac_clean_files_save=$ac_clean_files
2771 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2772 # Try to create an executable without -o first, disregard a.out.
2773 # It will help us diagnose broken compilers, and finding out an intuition
2774 # of exeext.
2775 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2776 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2777 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2778 #
2779 # List of possible output files, starting from the most likely.
2780 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2781 # only as a last resort.  b.out is created by i960 compilers.
2782 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2783 #
2784 # The IRIX 6 linker writes into existing files which may not be
2785 # executable, retaining their permissions.  Remove them first so a
2786 # subsequent execution test works.
2787 ac_rmfiles=
2788 for ac_file in $ac_files
2789 do
2790   case $ac_file in
2791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2792     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793   esac
2794 done
2795 rm -f $ac_rmfiles
2796
2797 if { (ac_try="$ac_link_default"
2798 case "(($ac_try" in
2799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800   *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803   (eval "$ac_link_default") 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); }; then
2807   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2810 # so that the user can short-circuit this test for compilers unknown to
2811 # Autoconf.
2812 for ac_file in $ac_files
2813 do
2814   test -f "$ac_file" || continue
2815   case $ac_file in
2816     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2817         ;;
2818     [ab].out )
2819         # We found the default executable, but exeext='' is most
2820         # certainly right.
2821         break;;
2822     *.* )
2823         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824         then :; else
2825            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826         fi
2827         # We set ac_cv_exeext here because the later test for it is not
2828         # safe: cross compilers may not add the suffix if given an `-o'
2829         # argument, so we may need to know it at that point already.
2830         # Even if this section looks crufty: it has the advantage of
2831         # actually working.
2832         break;;
2833     * )
2834         break;;
2835   esac
2836 done
2837 test "$ac_cv_exeext" = no && ac_cv_exeext=
2838
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&5
2845 echo "$as_me: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&2;}
2847    { (exit 77); exit 77; }; }
2848 fi
2849
2850 ac_exeext=$ac_cv_exeext
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853
2854 # Check that the compiler produces executables we can run.  If not, either
2855 # the compiler is broken, or we cross compile.
2856 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2859 # If not cross compiling, check that we can run a simple program.
2860 if test "$cross_compiling" != yes; then
2861   if { ac_try='./$ac_file'
2862   { (case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867   (eval "$ac_try") 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; }; then
2871     cross_compiling=no
2872   else
2873     if test "$cross_compiling" = maybe; then
2874         cross_compiling=yes
2875     else
2876         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details." >&5
2879 echo "$as_me: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&2;}
2882    { (exit 1); exit 1; }; }
2883     fi
2884   fi
2885 fi
2886 { echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6; }
2888
2889 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2890 ac_clean_files=$ac_clean_files_save
2891 # Check that the compiler produces executables we can run.  If not, either
2892 # the compiler is broken, or we cross compile.
2893 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2894 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2895 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2896 echo "${ECHO_T}$cross_compiling" >&6; }
2897
2898 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2899 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2900 if { (ac_try="$ac_link"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906   (eval "$ac_link") 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; then
2910   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2911 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2912 # work properly (i.e., refer to `conftest.exe'), while it won't with
2913 # `rm'.
2914 for ac_file in conftest.exe conftest conftest.*; do
2915   test -f "$ac_file" || continue
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2919           break;;
2920     * ) break;;
2921   esac
2922 done
2923 else
2924   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2927 See \`config.log' for more details." >&2;}
2928    { (exit 1); exit 1; }; }
2929 fi
2930
2931 rm -f conftest$ac_cv_exeext
2932 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2933 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2934
2935 rm -f conftest.$ac_ext
2936 EXEEXT=$ac_cv_exeext
2937 ac_exeext=$EXEEXT
2938 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2939 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2940 if test "${ac_cv_objext+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949
2950 int
2951 main ()
2952 {
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.o conftest.obj
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_compile") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; then
2969   for ac_file in conftest.o conftest.obj conftest.*; do
2970   test -f "$ac_file" || continue;
2971   case $ac_file in
2972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2973     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2974        break;;
2975   esac
2976 done
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2984 See \`config.log' for more details." >&2;}
2985    { (exit 1); exit 1; }; }
2986 fi
2987
2988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2989 fi
2990 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2991 echo "${ECHO_T}$ac_cv_objext" >&6; }
2992 OBJEXT=$ac_cv_objext
2993 ac_objext=$OBJEXT
2994 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005
3006 int
3007 main ()
3008 {
3009 #ifndef __GNUC__
3010        choke me
3011 #endif
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032   { (case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_try") 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; } &&
3041          { ac_try='test -s conftest.$ac_objext'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; }; then
3051   ac_compiler_gnu=yes
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056         ac_compiler_gnu=no
3057 fi
3058
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061
3062 fi
3063 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3065 GCC=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   ac_save_c_werror_flag=$ac_c_werror_flag
3074    ac_c_werror_flag=yes
3075    ac_cv_prog_cc_g=no
3076    CFLAGS="-g"
3077    cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } &&
3106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_try") 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   ac_cv_prog_cc_g=yes
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131         CFLAGS=""
3132       cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138
3139 int
3140 main ()
3141 {
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_compile") 2>conftest.er1
3155   ac_status=$?
3156   grep -v '^ *+' conftest.er1 >conftest.err
3157   rm -f conftest.er1
3158   cat conftest.err >&5
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); } &&
3161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3162   { (case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_try") 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; } &&
3171          { ac_try='test -s conftest.$ac_objext'
3172   { (case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_try") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; }; then
3181   :
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186         ac_c_werror_flag=$ac_save_c_werror_flag
3187          CFLAGS="-g"
3188          cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194
3195 int
3196 main ()
3197 {
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_compile") 2>conftest.er1
3211   ac_status=$?
3212   grep -v '^ *+' conftest.er1 >conftest.err
3213   rm -f conftest.er1
3214   cat conftest.err >&5
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } &&
3217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3218   { (case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_try") 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; } &&
3227          { ac_try='test -s conftest.$ac_objext'
3228   { (case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_try") 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237   ac_cv_prog_cc_g=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 fi
3247
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252    ac_c_werror_flag=$ac_save_c_werror_flag
3253 fi
3254 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3256 if test "$ac_test_CFLAGS" = set; then
3257   CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259   if test "$GCC" = yes; then
3260     CFLAGS="-g -O2"
3261   else
3262     CFLAGS="-g"
3263   fi
3264 else
3265   if test "$GCC" = yes; then
3266     CFLAGS="-O2"
3267   else
3268     CFLAGS=
3269   fi
3270 fi
3271 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3272 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_cc_c89+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_cv_prog_cc_c89=no
3277 ac_save_CC=$CC
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3292      char **p;
3293      int i;
3294 {
3295   return p[i];
3296 }
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3298 {
3299   char *s;
3300   va_list v;
3301   va_start (v,p);
3302   s = g (p, va_arg (v,int));
3303   va_end (v);
3304   return s;
3305 }
3306
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3308    function prototypes and stuff, but not '\xHH' hex character constants.
3309    These don't provoke an error unfortunately, instead are silently treated
3310    as 'x'.  The following induces an error, until -std is added to get
3311    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3312    array size at least.  It's necessary to write '\x00'==0 to get something
3313    that's true only with -std.  */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3317    inside strings and character constants.  */
3318 #define FOO(x) 'x'
3319 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320
3321 int test (int i, double x);
3322 struct s1 {int (*f) (int a);};
3323 struct s2 {int (*f) (double a);};
3324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 int argc;
3326 char **argv;
3327 int
3328 main ()
3329 {
3330 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3331   ;
3332   return 0;
3333 }
3334 _ACEOF
3335 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3336         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 do
3338   CC="$ac_save_CC $ac_arg"
3339   rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_compile") 2>conftest.er1
3347   ac_status=$?
3348   grep -v '^ *+' conftest.er1 >conftest.err
3349   rm -f conftest.er1
3350   cat conftest.err >&5
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); } &&
3353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3354   { (case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_try") 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; } &&
3363          { ac_try='test -s conftest.$ac_objext'
3364   { (case "(($ac_try" in
3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366   *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369   (eval "$ac_try") 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); }; }; then
3373   ac_cv_prog_cc_c89=$ac_arg
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378
3379 fi
3380
3381 rm -f core conftest.err conftest.$ac_objext
3382   test "x$ac_cv_prog_cc_c89" != "xno" && break
3383 done
3384 rm -f conftest.$ac_ext
3385 CC=$ac_save_CC
3386
3387 fi
3388 # AC_CACHE_VAL
3389 case "x$ac_cv_prog_cc_c89" in
3390   x)
3391     { echo "$as_me:$LINENO: result: none needed" >&5
3392 echo "${ECHO_T}none needed" >&6; } ;;
3393   xno)
3394     { echo "$as_me:$LINENO: result: unsupported" >&5
3395 echo "${ECHO_T}unsupported" >&6; } ;;
3396   *)
3397     CC="$CC $ac_cv_prog_cc_c89"
3398     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3400 esac
3401
3402
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3416 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3417 # On Suns, sometimes $CPP names a directory.
3418 if test -n "$CPP" && test -d "$CPP"; then
3419   CPP=
3420 fi
3421 if test -z "$CPP"; then
3422   if test "${ac_cv_prog_CPP+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425       # Double quotes because CPP needs to be expanded
3426     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3427     do
3428       ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3430 do
3431   # Use a header file that comes with gcc, so configuring glibc
3432   # with a fresh cross-compiler works.
3433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434   # <limits.h> exists even on freestanding compilers.
3435   # On the NeXT, cc -E runs the code through the compiler's parser,
3436   # not just through cpp. "Syntax error" is here to catch this case.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #ifdef __STDC__
3444 # include <limits.h>
3445 #else
3446 # include <assert.h>
3447 #endif
3448                      Syntax error
3449 _ACEOF
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } >/dev/null; then
3463   if test -s conftest.err; then
3464     ac_cpp_err=$ac_c_preproc_warn_flag
3465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466   else
3467     ac_cpp_err=
3468   fi
3469 else
3470   ac_cpp_err=yes
3471 fi
3472 if test -z "$ac_cpp_err"; then
3473   :
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478   # Broken: fails on valid input.
3479 continue
3480 fi
3481
3482 rm -f conftest.err conftest.$ac_ext
3483
3484   # OK, works on sane cases.  Now check whether nonexistent headers
3485   # can be detected and how.
3486   cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492 #include <ac_nonexistent.h>
3493 _ACEOF
3494 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501   ac_status=$?
3502   grep -v '^ *+' conftest.er1 >conftest.err
3503   rm -f conftest.er1
3504   cat conftest.err >&5
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } >/dev/null; then
3507   if test -s conftest.err; then
3508     ac_cpp_err=$ac_c_preproc_warn_flag
3509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510   else
3511     ac_cpp_err=
3512   fi
3513 else
3514   ac_cpp_err=yes
3515 fi
3516 if test -z "$ac_cpp_err"; then
3517   # Broken: success on invalid input.
3518 continue
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523   # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3526 fi
3527
3528 rm -f conftest.err conftest.$ac_ext
3529
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then
3534   break
3535 fi
3536
3537     done
3538     ac_cv_prog_CPP=$CPP
3539
3540 fi
3541   CPP=$ac_cv_prog_CPP
3542 else
3543   ac_cv_prog_CPP=$CPP
3544 fi
3545 { echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6; }
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3549 do
3550   # Use a header file that comes with gcc, so configuring glibc
3551   # with a fresh cross-compiler works.
3552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553   # <limits.h> exists even on freestanding compilers.
3554   # On the NeXT, cc -E runs the code through the compiler's parser,
3555   # not just through cpp. "Syntax error" is here to catch this case.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567                      Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } >/dev/null; then
3582   if test -s conftest.err; then
3583     ac_cpp_err=$ac_c_preproc_warn_flag
3584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585   else
3586     ac_cpp_err=
3587   fi
3588 else
3589   ac_cpp_err=yes
3590 fi
3591 if test -z "$ac_cpp_err"; then
3592   :
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597   # Broken: fails on valid input.
3598 continue
3599 fi
3600
3601 rm -f conftest.err conftest.$ac_ext
3602
3603   # OK, works on sane cases.  Now check whether nonexistent headers
3604   # can be detected and how.
3605   cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 #include <ac_nonexistent.h>
3612 _ACEOF
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } >/dev/null; then
3626   if test -s conftest.err; then
3627     ac_cpp_err=$ac_c_preproc_warn_flag
3628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3629   else
3630     ac_cpp_err=
3631   fi
3632 else
3633   ac_cpp_err=yes
3634 fi
3635 if test -z "$ac_cpp_err"; then
3636   # Broken: success on invalid input.
3637 continue
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642   # Passes both tests.
3643 ac_preproc_ok=:
3644 break
3645 fi
3646
3647 rm -f conftest.err conftest.$ac_ext
3648
3649 done
3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651 rm -f conftest.err conftest.$ac_ext
3652 if $ac_preproc_ok; then
3653   :
3654 else
3655   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&5
3657 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3658 See \`config.log' for more details." >&2;}
3659    { (exit 1); exit 1; }; }
3660 fi
3661
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667
3668
3669 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3670 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3671 if test "${ac_cv_path_GREP+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   # Extract the first word of "grep ggrep" to use in msg output
3675 if test -z "$GREP"; then
3676 set dummy grep ggrep; ac_prog_name=$2
3677 if test "${ac_cv_path_GREP+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   ac_path_GREP_found=false
3681 # Loop through the user's path and test for each of PROGNAME-LIST
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   for ac_prog in grep ggrep; do
3688   for ac_exec_ext in '' $ac_executable_extensions; do
3689     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3690     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3691     # Check for GNU ac_path_GREP and select it if it is found.
3692   # Check for GNU $ac_path_GREP
3693 case `"$ac_path_GREP" --version 2>&1` in
3694 *GNU*)
3695   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3696 *)
3697   ac_count=0
3698   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3699   while :
3700   do
3701     cat "conftest.in" "conftest.in" >"conftest.tmp"
3702     mv "conftest.tmp" "conftest.in"
3703     cp "conftest.in" "conftest.nl"
3704     echo 'GREP' >> "conftest.nl"
3705     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707     ac_count=`expr $ac_count + 1`
3708     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3709       # Best one so far, save it but keep looking for a better one
3710       ac_cv_path_GREP="$ac_path_GREP"
3711       ac_path_GREP_max=$ac_count
3712     fi
3713     # 10*(2^10) chars as input seems more than enough
3714     test $ac_count -gt 10 && break
3715   done
3716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717 esac
3718
3719
3720     $ac_path_GREP_found && break 3
3721   done
3722 done
3723
3724 done
3725 IFS=$as_save_IFS
3726
3727
3728 fi
3729
3730 GREP="$ac_cv_path_GREP"
3731 if test -z "$GREP"; then
3732   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3733 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3734    { (exit 1); exit 1; }; }
3735 fi
3736
3737 else
3738   ac_cv_path_GREP=$GREP
3739 fi
3740
3741
3742 fi
3743 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3744 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3745  GREP="$ac_cv_path_GREP"
3746
3747
3748 { echo "$as_me:$LINENO: checking for egrep" >&5
3749 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_EGREP+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3754    then ac_cv_path_EGREP="$GREP -E"
3755    else
3756      # Extract the first word of "egrep" to use in msg output
3757 if test -z "$EGREP"; then
3758 set dummy egrep; ac_prog_name=$2
3759 if test "${ac_cv_path_EGREP+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   ac_path_EGREP_found=false
3763 # Loop through the user's path and test for each of PROGNAME-LIST
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769   for ac_prog in egrep; do
3770   for ac_exec_ext in '' $ac_executable_extensions; do
3771     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3772     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3773     # Check for GNU ac_path_EGREP and select it if it is found.
3774   # Check for GNU $ac_path_EGREP
3775 case `"$ac_path_EGREP" --version 2>&1` in
3776 *GNU*)
3777   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3778 *)
3779   ac_count=0
3780   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781   while :
3782   do
3783     cat "conftest.in" "conftest.in" >"conftest.tmp"
3784     mv "conftest.tmp" "conftest.in"
3785     cp "conftest.in" "conftest.nl"
3786     echo 'EGREP' >> "conftest.nl"
3787     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789     ac_count=`expr $ac_count + 1`
3790     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3791       # Best one so far, save it but keep looking for a better one
3792       ac_cv_path_EGREP="$ac_path_EGREP"
3793       ac_path_EGREP_max=$ac_count
3794     fi
3795     # 10*(2^10) chars as input seems more than enough
3796     test $ac_count -gt 10 && break
3797   done
3798   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 esac
3800
3801
3802     $ac_path_EGREP_found && break 3
3803   done
3804 done
3805
3806 done
3807 IFS=$as_save_IFS
3808
3809
3810 fi
3811
3812 EGREP="$ac_cv_path_EGREP"
3813 if test -z "$EGREP"; then
3814   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3815 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3816    { (exit 1); exit 1; }; }
3817 fi
3818
3819 else
3820   ac_cv_path_EGREP=$EGREP
3821 fi
3822
3823
3824    fi
3825 fi
3826 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3827 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3828  EGREP="$ac_cv_path_EGREP"
3829
3830
3831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3833 if test "${ac_cv_header_stdc+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842 #include <stdlib.h>
3843 #include <stdarg.h>
3844 #include <string.h>
3845 #include <float.h>
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_compile") 2>conftest.er1
3863   ac_status=$?
3864   grep -v '^ *+' conftest.er1 >conftest.err
3865   rm -f conftest.er1
3866   cat conftest.err >&5
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } &&
3869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3870   { (case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875   (eval "$ac_try") 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; } &&
3879          { ac_try='test -s conftest.$ac_objext'
3880   { (case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885   (eval "$ac_try") 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); }; }; then
3889   ac_cv_header_stdc=yes
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894         ac_cv_header_stdc=no
3895 fi
3896
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898
3899 if test $ac_cv_header_stdc = yes; then
3900   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 #include <string.h>
3908
3909 _ACEOF
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911   $EGREP "memchr" >/dev/null 2>&1; then
3912   :
3913 else
3914   ac_cv_header_stdc=no
3915 fi
3916 rm -f conftest*
3917
3918 fi
3919
3920 if test $ac_cv_header_stdc = yes; then
3921   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
3929
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3943   if test "$cross_compiling" = yes; then
3944   :
3945 else
3946   cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 #include <ctype.h>
3953 #include <stdlib.h>
3954 #if ((' ' & 0x0FF) == 0x020)
3955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3957 #else
3958 # define ISLOWER(c) \
3959                    (('a' <= (c) && (c) <= 'i') \
3960                      || ('j' <= (c) && (c) <= 'r') \
3961                      || ('s' <= (c) && (c) <= 'z'))
3962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3963 #endif
3964
3965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3966 int
3967 main ()
3968 {
3969   int i;
3970   for (i = 0; i < 256; i++)
3971     if (XOR (islower (i), ISLOWER (i))
3972         || toupper (i) != TOUPPER (i))
3973       return 2;
3974   return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3979 case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984   (eval "$ac_link") 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3988   { (case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993   (eval "$ac_try") 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; }; then
3997   :
3998 else
3999   echo "$as_me: program exited with status $ac_status" >&5
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 ( exit $ac_status )
4004 ac_cv_header_stdc=no
4005 fi
4006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4007 fi
4008
4009
4010 fi
4011 fi
4012 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4013 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4014 if test $ac_cv_header_stdc = yes; then
4015
4016 cat >>confdefs.h <<\_ACEOF
4017 #define STDC_HEADERS 1
4018 _ACEOF
4019
4020 fi
4021
4022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4033                   inttypes.h stdint.h unistd.h
4034 do
4035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 $ac_includes_default
4048
4049 #include <$ac_header>
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (ac_try="$ac_compile"
4053 case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058   (eval "$ac_compile") 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066   { (case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071   (eval "$ac_try") 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; } &&
4075          { ac_try='test -s conftest.$ac_objext'
4076   { (case "(($ac_try" in
4077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078   *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081   (eval "$ac_try") 2>&5
4082   ac_status=$?
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); }; }; then
4085   eval "$as_ac_Header=yes"
4086 else
4087   echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090         eval "$as_ac_Header=no"
4091 fi
4092
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 ac_res=`eval echo '${'$as_ac_Header'}'`
4096                { echo "$as_me:$LINENO: result: $ac_res" >&5
4097 echo "${ECHO_T}$ac_res" >&6; }
4098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4099   cat >>confdefs.h <<_ACEOF
4100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4101 _ACEOF
4102
4103 fi
4104
4105 done
4106
4107
4108 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4109 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4110 if test "${ac_cv_c_bigendian+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   # See if sys/param.h defines the BYTE_ORDER macro.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4122
4123 int
4124 main ()
4125 {
4126 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4127  bogus endian macros
4128 #endif
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_compile") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } &&
4148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149   { (case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_try") 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   # It does; now see whether it defined to BIG_ENDIAN or not.
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175 #include <sys/types.h>
4176 #include <sys/param.h>
4177
4178 int
4179 main ()
4180 {
4181 #if BYTE_ORDER != BIG_ENDIAN
4182  not big endian
4183 #endif
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4191 case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_compile") 2>conftest.er1
4197   ac_status=$?
4198   grep -v '^ *+' conftest.er1 >conftest.err
4199   rm -f conftest.er1
4200   cat conftest.err >&5
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } &&
4203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204   { (case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_try") 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; } &&
4213          { ac_try='test -s conftest.$ac_objext'
4214   { (case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219   (eval "$ac_try") 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; }; then
4223   ac_cv_c_bigendian=yes
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228         ac_cv_c_bigendian=no
4229 fi
4230
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236         # It does not; compile a test program.
4237 if test "$cross_compiling" = yes; then
4238   # try to guess the endianness by grepping values into an object file
4239   ac_cv_c_bigendian=unknown
4240   cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4247 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4248 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4249 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4250 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4251 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4252 int
4253 main ()
4254 {
4255  _ascii (); _ebcdic ();
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_compile") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } &&
4274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275   { (case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_try") 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; } &&
4284          { ac_try='test -s conftest.$ac_objext'
4285   { (case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4295   ac_cv_c_bigendian=yes
4296 fi
4297 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4298   if test "$ac_cv_c_bigendian" = unknown; then
4299     ac_cv_c_bigendian=no
4300   else
4301     # finding both strings is unlikely to happen, but who knows?
4302     ac_cv_c_bigendian=unknown
4303   fi
4304 fi
4305 else
4306   echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309
4310 fi
4311
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 else
4314   cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 $ac_includes_default
4321 int
4322 main ()
4323 {
4324
4325   /* Are we little or big endian?  From Harbison&Steele.  */
4326   union
4327   {
4328     long int l;
4329     char c[sizeof (long int)];
4330   } u;
4331   u.l = 1;
4332   return u.c[sizeof (long int) - 1] == 1;
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest$ac_exeext
4339 if { (ac_try="$ac_link"
4340 case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345   (eval "$ac_link") 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4349   { (case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354   (eval "$ac_try") 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; }; then
4358   ac_cv_c_bigendian=no
4359 else
4360   echo "$as_me: program exited with status $ac_status" >&5
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 ( exit $ac_status )
4365 ac_cv_c_bigendian=yes
4366 fi
4367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 fi
4369
4370
4371 fi
4372
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 fi
4375 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4376 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4377 case $ac_cv_c_bigendian in
4378   yes)
4379     ENDIAN=big
4380  ;;
4381   no)
4382     ENDIAN=little
4383  ;;
4384   *)
4385     { { echo "$as_me:$LINENO: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4387 echo "$as_me: error: unknown endianness
4388 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4389    { (exit 1); exit 1; }; } ;;
4390 esac
4391
4392
4393 if test "$cross_compiling" = yes; then
4394   LLVM_CROSS_COMPILING=1
4395
4396
4397 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4398 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4399 if test "${ac_cv_build_exeext+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4403   ac_cv_build_exeext=.exe
4404 else
4405   ac_build_prefix=${build_alias}-
4406
4407   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4408 set dummy ${ac_build_prefix}gcc; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test -n "$BUILD_CC"; then
4415   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 BUILD_CC=$ac_cv_prog_BUILD_CC
4435 if test -n "$BUILD_CC"; then
4436   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4437 echo "${ECHO_T}$BUILD_CC" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444   if test -z "$BUILD_CC"; then
4445      # Extract the first word of "gcc", so it can be a program name with args.
4446 set dummy gcc; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   if test -n "$BUILD_CC"; then
4453   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_prog_BUILD_CC="gcc"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4476 else
4477   { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4479 fi
4480
4481
4482      if test -z "$BUILD_CC"; then
4483        # Extract the first word of "cc", so it can be a program name with args.
4484 set dummy cc; ac_word=$2
4485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   if test -n "$BUILD_CC"; then
4491   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4492 else
4493   ac_prog_rejected=no
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499   for ac_exec_ext in '' $ac_executable_extensions; do
4500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4501     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502        ac_prog_rejected=yes
4503        continue
4504      fi
4505     ac_cv_prog_BUILD_CC="cc"
4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 if test $ac_prog_rejected = yes; then
4514   # We found a bogon in the path, so make sure we never use it.
4515   set dummy $ac_cv_prog_BUILD_CC
4516   shift
4517   if test $# != 0; then
4518     # We chose a different compiler from the bogus one.
4519     # However, it has the same basename, so the bogon will be chosen
4520     # first if we set BUILD_CC to just the basename; use the full file name.
4521     shift
4522     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4523   fi
4524 fi
4525 fi
4526 fi
4527 BUILD_CC=$ac_cv_prog_BUILD_CC
4528 if test -n "$BUILD_CC"; then
4529   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4530 echo "${ECHO_T}$BUILD_CC" >&6; }
4531 else
4532   { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4534 fi
4535
4536
4537      fi
4538   fi
4539   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4540 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4541    { (exit 1); exit 1; }; }
4542   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543   rm -f conftest*
4544   echo 'int main () { return 0; }' > conftest.$ac_ext
4545   ac_cv_build_exeext=
4546   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4547   (eval $ac_build_link) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; then
4551     for file in conftest.*; do
4552       case $file in
4553       *.c | *.o | *.obj | *.dSYM) ;;
4554       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4555       esac
4556     done
4557   else
4558     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4559 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4560    { (exit 1); exit 1; }; }
4561   fi
4562   rm -f conftest*
4563   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4564 fi
4565 fi
4566
4567 BUILD_EXEEXT=""
4568 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4569 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4570 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4571 ac_build_exeext=$BUILD_EXEEXT
4572
4573   ac_build_prefix=${build_alias}-
4574   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4575 set dummy ${ac_build_prefix}g++; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   if test -n "$BUILD_CXX"; then
4582   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589   for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4602 if test -n "$BUILD_CXX"; then
4603   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4604 echo "${ECHO_T}$BUILD_CXX" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611   if test -z "$BUILD_CXX"; then
4612      # Extract the first word of "g++", so it can be a program name with args.
4613 set dummy g++; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$BUILD_CXX"; then
4620   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629     ac_cv_prog_BUILD_CXX="g++"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640 if test -n "$BUILD_CXX"; then
4641   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642 echo "${ECHO_T}$BUILD_CXX" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649      if test -z "$BUILD_CXX"; then
4650        # Extract the first word of "c++", so it can be a program name with args.
4651 set dummy c++; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$BUILD_CXX"; then
4658   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4659 else
4660   ac_prog_rejected=no
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4669        ac_prog_rejected=yes
4670        continue
4671      fi
4672     ac_cv_prog_BUILD_CXX="c++"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 if test $ac_prog_rejected = yes; then
4681   # We found a bogon in the path, so make sure we never use it.
4682   set dummy $ac_cv_prog_BUILD_CXX
4683   shift
4684   if test $# != 0; then
4685     # We chose a different compiler from the bogus one.
4686     # However, it has the same basename, so the bogon will be chosen
4687     # first if we set BUILD_CXX to just the basename; use the full file name.
4688     shift
4689     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4690   fi
4691 fi
4692 fi
4693 fi
4694 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4695 if test -n "$BUILD_CXX"; then
4696   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4697 echo "${ECHO_T}$BUILD_CXX" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 fi
4702
4703
4704      fi
4705   fi
4706 else
4707   LLVM_CROSS_COMPILING=0
4708
4709 fi
4710
4711 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4712   cvsbuild="yes"
4713   optimize="no"
4714   CVSBUILD=CVSBUILD=1
4715
4716 else
4717   cvsbuild="no"
4718   optimize="yes"
4719 fi
4720
4721
4722 # Check whether --enable-optimized was given.
4723 if test "${enable_optimized+set}" = set; then
4724   enableval=$enable_optimized;
4725 else
4726   enableval=$optimize
4727 fi
4728
4729 if test ${enableval} = "no" ; then
4730   ENABLE_OPTIMIZED=
4731
4732 else
4733   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4734
4735 fi
4736
4737 # Check whether --enable-profiling was given.
4738 if test "${enable_profiling+set}" = set; then
4739   enableval=$enable_profiling;
4740 else
4741   enableval="no"
4742 fi
4743
4744 if test ${enableval} = "no" ; then
4745   ENABLE_PROFILING=
4746
4747 else
4748   ENABLE_PROFILING=ENABLE_PROFILING=1
4749
4750 fi
4751
4752 # Check whether --enable-assertions was given.
4753 if test "${enable_assertions+set}" = set; then
4754   enableval=$enable_assertions;
4755 else
4756   enableval="yes"
4757 fi
4758
4759 if test ${enableval} = "yes" ; then
4760   DISABLE_ASSERTIONS=
4761
4762 else
4763   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4764
4765 fi
4766
4767 # Check whether --enable-expensive-checks was given.
4768 if test "${enable_expensive_checks+set}" = set; then
4769   enableval=$enable_expensive_checks;
4770 else
4771   enableval="no"
4772 fi
4773
4774 if test ${enableval} = "yes" ; then
4775   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4776
4777   EXPENSIVE_CHECKS=yes
4778
4779 else
4780   ENABLE_EXPENSIVE_CHECKS=
4781
4782   EXPENSIVE_CHECKS=no
4783
4784 fi
4785
4786 # Check whether --enable-debug-runtime was given.
4787 if test "${enable_debug_runtime+set}" = set; then
4788   enableval=$enable_debug_runtime;
4789 else
4790   enableval=no
4791 fi
4792
4793 if test ${enableval} = "no" ; then
4794   DEBUG_RUNTIME=
4795
4796 else
4797   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4798
4799 fi
4800
4801 # Check whether --enable-jit was given.
4802 if test "${enable_jit+set}" = set; then
4803   enableval=$enable_jit;
4804 else
4805   enableval=default
4806 fi
4807
4808 if test ${enableval} = "no"
4809 then
4810   JIT=
4811
4812 else
4813   case "$llvm_cv_target_arch" in
4814     x86)     TARGET_HAS_JIT=1
4815  ;;
4816     Sparc)   TARGET_HAS_JIT=0
4817  ;;
4818     PowerPC) TARGET_HAS_JIT=1
4819  ;;
4820     x86_64)  TARGET_HAS_JIT=1
4821  ;;
4822     Alpha)   TARGET_HAS_JIT=1
4823  ;;
4824     IA64)    TARGET_HAS_JIT=0
4825  ;;
4826     ARM)     TARGET_HAS_JIT=0
4827  ;;
4828     Mips)    TARGET_HAS_JIT=0
4829  ;;
4830     PIC16)   TARGET_HAS_JIT=0
4831  ;;
4832     XCore)   TARGET_HAS_JIT=0
4833  ;;
4834     MSP430)  TARGET_HAS_JIT=0
4835  ;;
4836     *)       TARGET_HAS_JIT=0
4837  ;;
4838   esac
4839 fi
4840
4841 # Check whether --enable-doxygen was given.
4842 if test "${enable_doxygen+set}" = set; then
4843   enableval=$enable_doxygen;
4844 else
4845   enableval=default
4846 fi
4847
4848 case "$enableval" in
4849   yes) ENABLE_DOXYGEN=1
4850  ;;
4851   no)  ENABLE_DOXYGEN=0
4852  ;;
4853   default) ENABLE_DOXYGEN=0
4854  ;;
4855   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4857    { (exit 1); exit 1; }; } ;;
4858 esac
4859
4860 # Check whether --enable-threads was given.
4861 if test "${enable_threads+set}" = set; then
4862   enableval=$enable_threads;
4863 else
4864   enableval=default
4865 fi
4866
4867 case "$enableval" in
4868   yes) ENABLE_THREADS=1
4869  ;;
4870   no)  ENABLE_THREADS=0
4871  ;;
4872   default) ENABLE_THREADS=1
4873  ;;
4874   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4875 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4876    { (exit 1); exit 1; }; } ;;
4877 esac
4878
4879 cat >>confdefs.h <<_ACEOF
4880 #define ENABLE_THREADS $ENABLE_THREADS
4881 _ACEOF
4882
4883
4884 # Check whether --enable-pic was given.
4885 if test "${enable_pic+set}" = set; then
4886   enableval=$enable_pic;
4887 else
4888   enableval=default
4889 fi
4890
4891 case "$enableval" in
4892   yes) ENABLE_PIC=1
4893  ;;
4894   no)  ENABLE_PIC=0
4895  ;;
4896   default) ENABLE_PIC=1
4897  ;;
4898   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4900    { (exit 1); exit 1; }; } ;;
4901 esac
4902
4903 cat >>confdefs.h <<_ACEOF
4904 #define ENABLE_PIC $ENABLE_PIC
4905 _ACEOF
4906
4907
4908 TARGETS_TO_BUILD=""
4909 # Check whether --enable-targets was given.
4910 if test "${enable_targets+set}" = set; then
4911   enableval=$enable_targets;
4912 else
4913   enableval=all
4914 fi
4915
4916 case "$enableval" in
4917   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4918   host-only)
4919     case "$llvm_cv_target_arch" in
4920       x86)     TARGETS_TO_BUILD="X86" ;;
4921       x86_64)  TARGETS_TO_BUILD="X86" ;;
4922       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4923       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4924       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4925       IA64)    TARGETS_TO_BUILD="IA64" ;;
4926       ARM)     TARGETS_TO_BUILD="ARM" ;;
4927       Mips)    TARGETS_TO_BUILD="Mips" ;;
4928       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4929       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4930       XCore)   TARGETS_TO_BUILD="XCore" ;;
4931       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4932       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4933 echo "$as_me: error: Can not set target to build" >&2;}
4934    { (exit 1); exit 1; }; } ;;
4935     esac
4936     ;;
4937   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938       case "$a_target" in
4939         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4945         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4946         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4947         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4948         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4949         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4950         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4951         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4953         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4954         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4955 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4956    { (exit 1); exit 1; }; } ;;
4957       esac
4958   done
4959   ;;
4960 esac
4961 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4962
4963
4964 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4965 # Targets.def and AsmPrinters.def.
4966 LLVM_ENUM_TARGETS=""
4967 LLVM_ENUM_ASM_PRINTERS=""
4968 for target_to_build in $TARGETS_TO_BUILD; do
4969   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4970   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4971     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4972   fi
4973 done
4974
4975
4976
4977 # Check whether --enable-cbe-printf-a was given.
4978 if test "${enable_cbe_printf_a+set}" = set; then
4979   enableval=$enable_cbe_printf_a;
4980 else
4981   enableval=default
4982 fi
4983
4984 case "$enableval" in
4985   yes) ENABLE_CBE_PRINTF_A=1
4986  ;;
4987   no)  ENABLE_CBE_PRINTF_A=0
4988  ;;
4989   default)  ENABLE_CBE_PRINTF_A=1
4990  ;;
4991   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4992 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4993    { (exit 1); exit 1; }; } ;;
4994 esac
4995
4996 cat >>confdefs.h <<_ACEOF
4997 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4998 _ACEOF
4999
5000
5001
5002 # Check whether --with-llvmgccdir was given.
5003 if test "${with_llvmgccdir+set}" = set; then
5004   withval=$with_llvmgccdir;
5005 else
5006   withval=default
5007 fi
5008
5009 case "$withval" in
5010   default) WITH_LLVMGCCDIR=default ;;
5011   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5012   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5013 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5014    { (exit 1); exit 1; }; } ;;
5015 esac
5016
5017
5018 # Check whether --with-llvmgcc was given.
5019 if test "${with_llvmgcc+set}" = set; then
5020   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5021       WITH_LLVMGCCDIR=""
5022 fi
5023
5024
5025
5026 # Check whether --with-llvmgxx was given.
5027 if test "${with_llvmgxx+set}" = set; then
5028   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5029     WITH_LLVMGCCDIR=""
5030 fi
5031
5032
5033 if test -n "$LLVMGCC"; then
5034    LLVMGCCCOMMAND="$LLVMGCC"
5035 fi
5036
5037 if test -n "$LLVMGXX"; then
5038    LLVMGXXCOMMAND="$LLVMGXX"
5039 fi
5040
5041 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5042    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5043 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5044    { (exit 1); exit 1; }; };
5045 fi
5046
5047 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5048    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5049 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5050    { (exit 1); exit 1; }; };
5051 fi
5052
5053
5054 # Check whether --with-extra-options was given.
5055 if test "${with_extra_options+set}" = set; then
5056   withval=$with_extra_options;
5057 else
5058   withval=default
5059 fi
5060
5061 case "$withval" in
5062   default) EXTRA_OPTIONS= ;;
5063   *) EXTRA_OPTIONS=$withval ;;
5064 esac
5065 EXTRA_OPTIONS=$EXTRA_OPTIONS
5066
5067
5068 # Check whether --enable-bindings was given.
5069 if test "${enable_bindings+set}" = set; then
5070   enableval=$enable_bindings;
5071 else
5072   enableval=default
5073 fi
5074
5075 BINDINGS_TO_BUILD=""
5076 case "$enableval" in
5077   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5078   all ) BINDINGS_TO_BUILD="ocaml" ;;
5079   none | no) BINDINGS_TO_BUILD="" ;;
5080   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5081       case "$a_binding" in
5082         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5083         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5084 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5085    { (exit 1); exit 1; }; } ;;
5086       esac
5087   done
5088   ;;
5089 esac
5090
5091
5092 # Check whether --with-ocaml-libdir was given.
5093 if test "${with_ocaml_libdir+set}" = set; then
5094   withval=$with_ocaml_libdir;
5095 else
5096   withval=auto
5097 fi
5098
5099 case "$withval" in
5100   auto) with_ocaml_libdir="$withval" ;;
5101   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5102   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5103 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105 esac
5106
5107
5108 # Check whether --with-binutils-include was given.
5109 if test "${with_binutils_include+set}" = set; then
5110   withval=$with_binutils_include;
5111 else
5112   withval=default
5113 fi
5114
5115 case "$withval" in
5116   default) WITH_BINUTILS_INCDIR=default ;;
5117   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5118   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5119 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5120    { (exit 1); exit 1; }; } ;;
5121 esac
5122 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5123   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5124
5125   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5126      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5127      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5128 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5129    { (exit 1); exit 1; }; };
5130   fi
5131 fi
5132
5133 # Check whether --enable-libffi was given.
5134 if test "${enable_libffi+set}" = set; then
5135   enableval=$enable_libffi;
5136 else
5137   enableval=yes
5138 fi
5139
5140 case "$enableval" in
5141   yes) llvm_cv_enable_libffi="yes" ;;
5142   no)  llvm_cv_enable_libffi="no"  ;;
5143   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5145    { (exit 1); exit 1; }; } ;;
5146 esac
5147
5148
5149 ac_ext=c
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5156 # On Suns, sometimes $CPP names a directory.
5157 if test -n "$CPP" && test -d "$CPP"; then
5158   CPP=
5159 fi
5160 if test -z "$CPP"; then
5161   if test "${ac_cv_prog_CPP+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164       # Double quotes because CPP needs to be expanded
5165     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5166     do
5167       ac_preproc_ok=false
5168 for ac_c_preproc_warn_flag in '' yes
5169 do
5170   # Use a header file that comes with gcc, so configuring glibc
5171   # with a fresh cross-compiler works.
5172   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173   # <limits.h> exists even on freestanding compilers.
5174   # On the NeXT, cc -E runs the code through the compiler's parser,
5175   # not just through cpp. "Syntax error" is here to catch this case.
5176   cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 #ifdef __STDC__
5183 # include <limits.h>
5184 #else
5185 # include <assert.h>
5186 #endif
5187                      Syntax error
5188 _ACEOF
5189 if { (ac_try="$ac_cpp conftest.$ac_ext"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } >/dev/null; then
5202   if test -s conftest.err; then
5203     ac_cpp_err=$ac_c_preproc_warn_flag
5204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5205   else
5206     ac_cpp_err=
5207   fi
5208 else
5209   ac_cpp_err=yes
5210 fi
5211 if test -z "$ac_cpp_err"; then
5212   :
5213 else
5214   echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217   # Broken: fails on valid input.
5218 continue
5219 fi
5220
5221 rm -f conftest.err conftest.$ac_ext
5222
5223   # OK, works on sane cases.  Now check whether nonexistent headers
5224   # can be detected and how.
5225   cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 #include <ac_nonexistent.h>
5232 _ACEOF
5233 if { (ac_try="$ac_cpp conftest.$ac_ext"
5234 case "(($ac_try" in
5235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236   *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } >/dev/null; then
5246   if test -s conftest.err; then
5247     ac_cpp_err=$ac_c_preproc_warn_flag
5248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249   else
5250     ac_cpp_err=
5251   fi
5252 else
5253   ac_cpp_err=yes
5254 fi
5255 if test -z "$ac_cpp_err"; then
5256   # Broken: success on invalid input.
5257 continue
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262   # Passes both tests.
5263 ac_preproc_ok=:
5264 break
5265 fi
5266
5267 rm -f conftest.err conftest.$ac_ext
5268
5269 done
5270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5271 rm -f conftest.err conftest.$ac_ext
5272 if $ac_preproc_ok; then
5273   break
5274 fi
5275
5276     done
5277     ac_cv_prog_CPP=$CPP
5278
5279 fi
5280   CPP=$ac_cv_prog_CPP
5281 else
5282   ac_cv_prog_CPP=$CPP
5283 fi
5284 { echo "$as_me:$LINENO: result: $CPP" >&5
5285 echo "${ECHO_T}$CPP" >&6; }
5286 ac_preproc_ok=false
5287 for ac_c_preproc_warn_flag in '' yes
5288 do
5289   # Use a header file that comes with gcc, so configuring glibc
5290   # with a fresh cross-compiler works.
5291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5292   # <limits.h> exists even on freestanding compilers.
5293   # On the NeXT, cc -E runs the code through the compiler's parser,
5294   # not just through cpp. "Syntax error" is here to catch this case.
5295   cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 #ifdef __STDC__
5302 # include <limits.h>
5303 #else
5304 # include <assert.h>
5305 #endif
5306                      Syntax error
5307 _ACEOF
5308 if { (ac_try="$ac_cpp conftest.$ac_ext"
5309 case "(($ac_try" in
5310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311   *) ac_try_echo=$ac_try;;
5312 esac
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315   ac_status=$?
5316   grep -v '^ *+' conftest.er1 >conftest.err
5317   rm -f conftest.er1
5318   cat conftest.err >&5
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } >/dev/null; then
5321   if test -s conftest.err; then
5322     ac_cpp_err=$ac_c_preproc_warn_flag
5323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5324   else
5325     ac_cpp_err=
5326   fi
5327 else
5328   ac_cpp_err=yes
5329 fi
5330 if test -z "$ac_cpp_err"; then
5331   :
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336   # Broken: fails on valid input.
5337 continue
5338 fi
5339
5340 rm -f conftest.err conftest.$ac_ext
5341
5342   # OK, works on sane cases.  Now check whether nonexistent headers
5343   # can be detected and how.
5344   cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350 #include <ac_nonexistent.h>
5351 _ACEOF
5352 if { (ac_try="$ac_cpp conftest.$ac_ext"
5353 case "(($ac_try" in
5354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355   *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } >/dev/null; then
5365   if test -s conftest.err; then
5366     ac_cpp_err=$ac_c_preproc_warn_flag
5367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5368   else
5369     ac_cpp_err=
5370   fi
5371 else
5372   ac_cpp_err=yes
5373 fi
5374 if test -z "$ac_cpp_err"; then
5375   # Broken: success on invalid input.
5376 continue
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381   # Passes both tests.
5382 ac_preproc_ok=:
5383 break
5384 fi
5385
5386 rm -f conftest.err conftest.$ac_ext
5387
5388 done
5389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390 rm -f conftest.err conftest.$ac_ext
5391 if $ac_preproc_ok; then
5392   :
5393 else
5394   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5395 See \`config.log' for more details." >&5
5396 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5397 See \`config.log' for more details." >&2;}
5398    { (exit 1); exit 1; }; }
5399 fi
5400
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 if test -n "$ac_tool_prefix"; then
5413   for ac_prog in gcc
5414   do
5415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419 if test "${ac_cv_prog_CC+set}" = set; then
5420   echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422   if test -n "$CC"; then
5423   ac_cv_prog_CC="$CC" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428   IFS=$as_save_IFS
5429   test -z "$as_dir" && as_dir=.
5430   for ac_exec_ext in '' $ac_executable_extensions; do
5431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5432     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434     break 2
5435   fi
5436 done
5437 done
5438 IFS=$as_save_IFS
5439
5440 fi
5441 fi
5442 CC=$ac_cv_prog_CC
5443 if test -n "$CC"; then
5444   { echo "$as_me:$LINENO: result: $CC" >&5
5445 echo "${ECHO_T}$CC" >&6; }
5446 else
5447   { echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6; }
5449 fi
5450
5451
5452     test -n "$CC" && break
5453   done
5454 fi
5455 if test -z "$CC"; then
5456   ac_ct_CC=$CC
5457   for ac_prog in gcc
5458 do
5459   # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   if test -n "$ac_ct_CC"; then
5467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5476     ac_cv_prog_ac_ct_CC="$ac_prog"
5477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5487 if test -n "$ac_ct_CC"; then
5488   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5489 echo "${ECHO_T}$ac_ct_CC" >&6; }
5490 else
5491   { echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6; }
5493 fi
5494
5495
5496   test -n "$ac_ct_CC" && break
5497 done
5498
5499   if test "x$ac_ct_CC" = x; then
5500     CC=""
5501   else
5502     case $cross_compiling:$ac_tool_warned in
5503 yes:)
5504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5505 whose name does not start with the host triplet.  If you think this
5506 configuration is useful to you, please write to autoconf@gnu.org." >&5
5507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5508 whose name does not start with the host triplet.  If you think this
5509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5510 ac_tool_warned=yes ;;
5511 esac
5512     CC=$ac_ct_CC
5513   fi
5514 fi
5515
5516
5517 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5518 See \`config.log' for more details." >&5
5519 echo "$as_me: error: no acceptable C compiler found in \$PATH
5520 See \`config.log' for more details." >&2;}
5521    { (exit 1); exit 1; }; }
5522
5523 # Provide some information about the compiler.
5524 echo "$as_me:$LINENO: checking for C compiler version" >&5
5525 ac_compiler=`set X $ac_compile; echo $2`
5526 { (ac_try="$ac_compiler --version >&5"
5527 case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532   (eval "$ac_compiler --version >&5") 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }
5536 { (ac_try="$ac_compiler -v >&5"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542   (eval "$ac_compiler -v >&5") 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }
5546 { (ac_try="$ac_compiler -V >&5"
5547 case "(($ac_try" in
5548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549   *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552   (eval "$ac_compiler -V >&5") 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }
5556
5557 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5558 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5559 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568
5569 int
5570 main ()
5571 {
5572 #ifndef __GNUC__
5573        choke me
5574 #endif
5575
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_compile") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595   { (case "(($ac_try" in
5596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597   *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600   (eval "$ac_try") 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; } &&
5604          { ac_try='test -s conftest.$ac_objext'
5605   { (case "(($ac_try" in
5606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607   *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610   (eval "$ac_try") 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; }; then
5614   ac_compiler_gnu=yes
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619         ac_compiler_gnu=no
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5624
5625 fi
5626 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5627 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5628 GCC=`test $ac_compiler_gnu = yes && echo yes`
5629 ac_test_CFLAGS=${CFLAGS+set}
5630 ac_save_CFLAGS=$CFLAGS
5631 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5632 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_cc_g+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   ac_save_c_werror_flag=$ac_c_werror_flag
5637    ac_c_werror_flag=yes
5638    ac_cv_prog_cc_g=no
5639    CFLAGS="-g"
5640    cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646
5647 int
5648 main ()
5649 {
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_compile") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670   { (case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675   (eval "$ac_try") 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; } &&
5679          { ac_try='test -s conftest.$ac_objext'
5680   { (case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_try") 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); }; }; then
5689   ac_cv_prog_cc_g=yes
5690 else
5691   echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694         CFLAGS=""
5695       cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701
5702 int
5703 main ()
5704 {
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5712 case "(($ac_try" in
5713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714   *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717   (eval "$ac_compile") 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5725   { (case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_try") 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; } &&
5734          { ac_try='test -s conftest.$ac_objext'
5735   { (case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_try") 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   :
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749         ac_c_werror_flag=$ac_save_c_werror_flag
5750          CFLAGS="-g"
5751          cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h.  */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h.  */
5757
5758 int
5759 main ()
5760 {
5761
5762   ;
5763   return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext
5767 if { (ac_try="$ac_compile"
5768 case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773   (eval "$ac_compile") 2>conftest.er1
5774   ac_status=$?
5775   grep -v '^ *+' conftest.er1 >conftest.err
5776   rm -f conftest.er1
5777   cat conftest.err >&5
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } &&
5780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5781   { (case "(($ac_try" in
5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783   *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786   (eval "$ac_try") 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_try") 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; }; then
5800   ac_cv_prog_cc_g=yes
5801 else
5802   echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805
5806 fi
5807
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815    ac_c_werror_flag=$ac_save_c_werror_flag
5816 fi
5817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5819 if test "$ac_test_CFLAGS" = set; then
5820   CFLAGS=$ac_save_CFLAGS
5821 elif test $ac_cv_prog_cc_g = yes; then
5822   if test "$GCC" = yes; then
5823     CFLAGS="-g -O2"
5824   else
5825     CFLAGS="-g"
5826   fi
5827 else
5828   if test "$GCC" = yes; then
5829     CFLAGS="-O2"
5830   else
5831     CFLAGS=
5832   fi
5833 fi
5834 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5835 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5836 if test "${ac_cv_prog_cc_c89+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   ac_cv_prog_cc_c89=no
5840 ac_save_CC=$CC
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847 #include <stdarg.h>
5848 #include <stdio.h>
5849 #include <sys/types.h>
5850 #include <sys/stat.h>
5851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5852 struct buf { int x; };
5853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5854 static char *e (p, i)
5855      char **p;
5856      int i;
5857 {
5858   return p[i];
5859 }
5860 static char *f (char * (*g) (char **, int), char **p, ...)
5861 {
5862   char *s;
5863   va_list v;
5864   va_start (v,p);
5865   s = g (p, va_arg (v,int));
5866   va_end (v);
5867   return s;
5868 }
5869
5870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5871    function prototypes and stuff, but not '\xHH' hex character constants.
5872    These don't provoke an error unfortunately, instead are silently treated
5873    as 'x'.  The following induces an error, until -std is added to get
5874    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5875    array size at least.  It's necessary to write '\x00'==0 to get something
5876    that's true only with -std.  */
5877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5878
5879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5880    inside strings and character constants.  */
5881 #define FOO(x) 'x'
5882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5883
5884 int test (int i, double x);
5885 struct s1 {int (*f) (int a);};
5886 struct s2 {int (*f) (double a);};
5887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5888 int argc;
5889 char **argv;
5890 int
5891 main ()
5892 {
5893 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5899         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5900 do
5901   CC="$ac_save_CC $ac_arg"
5902   rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909   (eval "$ac_compile") 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } &&
5916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5917   { (case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922   (eval "$ac_try") 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (case "(($ac_try" in
5928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929   *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932   (eval "$ac_try") 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936   ac_cv_prog_cc_c89=$ac_arg
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext
5945   test "x$ac_cv_prog_cc_c89" != "xno" && break
5946 done
5947 rm -f conftest.$ac_ext
5948 CC=$ac_save_CC
5949
5950 fi
5951 # AC_CACHE_VAL
5952 case "x$ac_cv_prog_cc_c89" in
5953   x)
5954     { echo "$as_me:$LINENO: result: none needed" >&5
5955 echo "${ECHO_T}none needed" >&6; } ;;
5956   xno)
5957     { echo "$as_me:$LINENO: result: unsupported" >&5
5958 echo "${ECHO_T}unsupported" >&6; } ;;
5959   *)
5960     CC="$CC $ac_cv_prog_cc_c89"
5961     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5962 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5963 esac
5964
5965
5966 ac_ext=c
5967 ac_cpp='$CPP $CPPFLAGS'
5968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971
5972 ac_ext=cpp
5973 ac_cpp='$CXXCPP $CPPFLAGS'
5974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5977 if test -z "$CXX"; then
5978   if test -n "$CCC"; then
5979     CXX=$CCC
5980   else
5981     if test -n "$ac_tool_prefix"; then
5982   for ac_prog in g++
5983   do
5984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_CXX+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   if test -n "$CXX"; then
5992   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 CXX=$ac_cv_prog_CXX
6012 if test -n "$CXX"; then
6013   { echo "$as_me:$LINENO: result: $CXX" >&5
6014 echo "${ECHO_T}$CXX" >&6; }
6015 else
6016   { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6018 fi
6019
6020
6021     test -n "$CXX" && break
6022   done
6023 fi
6024 if test -z "$CXX"; then
6025   ac_ct_CXX=$CXX
6026   for ac_prog in g++
6027 do
6028   # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   if test -n "$ac_ct_CXX"; then
6036   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043   for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_prog_ac_ct_CXX="$ac_prog"
6046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6056 if test -n "$ac_ct_CXX"; then
6057   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6058 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6059 else
6060   { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6062 fi
6063
6064
6065   test -n "$ac_ct_CXX" && break
6066 done
6067
6068   if test "x$ac_ct_CXX" = x; then
6069     CXX="g++"
6070   else
6071     case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6074 whose name does not start with the host triplet.  If you think this
6075 configuration is useful to you, please write to autoconf@gnu.org." >&5
6076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6077 whose name does not start with the host triplet.  If you think this
6078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081     CXX=$ac_ct_CXX
6082   fi
6083 fi
6084
6085   fi
6086 fi
6087 # Provide some information about the compiler.
6088 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6089 ac_compiler=`set X $ac_compile; echo $2`
6090 { (ac_try="$ac_compiler --version >&5"
6091 case "(($ac_try" in
6092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093   *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096   (eval "$ac_compiler --version >&5") 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }
6100 { (ac_try="$ac_compiler -v >&5"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_compiler -v >&5") 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }
6110 { (ac_try="$ac_compiler -V >&5"
6111 case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116   (eval "$ac_compiler -V >&5") 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }
6120
6121 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6122 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6123 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132
6133 int
6134 main ()
6135 {
6136 #ifndef __GNUC__
6137        choke me
6138 #endif
6139
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext
6145 if { (ac_try="$ac_compile"
6146 case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151   (eval "$ac_compile") 2>conftest.er1
6152   ac_status=$?
6153   grep -v '^ *+' conftest.er1 >conftest.err
6154   rm -f conftest.er1
6155   cat conftest.err >&5
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); } &&
6158          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6159   { (case "(($ac_try" in
6160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161   *) ac_try_echo=$ac_try;;
6162 esac
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164   (eval "$ac_try") 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; } &&
6168          { ac_try='test -s conftest.$ac_objext'
6169   { (case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_try") 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; }; then
6178   ac_compiler_gnu=yes
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183         ac_compiler_gnu=no
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6188
6189 fi
6190 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6191 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6192 GXX=`test $ac_compiler_gnu = yes && echo yes`
6193 ac_test_CXXFLAGS=${CXXFLAGS+set}
6194 ac_save_CXXFLAGS=$CXXFLAGS
6195 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6196 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_cxx_g+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6201    ac_cxx_werror_flag=yes
6202    ac_cv_prog_cxx_g=no
6203    CXXFLAGS="-g"
6204    cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210
6211 int
6212 main ()
6213 {
6214
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6221 case "(($ac_try" in
6222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223   *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226   (eval "$ac_compile") 2>conftest.er1
6227   ac_status=$?
6228   grep -v '^ *+' conftest.er1 >conftest.err
6229   rm -f conftest.er1
6230   cat conftest.err >&5
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6234   { (case "(($ac_try" in
6235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236   *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239   (eval "$ac_try") 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); }; } &&
6243          { ac_try='test -s conftest.$ac_objext'
6244   { (case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_try") 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; }; then
6253   ac_cv_prog_cxx_g=yes
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258         CXXFLAGS=""
6259       cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265
6266 int
6267 main ()
6268 {
6269
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6276 case "(($ac_try" in
6277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278   *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281   (eval "$ac_compile") 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6289   { (case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_try") 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; } &&
6298          { ac_try='test -s conftest.$ac_objext'
6299   { (case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_try") 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; }; then
6308   :
6309 else
6310   echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314          CXXFLAGS="-g"
6315          cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321
6322 int
6323 main ()
6324 {
6325
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6332 case "(($ac_try" in
6333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334   *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337   (eval "$ac_compile") 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } &&
6344          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6345   { (case "(($ac_try" in
6346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347   *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350   (eval "$ac_try") 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; } &&
6354          { ac_try='test -s conftest.$ac_objext'
6355   { (case "(($ac_try" in
6356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357   *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360   (eval "$ac_try") 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; }; then
6364   ac_cv_prog_cxx_g=yes
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369
6370 fi
6371
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 fi
6377
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6380 fi
6381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6382 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6383 if test "$ac_test_CXXFLAGS" = set; then
6384   CXXFLAGS=$ac_save_CXXFLAGS
6385 elif test $ac_cv_prog_cxx_g = yes; then
6386   if test "$GXX" = yes; then
6387     CXXFLAGS="-g -O2"
6388   else
6389     CXXFLAGS="-g"
6390   fi
6391 else
6392   if test "$GXX" = yes; then
6393     CXXFLAGS="-O2"
6394   else
6395     CXXFLAGS=
6396   fi
6397 fi
6398 ac_ext=c
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
6404
6405 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6406 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6407 if test "${lt_cv_path_NM+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   if test -n "$NM"; then
6411   # Let the user override the test.
6412   lt_cv_path_NM="$NM"
6413 else
6414   lt_nm_to_check="${ac_tool_prefix}nm"
6415   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6416     lt_nm_to_check="$lt_nm_to_check nm"
6417   fi
6418   for lt_tmp_nm in $lt_nm_to_check; do
6419     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6420     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6421       IFS="$lt_save_ifs"
6422       test -z "$ac_dir" && ac_dir=.
6423       tmp_nm="$ac_dir/$lt_tmp_nm"
6424       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6425         # Check to see if the nm accepts a BSD-compat flag.
6426         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6427         #   nm: unknown option "B" ignored
6428         # Tru64's nm complains that /dev/null is an invalid object file
6429         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6430         */dev/null* | *'Invalid file or object type'*)
6431           lt_cv_path_NM="$tmp_nm -B"
6432           break
6433           ;;
6434         *)
6435           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6436           */dev/null*)
6437             lt_cv_path_NM="$tmp_nm -p"
6438             break
6439             ;;
6440           *)
6441             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6442             continue # so that we can try to find one that supports BSD flags
6443             ;;
6444           esac
6445           ;;
6446         esac
6447       fi
6448     done
6449     IFS="$lt_save_ifs"
6450   done
6451   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6452 fi
6453 fi
6454 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6455 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6456 NM="$lt_cv_path_NM"
6457
6458
6459
6460 { echo "$as_me:$LINENO: checking for GNU make" >&5
6461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6462 if test "${llvm_cv_gnu_make_command+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   llvm_cv_gnu_make_command=''
6466  for a in "$MAKE" make gmake gnumake ; do
6467   if test -z "$a" ; then continue ; fi ;
6468   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6469   then
6470    llvm_cv_gnu_make_command=$a ;
6471    break;
6472   fi
6473  done
6474 fi
6475 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6477  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6478    ifGNUmake='' ;
6479  else
6480    ifGNUmake='#' ;
6481    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6482 echo "${ECHO_T}\"Not found\"" >&6; };
6483  fi
6484
6485
6486 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6488 LN_S=$as_ln_s
6489 if test "$LN_S" = "ln -s"; then
6490   { echo "$as_me:$LINENO: result: yes" >&5
6491 echo "${ECHO_T}yes" >&6; }
6492 else
6493   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6494 echo "${ECHO_T}no, using $LN_S" >&6; }
6495 fi
6496
6497 # Extract the first word of "cmp", so it can be a program name with args.
6498 set dummy cmp; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_path_CMP+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   case $CMP in
6505   [\\/]* | ?:[\\/]*)
6506   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6507   ;;
6508   *)
6509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514   for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6525   ;;
6526 esac
6527 fi
6528 CMP=$ac_cv_path_CMP
6529 if test -n "$CMP"; then
6530   { echo "$as_me:$LINENO: result: $CMP" >&5
6531 echo "${ECHO_T}$CMP" >&6; }
6532 else
6533   { echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6; }
6535 fi
6536
6537
6538 # Extract the first word of "cp", so it can be a program name with args.
6539 set dummy cp; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_CP+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $CP in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6566   ;;
6567 esac
6568 fi
6569 CP=$ac_cv_path_CP
6570 if test -n "$CP"; then
6571   { echo "$as_me:$LINENO: result: $CP" >&5
6572 echo "${ECHO_T}$CP" >&6; }
6573 else
6574   { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6576 fi
6577
6578
6579 # Extract the first word of "date", so it can be a program name with args.
6580 set dummy date; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_DATE+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   case $DATE in
6587   [\\/]* | ?:[\\/]*)
6588   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6589   ;;
6590   *)
6591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6607   ;;
6608 esac
6609 fi
6610 DATE=$ac_cv_path_DATE
6611 if test -n "$DATE"; then
6612   { echo "$as_me:$LINENO: result: $DATE" >&5
6613 echo "${ECHO_T}$DATE" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619
6620 # Extract the first word of "find", so it can be a program name with args.
6621 set dummy find; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_path_FIND+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   case $FIND in
6628   [\\/]* | ?:[\\/]*)
6629   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6630   ;;
6631   *)
6632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6648   ;;
6649 esac
6650 fi
6651 FIND=$ac_cv_path_FIND
6652 if test -n "$FIND"; then
6653   { echo "$as_me:$LINENO: result: $FIND" >&5
6654 echo "${ECHO_T}$FIND" >&6; }
6655 else
6656   { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6658 fi
6659
6660
6661 # Extract the first word of "grep", so it can be a program name with args.
6662 set dummy grep; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_GREP+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   case $GREP in
6669   [\\/]* | ?:[\\/]*)
6670   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6671   ;;
6672   *)
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6689   ;;
6690 esac
6691 fi
6692 GREP=$ac_cv_path_GREP
6693 if test -n "$GREP"; then
6694   { echo "$as_me:$LINENO: result: $GREP" >&5
6695 echo "${ECHO_T}$GREP" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701
6702 # Extract the first word of "mkdir", so it can be a program name with args.
6703 set dummy mkdir; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_MKDIR+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   case $MKDIR in
6710   [\\/]* | ?:[\\/]*)
6711   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6712   ;;
6713   *)
6714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719   for ac_exec_ext in '' $ac_executable_extensions; do
6720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6730   ;;
6731 esac
6732 fi
6733 MKDIR=$ac_cv_path_MKDIR
6734 if test -n "$MKDIR"; then
6735   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6736 echo "${ECHO_T}$MKDIR" >&6; }
6737 else
6738   { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742
6743 # Extract the first word of "mv", so it can be a program name with args.
6744 set dummy mv; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_MV+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   case $MV in
6751   [\\/]* | ?:[\\/]*)
6752   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6753   ;;
6754   *)
6755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6771   ;;
6772 esac
6773 fi
6774 MV=$ac_cv_path_MV
6775 if test -n "$MV"; then
6776   { echo "$as_me:$LINENO: result: $MV" >&5
6777 echo "${ECHO_T}$MV" >&6; }
6778 else
6779   { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6781 fi
6782
6783
6784 if test -n "$ac_tool_prefix"; then
6785   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_RANLIB+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   if test -n "$RANLIB"; then
6793   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 RANLIB=$ac_cv_prog_RANLIB
6813 if test -n "$RANLIB"; then
6814   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6815 echo "${ECHO_T}$RANLIB" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_RANLIB"; then
6824   ac_ct_RANLIB=$RANLIB
6825   # Extract the first word of "ranlib", so it can be a program name with args.
6826 set dummy ranlib; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   if test -n "$ac_ct_RANLIB"; then
6833   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_ac_ct_RANLIB="ranlib"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853 if test -n "$ac_ct_RANLIB"; then
6854   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6855 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861   if test "x$ac_ct_RANLIB" = x; then
6862     RANLIB=":"
6863   else
6864     case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet.  If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&5
6869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet.  If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872 ac_tool_warned=yes ;;
6873 esac
6874     RANLIB=$ac_ct_RANLIB
6875   fi
6876 else
6877   RANLIB="$ac_cv_prog_RANLIB"
6878 fi
6879
6880 # Extract the first word of "rm", so it can be a program name with args.
6881 set dummy rm; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_RM+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $RM in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6908   ;;
6909 esac
6910 fi
6911 RM=$ac_cv_path_RM
6912 if test -n "$RM"; then
6913   { echo "$as_me:$LINENO: result: $RM" >&5
6914 echo "${ECHO_T}$RM" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921 # Extract the first word of "sed", so it can be a program name with args.
6922 set dummy sed; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_SED+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $SED in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6949   ;;
6950 esac
6951 fi
6952 SED=$ac_cv_path_SED
6953 if test -n "$SED"; then
6954   { echo "$as_me:$LINENO: result: $SED" >&5
6955 echo "${ECHO_T}$SED" >&6; }
6956 else
6957   { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962 # Extract the first word of "tar", so it can be a program name with args.
6963 set dummy tar; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_TAR+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   case $TAR in
6970   [\\/]* | ?:[\\/]*)
6971   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6972   ;;
6973   *)
6974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979   for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6990   ;;
6991 esac
6992 fi
6993 TAR=$ac_cv_path_TAR
6994 if test -n "$TAR"; then
6995   { echo "$as_me:$LINENO: result: $TAR" >&5
6996 echo "${ECHO_T}$TAR" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000 fi
7001
7002
7003 # Extract the first word of "pwd", so it can be a program name with args.
7004 set dummy pwd; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_BINPWD+set}" = set; then
7008   echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010   case $BINPWD in
7011   [\\/]* | ?:[\\/]*)
7012   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7013   ;;
7014   *)
7015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7031   ;;
7032 esac
7033 fi
7034 BINPWD=$ac_cv_path_BINPWD
7035 if test -n "$BINPWD"; then
7036   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7037 echo "${ECHO_T}$BINPWD" >&6; }
7038 else
7039   { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041 fi
7042
7043
7044
7045 # Extract the first word of "Graphviz", so it can be a program name with args.
7046 set dummy Graphviz; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   case $GRAPHVIZ in
7053   [\\/]* | ?:[\\/]*)
7054   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7055   ;;
7056   *)
7057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062   for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7073   ;;
7074 esac
7075 fi
7076 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7077 if test -n "$GRAPHVIZ"; then
7078   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7079 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7080 else
7081   { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083 fi
7084
7085
7086 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_GRAPHVIZ 1
7090 _ACEOF
7091
7092     if test "$llvm_cv_os_type" = "MingW" ; then
7093     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7094   fi
7095
7096 cat >>confdefs.h <<_ACEOF
7097 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7098 _ACEOF
7099
7100 fi
7101 # Extract the first word of "dot", so it can be a program name with args.
7102 set dummy dot; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_DOT+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   case $DOT in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7129   ;;
7130 esac
7131 fi
7132 DOT=$ac_cv_path_DOT
7133 if test -n "$DOT"; then
7134   { echo "$as_me:$LINENO: result: $DOT" >&5
7135 echo "${ECHO_T}$DOT" >&6; }
7136 else
7137   { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7139 fi
7140
7141
7142 if test "$DOT" != "echo dot" ; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_DOT 1
7146 _ACEOF
7147
7148     if test "$llvm_cv_os_type" = "MingW" ; then
7149     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7150   fi
7151
7152 cat >>confdefs.h <<_ACEOF
7153 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7154 _ACEOF
7155
7156 fi
7157 for ac_prog in gv gsview32
7158 do
7159   # Extract the first word of "$ac_prog", so it can be a program name with args.
7160 set dummy $ac_prog; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_GV+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   case $GV in
7167   [\\/]* | ?:[\\/]*)
7168   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7169   ;;
7170   *)
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186   ;;
7187 esac
7188 fi
7189 GV=$ac_cv_path_GV
7190 if test -n "$GV"; then
7191   { echo "$as_me:$LINENO: result: $GV" >&5
7192 echo "${ECHO_T}$GV" >&6; }
7193 else
7194   { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7196 fi
7197
7198
7199   test -n "$GV" && break
7200 done
7201 test -n "$GV" || GV="echo gv"
7202
7203 if test "$GV" != "echo gv" ; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_GV 1
7207 _ACEOF
7208
7209     if test "$llvm_cv_os_type" = "MingW" ; then
7210     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7211   fi
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define LLVM_PATH_GV "$GV${EXEEXT}"
7215 _ACEOF
7216
7217 fi
7218 # Extract the first word of "dotty", so it can be a program name with args.
7219 set dummy dotty; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_DOTTY+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   case $DOTTY in
7226   [\\/]* | ?:[\\/]*)
7227   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7228   ;;
7229   *)
7230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235   for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7246   ;;
7247 esac
7248 fi
7249 DOTTY=$ac_cv_path_DOTTY
7250 if test -n "$DOTTY"; then
7251   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7252 echo "${ECHO_T}$DOTTY" >&6; }
7253 else
7254   { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7256 fi
7257
7258
7259 if test "$DOTTY" != "echo dotty" ; then
7260
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_DOTTY 1
7263 _ACEOF
7264
7265     if test "$llvm_cv_os_type" = "MingW" ; then
7266     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7267   fi
7268
7269 cat >>confdefs.h <<_ACEOF
7270 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7271 _ACEOF
7272
7273 fi
7274
7275
7276 # Extract the first word of "perl", so it can be a program name with args.
7277 set dummy perl; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_PERL+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   case $PERL in
7284   [\\/]* | ?:[\\/]*)
7285   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7286   ;;
7287   *)
7288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293   for ac_exec_ext in '' $ac_executable_extensions; do
7294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7304   ;;
7305 esac
7306 fi
7307 PERL=$ac_cv_path_PERL
7308 if test -n "$PERL"; then
7309   { echo "$as_me:$LINENO: result: $PERL" >&5
7310 echo "${ECHO_T}$PERL" >&6; }
7311 else
7312   { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7314 fi
7315
7316
7317 if test "$PERL" != "none"; then
7318   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7319 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7320   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7321     { echo "$as_me:$LINENO: result: yes" >&5
7322 echo "${ECHO_T}yes" >&6; }
7323   else
7324     PERL=none
7325     { echo "$as_me:$LINENO: result: not found" >&5
7326 echo "${ECHO_T}not found" >&6; }
7327   fi
7328 fi
7329
7330
7331 if test x"$PERL" = xnone; then
7332    HAVE_PERL=0
7333
7334    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7335 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7336    { (exit 1); exit 1; }; }
7337 else
7338    HAVE_PERL=1
7339
7340 fi
7341
7342 # Find a good install program.  We prefer a C program (faster),
7343 # so one script is as good as another.  But avoid the broken or
7344 # incompatible versions:
7345 # SysV /etc/install, /usr/sbin/install
7346 # SunOS /usr/etc/install
7347 # IRIX /sbin/install
7348 # AIX /bin/install
7349 # AmigaOS /C/install, which installs bootblocks on floppy discs
7350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7353 # OS/2's system install, which has a completely different semantic
7354 # ./install, which can be erroneously created by make from ./install.sh.
7355 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7357 if test -z "$INSTALL"; then
7358 if test "${ac_cv_path_install+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   # Account for people who put trailing slashes in PATH elements.
7367 case $as_dir/ in
7368   ./ | .// | /cC/* | \
7369   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7370   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7371   /usr/ucb/* ) ;;
7372   *)
7373     # OSF1 and SCO ODT 3.0 have their own names for install.
7374     # Don't use installbsd from OSF since it installs stuff as root
7375     # by default.
7376     for ac_prog in ginstall scoinst install; do
7377       for ac_exec_ext in '' $ac_executable_extensions; do
7378         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7379           if test $ac_prog = install &&
7380             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7381             # AIX install.  It has an incompatible calling convention.
7382             :
7383           elif test $ac_prog = install &&
7384             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7385             # program-specific install script used by HP pwplus--don't use.
7386             :
7387           else
7388             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7389             break 3
7390           fi
7391         fi
7392       done
7393     done
7394     ;;
7395 esac
7396 done
7397 IFS=$as_save_IFS
7398
7399
7400 fi
7401   if test "${ac_cv_path_install+set}" = set; then
7402     INSTALL=$ac_cv_path_install
7403   else
7404     # As a last resort, use the slow shell script.  Don't cache a
7405     # value for INSTALL within a source directory, because that will
7406     # break other packages using the cache if that directory is
7407     # removed, or if the value is a relative name.
7408     INSTALL=$ac_install_sh
7409   fi
7410 fi
7411 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7412 echo "${ECHO_T}$INSTALL" >&6; }
7413
7414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7415 # It thinks the first close brace ends the variable substitution.
7416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7417
7418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7419
7420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7421
7422
7423 # Extract the first word of "bzip2", so it can be a program name with args.
7424 set dummy bzip2; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_BZIP2+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   case $BZIP2 in
7431   [\\/]* | ?:[\\/]*)
7432   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7433   ;;
7434   *)
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440   for ac_exec_ext in '' $ac_executable_extensions; do
7441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450   ;;
7451 esac
7452 fi
7453 BZIP2=$ac_cv_path_BZIP2
7454 if test -n "$BZIP2"; then
7455   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7456 echo "${ECHO_T}$BZIP2" >&6; }
7457 else
7458   { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7460 fi
7461
7462
7463 # Extract the first word of "doxygen", so it can be a program name with args.
7464 set dummy doxygen; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $DOXYGEN in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490   ;;
7491 esac
7492 fi
7493 DOXYGEN=$ac_cv_path_DOXYGEN
7494 if test -n "$DOXYGEN"; then
7495   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496 echo "${ECHO_T}$DOXYGEN" >&6; }
7497 else
7498   { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7500 fi
7501
7502
7503 # Extract the first word of "groff", so it can be a program name with args.
7504 set dummy groff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GROFF+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   case $GROFF in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530   ;;
7531 esac
7532 fi
7533 GROFF=$ac_cv_path_GROFF
7534 if test -n "$GROFF"; then
7535   { echo "$as_me:$LINENO: result: $GROFF" >&5
7536 echo "${ECHO_T}$GROFF" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543 # Extract the first word of "gzip", so it can be a program name with args.
7544 set dummy gzip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_GZIP+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $GZIP in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 GZIP=$ac_cv_path_GZIP
7574 if test -n "$GZIP"; then
7575   { echo "$as_me:$LINENO: result: $GZIP" >&5
7576 echo "${ECHO_T}$GZIP" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583 # Extract the first word of "pod2html", so it can be a program name with args.
7584 set dummy pod2html; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_POD2HTML+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   case $POD2HTML in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610   ;;
7611 esac
7612 fi
7613 POD2HTML=$ac_cv_path_POD2HTML
7614 if test -n "$POD2HTML"; then
7615   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7616 echo "${ECHO_T}$POD2HTML" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623 # Extract the first word of "pod2man", so it can be a program name with args.
7624 set dummy pod2man; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_POD2MAN+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   case $POD2MAN in
7631   [\\/]* | ?:[\\/]*)
7632   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7633   ;;
7634   *)
7635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650   ;;
7651 esac
7652 fi
7653 POD2MAN=$ac_cv_path_POD2MAN
7654 if test -n "$POD2MAN"; then
7655   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7656 echo "${ECHO_T}$POD2MAN" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662
7663 # Extract the first word of "runtest", so it can be a program name with args.
7664 set dummy runtest; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_RUNTEST+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   case $RUNTEST in
7671   [\\/]* | ?:[\\/]*)
7672   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7673   ;;
7674   *)
7675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680   for ac_exec_ext in '' $ac_executable_extensions; do
7681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690   ;;
7691 esac
7692 fi
7693 RUNTEST=$ac_cv_path_RUNTEST
7694 if test -n "$RUNTEST"; then
7695   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7696 echo "${ECHO_T}$RUNTEST" >&6; }
7697 else
7698   { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7700 fi
7701
7702
7703
7704 no_itcl=true
7705 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7706 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7707
7708 # Check whether --with-tclinclude was given.
7709 if test "${with_tclinclude+set}" = set; then
7710   withval=$with_tclinclude; with_tclinclude=${withval}
7711 else
7712   with_tclinclude=''
7713 fi
7714
7715 if test "${ac_cv_path_tclsh+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718
7719 if test x"${with_tclinclude}" != x ; then
7720   if test -f ${with_tclinclude}/tclsh ; then
7721     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7722   elif test -f ${with_tclinclude}/src/tclsh ; then
7723     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7724   else
7725     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7726 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7727    { (exit 1); exit 1; }; }
7728   fi
7729 fi
7730
7731 if test x"${ac_cv_path_tclsh}" = x ; then
7732   { echo "$as_me:$LINENO: result: none" >&5
7733 echo "${ECHO_T}none" >&6; }
7734   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
7735 do
7736   # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_path_TCLSH+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   case $TCLSH in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753   for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763   ;;
7764 esac
7765 fi
7766 TCLSH=$ac_cv_path_TCLSH
7767 if test -n "$TCLSH"; then
7768   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7769 echo "${ECHO_T}$TCLSH" >&6; }
7770 else
7771   { echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6; }
7773 fi
7774
7775
7776   test -n "$TCLSH" && break
7777 done
7778
7779   if test x"${TCLSH}" = x ; then
7780     ac_cv_path_tclsh='';
7781   else
7782     ac_cv_path_tclsh="${TCLSH}";
7783   fi
7784 else
7785   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7786 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7787   TCLSH="${ac_cv_path_tclsh}"
7788
7789 fi
7790
7791 fi
7792
7793 # Extract the first word of "zip", so it can be a program name with args.
7794 set dummy zip; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_path_ZIP+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   case $ZIP in
7801   [\\/]* | ?:[\\/]*)
7802   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7803   ;;
7804   *)
7805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808   IFS=$as_save_IFS
7809   test -z "$as_dir" && as_dir=.
7810   for ac_exec_ext in '' $ac_executable_extensions; do
7811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7812     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814     break 2
7815   fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820   ;;
7821 esac
7822 fi
7823 ZIP=$ac_cv_path_ZIP
7824 if test -n "$ZIP"; then
7825   { echo "$as_me:$LINENO: result: $ZIP" >&5
7826 echo "${ECHO_T}$ZIP" >&6; }
7827 else
7828   { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7830 fi
7831
7832
7833 for ac_prog in ocamlc
7834 do
7835   # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7839 if test "${ac_cv_path_OCAMLC+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   case $OCAMLC in
7843   [\\/]* | ?:[\\/]*)
7844   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7845   ;;
7846   *)
7847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852   for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859 done
7860 IFS=$as_save_IFS
7861
7862   ;;
7863 esac
7864 fi
7865 OCAMLC=$ac_cv_path_OCAMLC
7866 if test -n "$OCAMLC"; then
7867   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7868 echo "${ECHO_T}$OCAMLC" >&6; }
7869 else
7870   { echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6; }
7872 fi
7873
7874
7875   test -n "$OCAMLC" && break
7876 done
7877
7878 for ac_prog in ocamlopt
7879 do
7880   # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7884 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   case $OCAMLOPT in
7888   [\\/]* | ?:[\\/]*)
7889   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7890   ;;
7891   *)
7892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897   for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907   ;;
7908 esac
7909 fi
7910 OCAMLOPT=$ac_cv_path_OCAMLOPT
7911 if test -n "$OCAMLOPT"; then
7912   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7913 echo "${ECHO_T}$OCAMLOPT" >&6; }
7914 else
7915   { echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6; }
7917 fi
7918
7919
7920   test -n "$OCAMLOPT" && break
7921 done
7922
7923 for ac_prog in ocamldep
7924 do
7925   # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7929 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   case $OCAMLDEP in
7933   [\\/]* | ?:[\\/]*)
7934   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7935   ;;
7936   *)
7937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942   for ac_exec_ext in '' $ac_executable_extensions; do
7943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7944     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949 done
7950 IFS=$as_save_IFS
7951
7952   ;;
7953 esac
7954 fi
7955 OCAMLDEP=$ac_cv_path_OCAMLDEP
7956 if test -n "$OCAMLDEP"; then
7957   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7958 echo "${ECHO_T}$OCAMLDEP" >&6; }
7959 else
7960   { echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6; }
7962 fi
7963
7964
7965   test -n "$OCAMLDEP" && break
7966 done
7967
7968 for ac_prog in ocamldoc
7969 do
7970   # Extract the first word of "$ac_prog", so it can be a program name with args.
7971 set dummy $ac_prog; ac_word=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   case $OCAMLDOC in
7978   [\\/]* | ?:[\\/]*)
7979   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7980   ;;
7981   *)
7982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985   IFS=$as_save_IFS
7986   test -z "$as_dir" && as_dir=.
7987   for ac_exec_ext in '' $ac_executable_extensions; do
7988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7989     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991     break 2
7992   fi
7993 done
7994 done
7995 IFS=$as_save_IFS
7996
7997   ;;
7998 esac
7999 fi
8000 OCAMLDOC=$ac_cv_path_OCAMLDOC
8001 if test -n "$OCAMLDOC"; then
8002   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8003 echo "${ECHO_T}$OCAMLDOC" >&6; }
8004 else
8005   { echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6; }
8007 fi
8008
8009
8010   test -n "$OCAMLDOC" && break
8011 done
8012
8013 for ac_prog in gas as
8014 do
8015   # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019 if test "${ac_cv_path_GAS+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022   case $GAS in
8023   [\\/]* | ?:[\\/]*)
8024   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8025   ;;
8026   *)
8027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032   for ac_exec_ext in '' $ac_executable_extensions; do
8033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8034     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039 done
8040 IFS=$as_save_IFS
8041
8042   ;;
8043 esac
8044 fi
8045 GAS=$ac_cv_path_GAS
8046 if test -n "$GAS"; then
8047   { echo "$as_me:$LINENO: result: $GAS" >&5
8048 echo "${ECHO_T}$GAS" >&6; }
8049 else
8050   { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8052 fi
8053
8054
8055   test -n "$GAS" && break
8056 done
8057
8058
8059 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8060 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8061 if test "${llvm_cv_link_use_r+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064    ac_ext=c
8065 ac_cpp='$CPP $CPPFLAGS'
8066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069
8070   oldcflags="$CFLAGS"
8071   CFLAGS="$CFLAGS -Wl,-R."
8072   cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078
8079 int
8080 main ()
8081 {
8082 int main() { return 0; }
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8089 case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_link") 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } &&
8101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102   { (case "(($ac_try" in
8103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104   *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107   (eval "$ac_try") 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; } &&
8111          { ac_try='test -s conftest$ac_exeext'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121   llvm_cv_link_use_r=yes
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126         llvm_cv_link_use_r=no
8127 fi
8128
8129 rm -f core conftest.err conftest.$ac_objext \
8130       conftest$ac_exeext conftest.$ac_ext
8131   CFLAGS="$oldcflags"
8132   ac_ext=c
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138
8139 fi
8140 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8141 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8142 if test "$llvm_cv_link_use_r" = yes ; then
8143
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_LINK_R 1
8146 _ACEOF
8147
8148   fi
8149
8150
8151 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8152 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8153 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156    ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161
8162   oldcflags="$CFLAGS"
8163   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 int
8172 main ()
8173 {
8174 int main() { return 0; }
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_link") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8194   { (case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_try") 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; } &&
8203          { ac_try='test -s conftest$ac_exeext'
8204   { (case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_try") 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; }; then
8213   llvm_cv_link_use_export_dynamic=yes
8214 else
8215   echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218         llvm_cv_link_use_export_dynamic=no
8219 fi
8220
8221 rm -f core conftest.err conftest.$ac_objext \
8222       conftest$ac_exeext conftest.$ac_ext
8223   CFLAGS="$oldcflags"
8224   ac_ext=c
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230
8231 fi
8232 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8233 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8234 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8235
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_LINK_EXPORT_DYNAMIC 1
8238 _ACEOF
8239
8240   fi
8241
8242
8243
8244
8245 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8247 if test "${ac_cv_c_const+set}" = set; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h.  */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h.  */
8256
8257 int
8258 main ()
8259 {
8260 /* FIXME: Include the comments suggested by Paul. */
8261 #ifndef __cplusplus
8262   /* Ultrix mips cc rejects this.  */
8263   typedef int charset[2];
8264   const charset x;
8265   /* SunOS 4.1.1 cc rejects this.  */
8266   char const *const *ccp;
8267   char **p;
8268   /* NEC SVR4.0.2 mips cc rejects this.  */
8269   struct point {int x, y;};
8270   static struct point const zero = {0,0};
8271   /* AIX XL C 1.02.0.0 rejects this.
8272      It does not let you subtract one const X* pointer from another in
8273      an arm of an if-expression whose if-part is not a constant
8274      expression */
8275   const char *g = "string";
8276   ccp = &g + (g ? g-g : 0);
8277   /* HPUX 7.0 cc rejects these. */
8278   ++ccp;
8279   p = (char**) ccp;
8280   ccp = (char const *const *) p;
8281   { /* SCO 3.2v4 cc rejects this.  */
8282     char *t;
8283     char const *s = 0 ? (char *) 0 : (char const *) 0;
8284
8285     *t++ = 0;
8286     if (s) return 0;
8287   }
8288   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8289     int x[] = {25, 17};
8290     const int *foo = &x[0];
8291     ++foo;
8292   }
8293   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8294     typedef const int *iptr;
8295     iptr p = 0;
8296     ++p;
8297   }
8298   { /* AIX XL C 1.02.0.0 rejects this saying
8299        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8300     struct s { int j; const int *ap[3]; };
8301     struct s *b; b->j = 5;
8302   }
8303   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8304     const int foo = 10;
8305     if (!foo) return 0;
8306   }
8307   return !x[0] && !zero.x;
8308 #endif
8309
8310   ;
8311   return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318   *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321   (eval "$ac_compile") 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329   { (case "(($ac_try" in
8330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331   *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334   (eval "$ac_try") 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest.$ac_objext'
8339   { (case "(($ac_try" in
8340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341   *) ac_try_echo=$ac_try;;
8342 esac
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344   (eval "$ac_try") 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; }; then
8348   ac_cv_c_const=yes
8349 else
8350   echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353         ac_cv_c_const=no
8354 fi
8355
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 fi
8358 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8359 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8360 if test $ac_cv_c_const = no; then
8361
8362 cat >>confdefs.h <<\_ACEOF
8363 #define const
8364 _ACEOF
8365
8366 fi
8367
8368
8369
8370
8371
8372
8373 ac_header_dirent=no
8374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8375   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8376 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8377 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h.  */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h.  */
8387 #include <sys/types.h>
8388 #include <$ac_hdr>
8389
8390 int
8391 main ()
8392 {
8393 if ((DIR *) 0)
8394 return 0;
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_compile") 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414   { (case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_try") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; } &&
8423          { ac_try='test -s conftest.$ac_objext'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; }; then
8433   eval "$as_ac_Header=yes"
8434 else
8435   echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438         eval "$as_ac_Header=no"
8439 fi
8440
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 fi
8443 ac_res=`eval echo '${'$as_ac_Header'}'`
8444                { echo "$as_me:$LINENO: result: $ac_res" >&5
8445 echo "${ECHO_T}$ac_res" >&6; }
8446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8447   cat >>confdefs.h <<_ACEOF
8448 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8449 _ACEOF
8450
8451 ac_header_dirent=$ac_hdr; break
8452 fi
8453
8454 done
8455 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8456 if test $ac_header_dirent = dirent.h; then
8457   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8459 if test "${ac_cv_search_opendir+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   ac_func_search_save_LIBS=$LIBS
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469
8470 /* Override any GCC internal prototype to avoid an error.
8471    Use char because int might match the return type of a GCC
8472    builtin and then its argument prototype would still apply.  */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 char opendir ();
8477 int
8478 main ()
8479 {
8480 return opendir ();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 for ac_lib in '' dir; do
8486   if test -z "$ac_lib"; then
8487     ac_res="none required"
8488   else
8489     ac_res=-l$ac_lib
8490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8491   fi
8492   rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499   (eval "$ac_link") 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8507   { (case "(($ac_try" in
8508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509   *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512   (eval "$ac_try") 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; } &&
8516          { ac_try='test -s conftest$ac_exeext'
8517   { (case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_try") 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_search_opendir=$ac_res
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531
8532 fi
8533
8534 rm -f core conftest.err conftest.$ac_objext \
8535       conftest$ac_exeext
8536   if test "${ac_cv_search_opendir+set}" = set; then
8537   break
8538 fi
8539 done
8540 if test "${ac_cv_search_opendir+set}" = set; then
8541   :
8542 else
8543   ac_cv_search_opendir=no
8544 fi
8545 rm conftest.$ac_ext
8546 LIBS=$ac_func_search_save_LIBS
8547 fi
8548 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8549 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8550 ac_res=$ac_cv_search_opendir
8551 if test "$ac_res" != no; then
8552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8553
8554 fi
8555
8556 else
8557   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8559 if test "${ac_cv_search_opendir+set}" = set; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562   ac_func_search_save_LIBS=$LIBS
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569
8570 /* Override any GCC internal prototype to avoid an error.
8571    Use char because int might match the return type of a GCC
8572    builtin and then its argument prototype would still apply.  */
8573 #ifdef __cplusplus
8574 extern "C"
8575 #endif
8576 char opendir ();
8577 int
8578 main ()
8579 {
8580 return opendir ();
8581   ;
8582   return 0;
8583 }
8584 _ACEOF
8585 for ac_lib in '' x; do
8586   if test -z "$ac_lib"; then
8587     ac_res="none required"
8588   else
8589     ac_res=-l$ac_lib
8590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8591   fi
8592   rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (ac_try="$ac_link"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_link") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607   { (case "(($ac_try" in
8608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609   *) ac_try_echo=$ac_try;;
8610 esac
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612   (eval "$ac_try") 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; } &&
8616          { ac_try='test -s conftest$ac_exeext'
8617   { (case "(($ac_try" in
8618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619   *) ac_try_echo=$ac_try;;
8620 esac
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622   (eval "$ac_try") 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; }; then
8626   ac_cv_search_opendir=$ac_res
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631
8632 fi
8633
8634 rm -f core conftest.err conftest.$ac_objext \
8635       conftest$ac_exeext
8636   if test "${ac_cv_search_opendir+set}" = set; then
8637   break
8638 fi
8639 done
8640 if test "${ac_cv_search_opendir+set}" = set; then
8641   :
8642 else
8643   ac_cv_search_opendir=no
8644 fi
8645 rm conftest.$ac_ext
8646 LIBS=$ac_func_search_save_LIBS
8647 fi
8648 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8649 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8650 ac_res=$ac_cv_search_opendir
8651 if test "$ac_res" != no; then
8652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8653
8654 fi
8655
8656 fi
8657
8658
8659 for ac_header in dlfcn.h
8660 do
8661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 fi
8668 ac_res=`eval echo '${'$as_ac_Header'}'`
8669                { echo "$as_me:$LINENO: result: $ac_res" >&5
8670 echo "${ECHO_T}$ac_res" >&6; }
8671 else
8672   # Is the header compilable?
8673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 $ac_includes_default
8682 #include <$ac_header>
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_compile") 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; } &&
8708          { ac_try='test -s conftest.$ac_objext'
8709   { (case "(($ac_try" in
8710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711   *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714   (eval "$ac_try") 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   ac_header_compiler=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723         ac_header_compiler=no
8724 fi
8725
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728 echo "${ECHO_T}$ac_header_compiler" >&6; }
8729
8730 # Is the header present?
8731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 #include <$ac_header>
8740 _ACEOF
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } >/dev/null; then
8754   if test -s conftest.err; then
8755     ac_cpp_err=$ac_c_preproc_warn_flag
8756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8757   else
8758     ac_cpp_err=
8759   fi
8760 else
8761   ac_cpp_err=yes
8762 fi
8763 if test -z "$ac_cpp_err"; then
8764   ac_header_preproc=yes
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769   ac_header_preproc=no
8770 fi
8771
8772 rm -f conftest.err conftest.$ac_ext
8773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8774 echo "${ECHO_T}$ac_header_preproc" >&6; }
8775
8776 # So?  What about this header?
8777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8778   yes:no: )
8779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8783     ac_header_preproc=yes
8784     ;;
8785   no:yes:* )
8786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8798     ( cat <<\_ASBOX
8799 ## ----------------------------------- ##
8800 ## Report this to llvmbugs@cs.uiuc.edu ##
8801 ## ----------------------------------- ##
8802 _ASBOX
8803      ) | sed "s/^/$as_me: WARNING:     /" >&2
8804     ;;
8805 esac
8806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811   eval "$as_ac_Header=\$ac_header_preproc"
8812 fi
8813 ac_res=`eval echo '${'$as_ac_Header'}'`
8814                { echo "$as_me:$LINENO: result: $ac_res" >&5
8815 echo "${ECHO_T}$ac_res" >&6; }
8816
8817 fi
8818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8819   cat >>confdefs.h <<_ACEOF
8820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8821 _ACEOF
8822
8823 fi
8824
8825 done
8826
8827 # Check whether --enable-ltdl-install was given.
8828 if test "${enable_ltdl_install+set}" = set; then
8829   enableval=$enable_ltdl_install;
8830 fi
8831
8832
8833
8834
8835 if test x"${enable_ltdl_install-no}" != xno; then
8836   INSTALL_LTDL_TRUE=
8837   INSTALL_LTDL_FALSE='#'
8838 else
8839   INSTALL_LTDL_TRUE='#'
8840   INSTALL_LTDL_FALSE=
8841 fi
8842
8843
8844
8845 if test x"${enable_ltdl_convenience-no}" != xno; then
8846   CONVENIENCE_LTDL_TRUE=
8847   CONVENIENCE_LTDL_FALSE='#'
8848 else
8849   CONVENIENCE_LTDL_TRUE='#'
8850   CONVENIENCE_LTDL_FALSE=
8851 fi
8852
8853
8854 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8856 library_names_spec=
8857 libname_spec='lib$name'
8858 soname_spec=
8859 shrext_cmds=".so"
8860 postinstall_cmds=
8861 postuninstall_cmds=
8862 finish_cmds=
8863 finish_eval=
8864 shlibpath_var=
8865 shlibpath_overrides_runpath=unknown
8866 version_type=none
8867 dynamic_linker="$host_os ld.so"
8868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869 if test "$GCC" = yes; then
8870   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8871   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8872     # if the path contains ";" then we assume it to be the separator
8873     # otherwise default to the standard path separator (i.e. ":") - it is
8874     # assumed that no part of a normal pathname contains ";" but that should
8875     # okay in the real world where ";" in dirpaths is itself problematic.
8876     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8877   else
8878     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8879   fi
8880 else
8881   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8882 fi
8883 need_lib_prefix=unknown
8884 hardcode_into_libs=no
8885
8886 # when you set need_version to no, make sure it does not cause -set_version
8887 # flags to be left without arguments
8888 need_version=unknown
8889
8890 case $host_os in
8891 aix3*)
8892   version_type=linux
8893   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8894   shlibpath_var=LIBPATH
8895
8896   # AIX 3 has no versioning support, so we append a major version to the name.
8897   soname_spec='${libname}${release}${shared_ext}$major'
8898   ;;
8899
8900 aix4* | aix5*)
8901   version_type=linux
8902   need_lib_prefix=no
8903   need_version=no
8904   hardcode_into_libs=yes
8905   if test "$host_cpu" = ia64; then
8906     # AIX 5 supports IA64
8907     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8908     shlibpath_var=LD_LIBRARY_PATH
8909   else
8910     # With GCC up to 2.95.x, collect2 would create an import file
8911     # for dependence libraries.  The import file would start with
8912     # the line `#! .'.  This would cause the generated library to
8913     # depend on `.', always an invalid library.  This was fixed in
8914     # development snapshots of GCC prior to 3.0.
8915     case $host_os in
8916       aix4 | aix4.[01] | aix4.[01].*)
8917       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8918            echo ' yes '
8919            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8920         :
8921       else
8922         can_build_shared=no
8923       fi
8924       ;;
8925     esac
8926     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8927     # soname into executable. Probably we can add versioning support to
8928     # collect2, so additional links can be useful in future.
8929     if test "$aix_use_runtimelinking" = yes; then
8930       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8931       # instead of lib<name>.a to let people know that these are not
8932       # typical AIX shared libraries.
8933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934     else
8935       # We preserve .a as extension for shared libraries through AIX4.2
8936       # and later when we are not doing run time linking.
8937       library_names_spec='${libname}${release}.a $libname.a'
8938       soname_spec='${libname}${release}${shared_ext}$major'
8939     fi
8940     shlibpath_var=LIBPATH
8941   fi
8942   ;;
8943
8944 amigaos*)
8945   library_names_spec='$libname.ixlibrary $libname.a'
8946   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8947   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'
8948   ;;
8949
8950 beos*)
8951   library_names_spec='${libname}${shared_ext}'
8952   dynamic_linker="$host_os ld.so"
8953   shlibpath_var=LIBRARY_PATH
8954   ;;
8955
8956 bsdi[45]*)
8957   version_type=linux
8958   need_version=no
8959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960   soname_spec='${libname}${release}${shared_ext}$major'
8961   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8962   shlibpath_var=LD_LIBRARY_PATH
8963   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8964   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8965   # the default ld.so.conf also contains /usr/contrib/lib and
8966   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8967   # libtool to hard-code these into programs
8968   ;;
8969
8970 cygwin* | mingw* | pw32*)
8971   version_type=windows
8972   shrext_cmds=".dll"
8973   need_version=no
8974   need_lib_prefix=no
8975
8976   case $GCC,$host_os in
8977   yes,cygwin* | yes,mingw* | yes,pw32*)
8978     library_names_spec='$libname.dll.a'
8979     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8980     postinstall_cmds='base_file=`basename \${file}`~
8981       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8982       dldir=$destdir/`dirname \$dlpath`~
8983       test -d \$dldir || mkdir -p \$dldir~
8984       $install_prog $dir/$dlname \$dldir/$dlname~
8985       chmod a+x \$dldir/$dlname'
8986     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8987       dlpath=$dir/\$dldll~
8988        $rm \$dlpath'
8989     shlibpath_overrides_runpath=yes
8990
8991     case $host_os in
8992     cygwin*)
8993       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8994       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8996       ;;
8997     mingw*)
8998       # MinGW DLLs use traditional 'lib' prefix
8999       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9001       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9002         # It is most probably a Windows format PATH printed by
9003         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9004         # path with ; separators, and with drive letters. We can handle the
9005         # drive letters (cygwin fileutils understands them), so leave them,
9006         # especially as we might pass files found there to a mingw objdump,
9007         # which wouldn't understand a cygwinified path. Ahh.
9008         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9009       else
9010         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9011       fi
9012       ;;
9013     pw32*)
9014       # pw32 DLLs use 'pw' prefix rather than 'lib'
9015       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016       ;;
9017     esac
9018     ;;
9019
9020   *)
9021     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9022     ;;
9023   esac
9024   dynamic_linker='Win32 ld.exe'
9025   # FIXME: first we should search . and the directory the executable is in
9026   shlibpath_var=PATH
9027   ;;
9028
9029 darwin* | rhapsody*)
9030   dynamic_linker="$host_os dyld"
9031   version_type=darwin
9032   need_lib_prefix=no
9033   need_version=no
9034   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9035   soname_spec='${libname}${release}${major}$shared_ext'
9036   shlibpath_overrides_runpath=yes
9037   shlibpath_var=DYLD_LIBRARY_PATH
9038   shrext_cmds='.dylib'
9039   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9040   if test "$GCC" = yes; then
9041     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"`
9042   else
9043     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9044   fi
9045   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9046   ;;
9047
9048 dgux*)
9049   version_type=linux
9050   need_lib_prefix=no
9051   need_version=no
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   ;;
9056
9057 freebsd1*)
9058   dynamic_linker=no
9059   ;;
9060
9061 kfreebsd*-gnu)
9062   version_type=linux
9063   need_lib_prefix=no
9064   need_version=no
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   shlibpath_var=LD_LIBRARY_PATH
9068   shlibpath_overrides_runpath=no
9069   hardcode_into_libs=yes
9070   dynamic_linker='GNU ld.so'
9071   ;;
9072
9073 freebsd* | dragonfly*)
9074   # DragonFly does not have aout.  When/if they implement a new
9075   # versioning mechanism, adjust this.
9076   if test -x /usr/bin/objformat; then
9077     objformat=`/usr/bin/objformat`
9078   else
9079     case $host_os in
9080     freebsd[123]*) objformat=aout ;;
9081     *) objformat=elf ;;
9082     esac
9083   fi
9084   version_type=freebsd-$objformat
9085   case $version_type in
9086     freebsd-elf*)
9087       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9088       need_version=no
9089       need_lib_prefix=no
9090       ;;
9091     freebsd-*)
9092       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9093       need_version=yes
9094       ;;
9095   esac
9096   shlibpath_var=LD_LIBRARY_PATH
9097   case $host_os in
9098   freebsd2*)
9099     shlibpath_overrides_runpath=yes
9100     ;;
9101   freebsd3.[01]* | freebsdelf3.[01]*)
9102     shlibpath_overrides_runpath=yes
9103     hardcode_into_libs=yes
9104     ;;
9105   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9106   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9107     shlibpath_overrides_runpath=no
9108     hardcode_into_libs=yes
9109     ;;
9110   freebsd*) # from 4.6 on
9111     shlibpath_overrides_runpath=yes
9112     hardcode_into_libs=yes
9113     ;;
9114   esac
9115   ;;
9116
9117 gnu*)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   hardcode_into_libs=yes
9125   ;;
9126
9127 hpux9* | hpux10* | hpux11*)
9128   # Give a soname corresponding to the major version so that dld.sl refuses to
9129   # link against other versions.
9130   version_type=sunos
9131   need_lib_prefix=no
9132   need_version=no
9133   case $host_cpu in
9134   ia64*)
9135     shrext_cmds='.so'
9136     hardcode_into_libs=yes
9137     dynamic_linker="$host_os dld.so"
9138     shlibpath_var=LD_LIBRARY_PATH
9139     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141     soname_spec='${libname}${release}${shared_ext}$major'
9142     if test "X$HPUX_IA64_MODE" = X32; then
9143       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9144     else
9145       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9146     fi
9147     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9148     ;;
9149    hppa*64*)
9150      shrext_cmds='.sl'
9151      hardcode_into_libs=yes
9152      dynamic_linker="$host_os dld.sl"
9153      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9154      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156      soname_spec='${libname}${release}${shared_ext}$major'
9157      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9158      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9159      ;;
9160    *)
9161     shrext_cmds='.sl'
9162     dynamic_linker="$host_os dld.sl"
9163     shlibpath_var=SHLIB_PATH
9164     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166     soname_spec='${libname}${release}${shared_ext}$major'
9167     ;;
9168   esac
9169   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9170   postinstall_cmds='chmod 555 $lib'
9171   ;;
9172
9173 interix3*)
9174   version_type=linux
9175   need_lib_prefix=no
9176   need_version=no
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=no
9182   hardcode_into_libs=yes
9183   ;;
9184
9185 irix5* | irix6* | nonstopux*)
9186   case $host_os in
9187     nonstopux*) version_type=nonstopux ;;
9188     *)
9189         if test "$lt_cv_prog_gnu_ld" = yes; then
9190                 version_type=linux
9191         else
9192                 version_type=irix
9193         fi ;;
9194   esac
9195   need_lib_prefix=no
9196   need_version=no
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9199   case $host_os in
9200   irix5* | nonstopux*)
9201     libsuff= shlibsuff=
9202     ;;
9203   *)
9204     case $LD in # libtool.m4 will add one of these switches to LD
9205     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9206       libsuff= shlibsuff= libmagic=32-bit;;
9207     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9208       libsuff=32 shlibsuff=N32 libmagic=N32;;
9209     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9210       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9211     *) libsuff= shlibsuff= libmagic=never-match;;
9212     esac
9213     ;;
9214   esac
9215   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9216   shlibpath_overrides_runpath=no
9217   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9218   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9219   hardcode_into_libs=yes
9220   ;;
9221
9222 # No shared lib support for Linux oldld, aout, or coff.
9223 linux*oldld* | linux*aout* | linux*coff*)
9224   dynamic_linker=no
9225   ;;
9226
9227 # This must be Linux ELF.
9228 linux*)
9229   version_type=linux
9230   need_lib_prefix=no
9231   need_version=no
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233   soname_spec='${libname}${release}${shared_ext}$major'
9234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9235   shlibpath_var=LD_LIBRARY_PATH
9236   shlibpath_overrides_runpath=no
9237   # This implies no fast_install, which is unacceptable.
9238   # Some rework will be needed to allow for fast_install
9239   # before this can be enabled.
9240   hardcode_into_libs=yes
9241
9242   # Append ld.so.conf contents to the search path
9243   if test -f /etc/ld.so.conf; then
9244     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' ' '`
9245     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9246   fi
9247
9248   # We used to test for /lib/ld.so.1 and disable shared libraries on
9249   # powerpc, because MkLinux only supported shared libraries with the
9250   # GNU dynamic linker.  Since this was broken with cross compilers,
9251   # most powerpc-linux boxes support dynamic linking these days and
9252   # people can always --disable-shared, the test was removed, and we
9253   # assume the GNU/Linux dynamic linker is in use.
9254   dynamic_linker='GNU/Linux ld.so'
9255   ;;
9256
9257 knetbsd*-gnu)
9258   version_type=linux
9259   need_lib_prefix=no
9260   need_version=no
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9262   soname_spec='${libname}${release}${shared_ext}$major'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   shlibpath_overrides_runpath=no
9265   hardcode_into_libs=yes
9266   dynamic_linker='GNU ld.so'
9267   ;;
9268
9269 netbsd*)
9270   version_type=sunos
9271   need_lib_prefix=no
9272   need_version=no
9273   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276     dynamic_linker='NetBSD (a.out) ld.so'
9277   else
9278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9279     soname_spec='${libname}${release}${shared_ext}$major'
9280     dynamic_linker='NetBSD ld.elf_so'
9281   fi
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=yes
9284   hardcode_into_libs=yes
9285   ;;
9286
9287 newsos6)
9288   version_type=linux
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   shlibpath_overrides_runpath=yes
9292   ;;
9293
9294 nto-qnx*)
9295   version_type=linux
9296   need_lib_prefix=no
9297   need_version=no
9298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299   soname_spec='${libname}${release}${shared_ext}$major'
9300   shlibpath_var=LD_LIBRARY_PATH
9301   shlibpath_overrides_runpath=yes
9302   ;;
9303
9304 openbsd*)
9305   version_type=sunos
9306   sys_lib_dlsearch_path_spec="/usr/lib"
9307   need_lib_prefix=no
9308   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9309   case $host_os in
9310     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9311     *)                         need_version=no  ;;
9312   esac
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9317     case $host_os in
9318       openbsd2.[89] | openbsd2.[89].*)
9319         shlibpath_overrides_runpath=no
9320         ;;
9321       *)
9322         shlibpath_overrides_runpath=yes
9323         ;;
9324       esac
9325   else
9326     shlibpath_overrides_runpath=yes
9327   fi
9328   ;;
9329
9330 os2*)
9331   libname_spec='$name'
9332   shrext_cmds=".dll"
9333   need_lib_prefix=no
9334   library_names_spec='$libname${shared_ext} $libname.a'
9335   dynamic_linker='OS/2 ld.exe'
9336   shlibpath_var=LIBPATH
9337   ;;
9338
9339 osf3* | osf4* | osf5*)
9340   version_type=osf
9341   need_lib_prefix=no
9342   need_version=no
9343   soname_spec='${libname}${release}${shared_ext}$major'
9344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345   shlibpath_var=LD_LIBRARY_PATH
9346   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9347   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9348   ;;
9349
9350 solaris*)
9351   version_type=linux
9352   need_lib_prefix=no
9353   need_version=no
9354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355   soname_spec='${libname}${release}${shared_ext}$major'
9356   shlibpath_var=LD_LIBRARY_PATH
9357   shlibpath_overrides_runpath=yes
9358   hardcode_into_libs=yes
9359   # ldd complains unless libraries are executable
9360   postinstall_cmds='chmod +x $lib'
9361   ;;
9362
9363 sunos4*)
9364   version_type=sunos
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9366   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9367   shlibpath_var=LD_LIBRARY_PATH
9368   shlibpath_overrides_runpath=yes
9369   if test "$with_gnu_ld" = yes; then
9370     need_lib_prefix=no
9371   fi
9372   need_version=yes
9373   ;;
9374
9375 sysv4 | sysv4.3*)
9376   version_type=linux
9377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378   soname_spec='${libname}${release}${shared_ext}$major'
9379   shlibpath_var=LD_LIBRARY_PATH
9380   case $host_vendor in
9381     sni)
9382       shlibpath_overrides_runpath=no
9383       need_lib_prefix=no
9384       export_dynamic_flag_spec='${wl}-Blargedynsym'
9385       runpath_var=LD_RUN_PATH
9386       ;;
9387     siemens)
9388       need_lib_prefix=no
9389       ;;
9390     motorola)
9391       need_lib_prefix=no
9392       need_version=no
9393       shlibpath_overrides_runpath=no
9394       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9395       ;;
9396   esac
9397   ;;
9398
9399 sysv4*MP*)
9400   if test -d /usr/nec ;then
9401     version_type=linux
9402     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9403     soname_spec='$libname${shared_ext}.$major'
9404     shlibpath_var=LD_LIBRARY_PATH
9405   fi
9406   ;;
9407
9408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9409   version_type=freebsd-elf
9410   need_lib_prefix=no
9411   need_version=no
9412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9413   soname_spec='${libname}${release}${shared_ext}$major'
9414   shlibpath_var=LD_LIBRARY_PATH
9415   hardcode_into_libs=yes
9416   if test "$with_gnu_ld" = yes; then
9417     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9418     shlibpath_overrides_runpath=no
9419   else
9420     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9421     shlibpath_overrides_runpath=yes
9422     case $host_os in
9423       sco3.2v5*)
9424         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9425         ;;
9426     esac
9427   fi
9428   sys_lib_dlsearch_path_spec='/usr/lib'
9429   ;;
9430
9431 uts4*)
9432   version_type=linux
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434   soname_spec='${libname}${release}${shared_ext}$major'
9435   shlibpath_var=LD_LIBRARY_PATH
9436   ;;
9437
9438 *)
9439   dynamic_linker=no
9440   ;;
9441 esac
9442 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9443 echo "${ECHO_T}$dynamic_linker" >&6; }
9444 test "$dynamic_linker" = no && can_build_shared=no
9445
9446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9447 if test "$GCC" = yes; then
9448   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9449 fi
9450
9451
9452 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9453 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_shlibext+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457
9458 module=yes
9459 eval libltdl_cv_shlibext=$shrext_cmds
9460
9461 fi
9462 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9463 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9464 if test -n "$libltdl_cv_shlibext"; then
9465
9466 cat >>confdefs.h <<_ACEOF
9467 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9468 _ACEOF
9469
9470 fi
9471
9472
9473 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9474 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9475 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478   libltdl_cv_shlibpath_var="$shlibpath_var"
9479 fi
9480 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9481 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9482 if test -n "$libltdl_cv_shlibpath_var"; then
9483
9484 cat >>confdefs.h <<_ACEOF
9485 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9486 _ACEOF
9487
9488 fi
9489
9490
9491 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9492 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9493 if test "${libltdl_cv_sys_search_path+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9497 fi
9498 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9499 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9500 if test -n "$libltdl_cv_sys_search_path"; then
9501   sys_search_path=
9502   for dir in $libltdl_cv_sys_search_path; do
9503     if test -z "$sys_search_path"; then
9504       sys_search_path="$dir"
9505     else
9506       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9507     fi
9508   done
9509
9510 cat >>confdefs.h <<_ACEOF
9511 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9512 _ACEOF
9513
9514 fi
9515
9516 { echo "$as_me:$LINENO: checking for objdir" >&5
9517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9518 if test "${libltdl_cv_objdir+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   libltdl_cv_objdir="$objdir"
9522   if test -n "$objdir"; then
9523     :
9524   else
9525     rm -f .libs 2>/dev/null
9526     mkdir .libs 2>/dev/null
9527     if test -d .libs; then
9528       libltdl_cv_objdir=.libs
9529     else
9530       # MS-DOS does not allow filenames that begin with a dot.
9531       libltdl_cv_objdir=_libs
9532     fi
9533   rmdir .libs 2>/dev/null
9534   fi
9535
9536 fi
9537 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9538 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9539
9540 cat >>confdefs.h <<_ACEOF
9541 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9542 _ACEOF
9543
9544
9545
9546
9547
9548
9549 # Check for command to grab the raw symbol name followed by C symbol from nm.
9550 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9551 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9552 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555
9556 # These are sane defaults that work on at least a few old systems.
9557 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9558
9559 # Character class describing NM global symbol codes.
9560 symcode='[BCDEGRST]'
9561
9562 # Regexp to match symbols that can be accessed directly from C.
9563 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9564
9565 # Transform an extracted symbol line into a proper C declaration
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9567
9568 # Transform an extracted symbol line into symbol name and symbol address
9569 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'"
9570
9571 # Define system-specific variables.
9572 case $host_os in
9573 aix*)
9574   symcode='[BCDT]'
9575   ;;
9576 cygwin* | mingw* | pw32*)
9577   symcode='[ABCDGISTW]'
9578   ;;
9579 hpux*) # Its linker distinguishes data from code symbols
9580   if test "$host_cpu" = ia64; then
9581     symcode='[ABCDEGRST]'
9582   fi
9583   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9584   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'"
9585   ;;
9586 linux*)
9587   if test "$host_cpu" = ia64; then
9588     symcode='[ABCDGIRSTW]'
9589     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9590     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'"
9591   fi
9592   ;;
9593 irix* | nonstopux*)
9594   symcode='[BCDEGRST]'
9595   ;;
9596 osf*)
9597   symcode='[BCDEGQRST]'
9598   ;;
9599 solaris*)
9600   symcode='[BDRT]'
9601   ;;
9602 sco3.2v5*)
9603   symcode='[DT]'
9604   ;;
9605 sysv4.2uw2*)
9606   symcode='[DT]'
9607   ;;
9608 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9609   symcode='[ABDT]'
9610   ;;
9611 sysv4)
9612   symcode='[DFNSTU]'
9613   ;;
9614 esac
9615
9616 # Handle CRLF in mingw tool chain
9617 opt_cr=
9618 case $build_os in
9619 mingw*)
9620   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9621   ;;
9622 esac
9623
9624 # If we're using GNU nm, then use its standard symbol codes.
9625 case `$NM -V 2>&1` in
9626 *GNU* | *'with BFD'*)
9627   symcode='[ABCDGIRSTW]' ;;
9628 esac
9629
9630 # Try without a prefix undercore, then with it.
9631 for ac_symprfx in "" "_"; do
9632
9633   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9634   symxfrm="\\1 $ac_symprfx\\2 \\2"
9635
9636   # Write the raw and C identifiers.
9637   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9638
9639   # Check to see that the pipe works correctly.
9640   pipe_works=no
9641
9642   rm -f conftest*
9643   cat > conftest.$ac_ext <<EOF
9644 #ifdef __cplusplus
9645 extern "C" {
9646 #endif
9647 char nm_test_var;
9648 void nm_test_func(){}
9649 #ifdef __cplusplus
9650 }
9651 #endif
9652 int main(){nm_test_var='a';nm_test_func();return(0);}
9653 EOF
9654
9655   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656   (eval $ac_compile) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; then
9660     # Now try to grab the symbols.
9661     nlist=conftest.nm
9662     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } && test -s "$nlist"; then
9667       # Try sorting and uniquifying the output.
9668       if sort "$nlist" | uniq > "$nlist"T; then
9669         mv -f "$nlist"T "$nlist"
9670       else
9671         rm -f "$nlist"T
9672       fi
9673
9674       # Make sure that we snagged all the symbols we need.
9675       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9676         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9677           cat <<EOF > conftest.$ac_ext
9678 #ifdef __cplusplus
9679 extern "C" {
9680 #endif
9681
9682 EOF
9683           # Now generate the symbol file.
9684           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9685
9686           cat <<EOF >> conftest.$ac_ext
9687 #if defined (__STDC__) && __STDC__
9688 # define lt_ptr_t void *
9689 #else
9690 # define lt_ptr_t char *
9691 # define const
9692 #endif
9693
9694 /* The mapping between symbol names and symbols. */
9695 const struct {
9696   const char *name;
9697   lt_ptr_t address;
9698 }
9699 lt_preloaded_symbols[] =
9700 {
9701 EOF
9702           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9703           cat <<\EOF >> conftest.$ac_ext
9704   {0, (lt_ptr_t) 0}
9705 };
9706
9707 #ifdef __cplusplus
9708 }
9709 #endif
9710 EOF
9711           # Now try linking the two files.
9712           mv conftest.$ac_objext conftstm.$ac_objext
9713           lt_save_LIBS="$LIBS"
9714           lt_save_CFLAGS="$CFLAGS"
9715           LIBS="conftstm.$ac_objext"
9716           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9717           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718   (eval $ac_link) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9722             pipe_works=yes
9723           fi
9724           LIBS="$lt_save_LIBS"
9725           CFLAGS="$lt_save_CFLAGS"
9726         else
9727           echo "cannot find nm_test_func in $nlist" >&5
9728         fi
9729       else
9730         echo "cannot find nm_test_var in $nlist" >&5
9731       fi
9732     else
9733       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9734     fi
9735   else
9736     echo "$progname: failed program was:" >&5
9737     cat conftest.$ac_ext >&5
9738   fi
9739   rm -f conftest* conftst*
9740
9741   # Do not use the global_symbol_pipe unless it works.
9742   if test "$pipe_works" = yes; then
9743     break
9744   else
9745     lt_cv_sys_global_symbol_pipe=
9746   fi
9747 done
9748
9749 fi
9750
9751 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9752   lt_cv_sys_global_symbol_to_cdecl=
9753 fi
9754 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9755   { echo "$as_me:$LINENO: result: failed" >&5
9756 echo "${ECHO_T}failed" >&6; }
9757 else
9758   { echo "$as_me:$LINENO: result: ok" >&5
9759 echo "${ECHO_T}ok" >&6; }
9760 fi
9761
9762
9763 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9764 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9765 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9769     libltdl_cv_preloaded_symbols=yes
9770   else
9771     libltdl_cv_preloaded_symbols=no
9772   fi
9773
9774 fi
9775 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9776 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9777 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_PRELOADED_SYMBOLS 1
9781 _ACEOF
9782
9783 fi
9784
9785 LIBADD_DL=
9786
9787 ac_ext=c
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9792
9793
9794 { echo "$as_me:$LINENO: checking for shl_load" >&5
9795 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9796 if test "${ac_cv_func_shl_load+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807 #define shl_load innocuous_shl_load
9808
9809 /* System header to define __stub macros and hopefully few prototypes,
9810     which can conflict with char shl_load (); below.
9811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812     <limits.h> exists even on freestanding compilers.  */
9813
9814 #ifdef __STDC__
9815 # include <limits.h>
9816 #else
9817 # include <assert.h>
9818 #endif
9819
9820 #undef shl_load
9821
9822 /* Override any GCC internal prototype to avoid an error.
9823    Use char because int might match the return type of a GCC
9824    builtin and then its argument prototype would still apply.  */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char shl_load ();
9829 /* The GNU C library defines this for functions which it implements
9830     to always fail with ENOSYS.  Some functions are actually named
9831     something starting with __ and the normal name is an alias.  */
9832 #if defined __stub_shl_load || defined __stub___shl_load
9833 choke me
9834 #endif
9835
9836 int
9837 main ()
9838 {
9839 return shl_load ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_func_shl_load=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_func_shl_load=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9890 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9891 if test $ac_cv_func_shl_load = yes; then
9892
9893 cat >>confdefs.h <<\_ACEOF
9894 #define HAVE_SHL_LOAD 1
9895 _ACEOF
9896
9897 else
9898   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9899 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9901   echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903   ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-ldld  $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911
9912 /* Override any GCC internal prototype to avoid an error.
9913    Use char because int might match the return type of a GCC
9914    builtin and then its argument prototype would still apply.  */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char shl_load ();
9919 int
9920 main ()
9921 {
9922 return shl_load ();
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934   (eval "$ac_link") 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942   { (case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_try") 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; } &&
9951          { ac_try='test -s conftest$ac_exeext'
9952   { (case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_try") 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   ac_cv_lib_dld_shl_load=yes
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966         ac_cv_lib_dld_shl_load=no
9967 fi
9968
9969 rm -f core conftest.err conftest.$ac_objext \
9970       conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9972 fi
9973 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9974 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9975 if test $ac_cv_lib_dld_shl_load = yes; then
9976
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_SHL_LOAD 1
9979 _ACEOF
9980
9981         LIBADD_DL="$LIBADD_DL -ldld"
9982 else
9983   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-ldl  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char dlopen ();
10004 int
10005 main ()
10006 {
10007 return dlopen ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest$ac_exeext'
10037   { (case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_try") 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_lib_dl_dlopen=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051         ac_cv_lib_dl_dlopen=no
10052 fi
10053
10054 rm -f core conftest.err conftest.$ac_objext \
10055       conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10057 fi
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10060 if test $ac_cv_lib_dl_dlopen = yes; then
10061
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_LIBDL 1
10064 _ACEOF
10065
10066                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10067 else
10068   cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 #if HAVE_DLFCN_H
10075 #  include <dlfcn.h>
10076 #endif
10077
10078 int
10079 main ()
10080 {
10081 dlopen(0, 0);
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_link") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } &&
10100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101   { (case "(($ac_try" in
10102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103   *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106   (eval "$ac_try") 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; } &&
10110          { ac_try='test -s conftest$ac_exeext'
10111   { (case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_try") 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; }; then
10120
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_LIBDL 1
10123 _ACEOF
10124  libltdl_cv_func_dlopen="yes"
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsvld  $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142
10143 /* Override any GCC internal prototype to avoid an error.
10144    Use char because int might match the return type of a GCC
10145    builtin and then its argument prototype would still apply.  */
10146 #ifdef __cplusplus
10147 extern "C"
10148 #endif
10149 char dlopen ();
10150 int
10151 main ()
10152 {
10153 return dlopen ();
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_link") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } &&
10172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10173   { (case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_try") 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; } &&
10182          { ac_try='test -s conftest$ac_exeext'
10183   { (case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188   (eval "$ac_try") 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_cv_lib_svld_dlopen=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197         ac_cv_lib_svld_dlopen=no
10198 fi
10199
10200 rm -f core conftest.err conftest.$ac_objext \
10201       conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10206 if test $ac_cv_lib_svld_dlopen = yes; then
10207
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_LIBDL 1
10210 _ACEOF
10211
10212                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10213 else
10214   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10215 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10216 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   ac_check_lib_save_LIBS=$LIBS
10220 LIBS="-ldld  $LIBS"
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227
10228 /* Override any GCC internal prototype to avoid an error.
10229    Use char because int might match the return type of a GCC
10230    builtin and then its argument prototype would still apply.  */
10231 #ifdef __cplusplus
10232 extern "C"
10233 #endif
10234 char dld_link ();
10235 int
10236 main ()
10237 {
10238 return dld_link ();
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_link") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_cv_lib_dld_dld_link=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282         ac_cv_lib_dld_dld_link=no
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10291 if test $ac_cv_lib_dld_dld_link = yes; then
10292
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_DLD 1
10295 _ACEOF
10296
10297                 LIBADD_DL="$LIBADD_DL -ldld"
10298 else
10299   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10300 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10301 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10312 #define _dyld_func_lookup innocuous__dyld_func_lookup
10313
10314 /* System header to define __stub macros and hopefully few prototypes,
10315     which can conflict with char _dyld_func_lookup (); below.
10316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317     <limits.h> exists even on freestanding compilers.  */
10318
10319 #ifdef __STDC__
10320 # include <limits.h>
10321 #else
10322 # include <assert.h>
10323 #endif
10324
10325 #undef _dyld_func_lookup
10326
10327 /* Override any GCC internal prototype to avoid an error.
10328    Use char because int might match the return type of a GCC
10329    builtin and then its argument prototype would still apply.  */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char _dyld_func_lookup ();
10334 /* The GNU C library defines this for functions which it implements
10335     to always fail with ENOSYS.  Some functions are actually named
10336     something starting with __ and the normal name is an alias.  */
10337 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10338 choke me
10339 #endif
10340
10341 int
10342 main ()
10343 {
10344 return _dyld_func_lookup ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353   *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356   (eval "$ac_link") 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } &&
10363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364   { (case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_try") 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; } &&
10373          { ac_try='test -s conftest$ac_exeext'
10374   { (case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_try") 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; }; then
10383   ac_cv_func__dyld_func_lookup=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388         ac_cv_func__dyld_func_lookup=no
10389 fi
10390
10391 rm -f core conftest.err conftest.$ac_objext \
10392       conftest$ac_exeext conftest.$ac_ext
10393 fi
10394 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10395 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10396 if test $ac_cv_func__dyld_func_lookup = yes; then
10397
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_DYLD 1
10400 _ACEOF
10401
10402 fi
10403
10404
10405 fi
10406
10407
10408 fi
10409
10410
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext \
10414       conftest$ac_exeext conftest.$ac_ext
10415
10416 fi
10417
10418
10419 fi
10420
10421
10422 fi
10423
10424
10425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10426 then
10427   lt_save_LIBS="$LIBS"
10428   LIBS="$LIBS $LIBADD_DL"
10429
10430 for ac_func in dlerror
10431 do
10432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10446 #define $ac_func innocuous_$ac_func
10447
10448 /* System header to define __stub macros and hopefully few prototypes,
10449     which can conflict with char $ac_func (); below.
10450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451     <limits.h> exists even on freestanding compilers.  */
10452
10453 #ifdef __STDC__
10454 # include <limits.h>
10455 #else
10456 # include <assert.h>
10457 #endif
10458
10459 #undef $ac_func
10460
10461 /* Override any GCC internal prototype to avoid an error.
10462    Use char because int might match the return type of a GCC
10463    builtin and then its argument prototype would still apply.  */
10464 #ifdef __cplusplus
10465 extern "C"
10466 #endif
10467 char $ac_func ();
10468 /* The GNU C library defines this for functions which it implements
10469     to always fail with ENOSYS.  Some functions are actually named
10470     something starting with __ and the normal name is an alias.  */
10471 #if defined __stub_$ac_func || defined __stub___$ac_func
10472 choke me
10473 #endif
10474
10475 int
10476 main ()
10477 {
10478 return $ac_func ();
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490   (eval "$ac_link") 2>conftest.er1
10491   ac_status=$?
10492   grep -v '^ *+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } &&
10497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498   { (case "(($ac_try" in
10499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500   *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503   (eval "$ac_try") 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest$ac_exeext'
10508   { (case "(($ac_try" in
10509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510   *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513   (eval "$ac_try") 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); }; }; then
10517   eval "$as_ac_var=yes"
10518 else
10519   echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522         eval "$as_ac_var=no"
10523 fi
10524
10525 rm -f core conftest.err conftest.$ac_objext \
10526       conftest$ac_exeext conftest.$ac_ext
10527 fi
10528 ac_res=`eval echo '${'$as_ac_var'}'`
10529                { echo "$as_me:$LINENO: result: $ac_res" >&5
10530 echo "${ECHO_T}$ac_res" >&6; }
10531 if test `eval echo '${'$as_ac_var'}'` = yes; then
10532   cat >>confdefs.h <<_ACEOF
10533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10534 _ACEOF
10535
10536 fi
10537 done
10538
10539   LIBS="$lt_save_LIBS"
10540 fi
10541 ac_ext=c
10542 ac_cpp='$CPP $CPPFLAGS'
10543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546
10547
10548
10549 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10550 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10551 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   ac_cv_sys_symbol_underscore=no
10555   cat > conftest.$ac_ext <<EOF
10556 void nm_test_func(){}
10557 int main(){nm_test_func;return 0;}
10558 EOF
10559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560   (eval $ac_compile) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; then
10564     # Now try to grab the symbols.
10565     ac_nlist=conftest.nm
10566     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10567   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } && test -s "$ac_nlist"; then
10571       # See whether the symbols have a leading underscore.
10572       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10573         ac_cv_sys_symbol_underscore=yes
10574       else
10575         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10576           :
10577         else
10578           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10579         fi
10580       fi
10581     else
10582       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10583     fi
10584   else
10585     echo "configure: failed program was:" >&5
10586     cat conftest.c >&5
10587   fi
10588   rm -rf conftest*
10589
10590 fi
10591 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10592 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10593
10594
10595 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10596   if test x"$libltdl_cv_func_dlopen" = xyes ||
10597      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10598         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10599 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10600 if test "${libltdl_cv_need_uscore+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   libltdl_cv_need_uscore=unknown
10604           save_LIBS="$LIBS"
10605           LIBS="$LIBS $LIBADD_DL"
10606           if test "$cross_compiling" = yes; then :
10607   libltdl_cv_need_uscore=cross
10608 else
10609   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10610   lt_status=$lt_dlunknown
10611   cat > conftest.$ac_ext <<EOF
10612 #line 10612 "configure"
10613 #include "confdefs.h"
10614
10615 #if HAVE_DLFCN_H
10616 #include <dlfcn.h>
10617 #endif
10618
10619 #include <stdio.h>
10620
10621 #ifdef RTLD_GLOBAL
10622 #  define LT_DLGLOBAL           RTLD_GLOBAL
10623 #else
10624 #  ifdef DL_GLOBAL
10625 #    define LT_DLGLOBAL         DL_GLOBAL
10626 #  else
10627 #    define LT_DLGLOBAL         0
10628 #  endif
10629 #endif
10630
10631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10632    find out it does not work in some platform. */
10633 #ifndef LT_DLLAZY_OR_NOW
10634 #  ifdef RTLD_LAZY
10635 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10636 #  else
10637 #    ifdef DL_LAZY
10638 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10639 #    else
10640 #      ifdef RTLD_NOW
10641 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10642 #      else
10643 #        ifdef DL_NOW
10644 #          define LT_DLLAZY_OR_NOW      DL_NOW
10645 #        else
10646 #          define LT_DLLAZY_OR_NOW      0
10647 #        endif
10648 #      endif
10649 #    endif
10650 #  endif
10651 #endif
10652
10653 #ifdef __cplusplus
10654 extern "C" void exit (int);
10655 #endif
10656
10657 void fnord() { int i=42;}
10658 int main ()
10659 {
10660   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661   int status = $lt_dlunknown;
10662
10663   if (self)
10664     {
10665       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10666       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10667       /* dlclose (self); */
10668     }
10669   else
10670     puts (dlerror ());
10671
10672     exit (status);
10673 }
10674 EOF
10675   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676   (eval $ac_link) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10680     (./conftest; exit; ) >&5 2>/dev/null
10681     lt_status=$?
10682     case x$lt_status in
10683       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10684       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10685       x$lt_dlunknown|x*)  ;;
10686     esac
10687   else :
10688     # compilation failed
10689
10690   fi
10691 fi
10692 rm -fr conftest*
10693
10694           LIBS="$save_LIBS"
10695
10696 fi
10697 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10698 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10699   fi
10700 fi
10701
10702 if test x"$libltdl_cv_need_uscore" = xyes; then
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define NEED_USCORE 1
10706 _ACEOF
10707
10708 fi
10709
10710
10711 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10712 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10713 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   # PORTME does your system automatically load deplibs for dlopen?
10717   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10718   # For now, we just catch OSes we know something about -- in the
10719   # future, we'll try test this programmatically.
10720   libltdl_cv_sys_dlopen_deplibs=unknown
10721   case "$host_os" in
10722   aix3*|aix4.1.*|aix4.2.*)
10723     # Unknown whether this is true for these versions of AIX, but
10724     # we want this `case' here to explicitly catch those versions.
10725     libltdl_cv_sys_dlopen_deplibs=unknown
10726     ;;
10727   aix[45]*)
10728     libltdl_cv_sys_dlopen_deplibs=yes
10729     ;;
10730   darwin*)
10731     # Assuming the user has installed a libdl from somewhere, this is true
10732     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10733     libltdl_cv_sys_dlopen_deplibs=yes
10734     ;;
10735   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10736     # GNU and its variants, using gnu ld.so (Glibc)
10737     libltdl_cv_sys_dlopen_deplibs=yes
10738     ;;
10739   hpux10*|hpux11*)
10740     libltdl_cv_sys_dlopen_deplibs=yes
10741     ;;
10742   interix*)
10743     libltdl_cv_sys_dlopen_deplibs=yes
10744     ;;
10745   irix[12345]*|irix6.[01]*)
10746     # Catch all versions of IRIX before 6.2, and indicate that we don't
10747     # know how it worked for any of those versions.
10748     libltdl_cv_sys_dlopen_deplibs=unknown
10749     ;;
10750   irix*)
10751     # The case above catches anything before 6.2, and it's known that
10752     # at 6.2 and later dlopen does load deplibs.
10753     libltdl_cv_sys_dlopen_deplibs=yes
10754     ;;
10755   netbsd*)
10756     libltdl_cv_sys_dlopen_deplibs=yes
10757     ;;
10758   openbsd*)
10759     libltdl_cv_sys_dlopen_deplibs=yes
10760     ;;
10761   osf[1234]*)
10762     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10763     # it did *not* use an RPATH in a shared library to find objects the
10764     # library depends on, so we explictly say `no'.
10765     libltdl_cv_sys_dlopen_deplibs=no
10766     ;;
10767   osf5.0|osf5.0a|osf5.1)
10768     # dlopen *does* load deplibs and with the right loader patch applied
10769     # it even uses RPATH in a shared library to search for shared objects
10770     # that the library depends on, but there's no easy way to know if that
10771     # patch is installed.  Since this is the case, all we can really
10772     # say is unknown -- it depends on the patch being installed.  If
10773     # it is, this changes to `yes'.  Without it, it would be `no'.
10774     libltdl_cv_sys_dlopen_deplibs=unknown
10775     ;;
10776   osf*)
10777     # the two cases above should catch all versions of osf <= 5.1.  Read
10778     # the comments above for what we know about them.
10779     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10780     # is used to find them so we can finally say `yes'.
10781     libltdl_cv_sys_dlopen_deplibs=yes
10782     ;;
10783   solaris*)
10784     libltdl_cv_sys_dlopen_deplibs=yes
10785     ;;
10786   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10787     libltdl_cv_sys_dlopen_deplibs=yes
10788     ;;
10789   esac
10790
10791 fi
10792 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10793 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10794 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10795
10796 cat >>confdefs.h <<\_ACEOF
10797 #define LTDL_DLOPEN_DEPLIBS 1
10798 _ACEOF
10799
10800 fi
10801
10802
10803 for ac_header in argz.h
10804 do
10805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 fi
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813                { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10815 else
10816   # Is the header compilable?
10817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 $ac_includes_default
10826 #include <$ac_header>
10827 _ACEOF
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832   *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835   (eval "$ac_compile") 2>conftest.er1
10836   ac_status=$?
10837   grep -v '^ *+' conftest.er1 >conftest.err
10838   rm -f conftest.er1
10839   cat conftest.err >&5
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); } &&
10842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843   { (case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848   (eval "$ac_try") 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; } &&
10852          { ac_try='test -s conftest.$ac_objext'
10853   { (case "(($ac_try" in
10854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855   *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858   (eval "$ac_try") 2>&5
10859   ac_status=$?
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); }; }; then
10862   ac_header_compiler=yes
10863 else
10864   echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867         ac_header_compiler=no
10868 fi
10869
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10872 echo "${ECHO_T}$ac_header_compiler" >&6; }
10873
10874 # Is the header present?
10875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <$ac_header>
10884 _ACEOF
10885 if { (ac_try="$ac_cpp conftest.$ac_ext"
10886 case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } >/dev/null; then
10898   if test -s conftest.err; then
10899     ac_cpp_err=$ac_c_preproc_warn_flag
10900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10901   else
10902     ac_cpp_err=
10903   fi
10904 else
10905   ac_cpp_err=yes
10906 fi
10907 if test -z "$ac_cpp_err"; then
10908   ac_header_preproc=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913   ac_header_preproc=no
10914 fi
10915
10916 rm -f conftest.err conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 echo "${ECHO_T}$ac_header_preproc" >&6; }
10919
10920 # So?  What about this header?
10921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10922   yes:no: )
10923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927     ac_header_preproc=yes
10928     ;;
10929   no:yes:* )
10930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10942     ( cat <<\_ASBOX
10943 ## ----------------------------------- ##
10944 ## Report this to llvmbugs@cs.uiuc.edu ##
10945 ## ----------------------------------- ##
10946 _ASBOX
10947      ) | sed "s/^/$as_me: WARNING:     /" >&2
10948     ;;
10949 esac
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   eval "$as_ac_Header=\$ac_header_preproc"
10956 fi
10957 ac_res=`eval echo '${'$as_ac_Header'}'`
10958                { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10960
10961 fi
10962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10963   cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10965 _ACEOF
10966
10967 fi
10968
10969 done
10970
10971
10972 { echo "$as_me:$LINENO: checking for error_t" >&5
10973 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10974 if test "${ac_cv_type_error_t+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #if HAVE_ARGZ_H
10984 #  include <argz.h>
10985 #endif
10986
10987 typedef error_t ac__type_new_;
10988 int
10989 main ()
10990 {
10991 if ((ac__type_new_ *) 0)
10992   return 0;
10993 if (sizeof (ac__type_new_))
10994   return 0;
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext
11000 if { (ac_try="$ac_compile"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_compile") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest.$ac_objext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   ac_cv_type_error_t=yes
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         ac_cv_type_error_t=no
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11044 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11045 if test $ac_cv_type_error_t = yes; then
11046
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_ERROR_T 1
11049 _ACEOF
11050
11051
11052 else
11053
11054 cat >>confdefs.h <<\_ACEOF
11055 #define error_t int
11056 _ACEOF
11057
11058 fi
11059
11060
11061
11062
11063
11064
11065
11066 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11067 do
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11082 #define $ac_func innocuous_$ac_func
11083
11084 /* System header to define __stub macros and hopefully few prototypes,
11085     which can conflict with char $ac_func (); below.
11086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087     <limits.h> exists even on freestanding compilers.  */
11088
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094
11095 #undef $ac_func
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098    Use char because int might match the return type of a GCC
11099    builtin and then its argument prototype would still apply.  */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105     to always fail with ENOSYS.  Some functions are actually named
11106     something starting with __ and the normal name is an alias.  */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11108 choke me
11109 #endif
11110
11111 int
11112 main ()
11113 {
11114 return $ac_func ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_link") 2>conftest.er1
11127   ac_status=$?
11128   grep -v '^ *+' conftest.er1 >conftest.err
11129   rm -f conftest.er1
11130   cat conftest.err >&5
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } &&
11133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134   { (case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_try") 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; } &&
11143          { ac_try='test -s conftest$ac_exeext'
11144   { (case "(($ac_try" in
11145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146   *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149   (eval "$ac_try") 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   eval "$as_ac_var=yes"
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158         eval "$as_ac_var=no"
11159 fi
11160
11161 rm -f core conftest.err conftest.$ac_objext \
11162       conftest$ac_exeext conftest.$ac_ext
11163 fi
11164 ac_res=`eval echo '${'$as_ac_var'}'`
11165                { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11167 if test `eval echo '${'$as_ac_var'}'` = yes; then
11168   cat >>confdefs.h <<_ACEOF
11169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11170 _ACEOF
11171
11172 fi
11173 done
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11203                   stdio.h unistd.h
11204 do
11205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 fi
11212 ac_res=`eval echo '${'$as_ac_Header'}'`
11213                { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11215 else
11216   # Is the header compilable?
11217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h.  */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h.  */
11225 $ac_includes_default
11226 #include <$ac_header>
11227 _ACEOF
11228 rm -f conftest.$ac_objext
11229 if { (ac_try="$ac_compile"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_compile") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } &&
11242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11243   { (case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_try") 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; } &&
11252          { ac_try='test -s conftest.$ac_objext'
11253   { (case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_try") 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }; }; then
11262   ac_header_compiler=yes
11263 else
11264   echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11266
11267         ac_header_compiler=no
11268 fi
11269
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11272 echo "${ECHO_T}$ac_header_compiler" >&6; }
11273
11274 # Is the header present?
11275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h.  */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h.  */
11283 #include <$ac_header>
11284 _ACEOF
11285 if { (ac_try="$ac_cpp conftest.$ac_ext"
11286 case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } >/dev/null; then
11298   if test -s conftest.err; then
11299     ac_cpp_err=$ac_c_preproc_warn_flag
11300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11301   else
11302     ac_cpp_err=
11303   fi
11304 else
11305   ac_cpp_err=yes
11306 fi
11307 if test -z "$ac_cpp_err"; then
11308   ac_header_preproc=yes
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313   ac_header_preproc=no
11314 fi
11315
11316 rm -f conftest.err conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11318 echo "${ECHO_T}$ac_header_preproc" >&6; }
11319
11320 # So?  What about this header?
11321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11322   yes:no: )
11323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11327     ac_header_preproc=yes
11328     ;;
11329   no:yes:* )
11330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11342     ( cat <<\_ASBOX
11343 ## ----------------------------------- ##
11344 ## Report this to llvmbugs@cs.uiuc.edu ##
11345 ## ----------------------------------- ##
11346 _ASBOX
11347      ) | sed "s/^/$as_me: WARNING:     /" >&2
11348     ;;
11349 esac
11350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355   eval "$as_ac_Header=\$ac_header_preproc"
11356 fi
11357 ac_res=`eval echo '${'$as_ac_Header'}'`
11358                { echo "$as_me:$LINENO: result: $ac_res" >&5
11359 echo "${ECHO_T}$ac_res" >&6; }
11360
11361 fi
11362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11363   cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11365 _ACEOF
11366
11367 fi
11368
11369 done
11370
11371
11372
11373
11374
11375 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11376 do
11377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387 else
11388   # Is the header compilable?
11389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 $ac_includes_default
11398 #include <$ac_header>
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (ac_try="$ac_compile"
11402 case "(($ac_try" in
11403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404   *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407   (eval "$ac_compile") 2>conftest.er1
11408   ac_status=$?
11409   grep -v '^ *+' conftest.er1 >conftest.err
11410   rm -f conftest.er1
11411   cat conftest.err >&5
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } &&
11414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415   { (case "(($ac_try" in
11416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417   *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420   (eval "$ac_try") 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; } &&
11424          { ac_try='test -s conftest.$ac_objext'
11425   { (case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_try") 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_header_compiler=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439         ac_header_compiler=no
11440 fi
11441
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444 echo "${ECHO_T}$ac_header_compiler" >&6; }
11445
11446 # Is the header present?
11447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 #include <$ac_header>
11456 _ACEOF
11457 if { (ac_try="$ac_cpp conftest.$ac_ext"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11464   ac_status=$?
11465   grep -v '^ *+' conftest.er1 >conftest.err
11466   rm -f conftest.er1
11467   cat conftest.err >&5
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } >/dev/null; then
11470   if test -s conftest.err; then
11471     ac_cpp_err=$ac_c_preproc_warn_flag
11472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11473   else
11474     ac_cpp_err=
11475   fi
11476 else
11477   ac_cpp_err=yes
11478 fi
11479 if test -z "$ac_cpp_err"; then
11480   ac_header_preproc=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485   ac_header_preproc=no
11486 fi
11487
11488 rm -f conftest.err conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490 echo "${ECHO_T}$ac_header_preproc" >&6; }
11491
11492 # So?  What about this header?
11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11494   yes:no: )
11495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11499     ac_header_preproc=yes
11500     ;;
11501   no:yes:* )
11502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11514     ( cat <<\_ASBOX
11515 ## ----------------------------------- ##
11516 ## Report this to llvmbugs@cs.uiuc.edu ##
11517 ## ----------------------------------- ##
11518 _ASBOX
11519      ) | sed "s/^/$as_me: WARNING:     /" >&2
11520     ;;
11521 esac
11522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   eval "$as_ac_Header=\$ac_header_preproc"
11528 fi
11529 ac_res=`eval echo '${'$as_ac_Header'}'`
11530                { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11532
11533 fi
11534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535   cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11537 _ACEOF
11538
11539 fi
11540
11541 done
11542
11543
11544
11545 for ac_header in string.h strings.h
11546 do
11547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 fi
11554 ac_res=`eval echo '${'$as_ac_Header'}'`
11555                { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11557 else
11558   # Is the header compilable?
11559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 $ac_includes_default
11568 #include <$ac_header>
11569 _ACEOF
11570 rm -f conftest.$ac_objext
11571 if { (ac_try="$ac_compile"
11572 case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_compile") 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585   { (case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_try") 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; } &&
11594          { ac_try='test -s conftest.$ac_objext'
11595   { (case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_try") 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   ac_header_compiler=yes
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609         ac_header_compiler=no
11610 fi
11611
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11614 echo "${ECHO_T}$ac_header_compiler" >&6; }
11615
11616 # Is the header present?
11617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 #include <$ac_header>
11626 _ACEOF
11627 if { (ac_try="$ac_cpp conftest.$ac_ext"
11628 case "(($ac_try" in
11629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630   *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11634   ac_status=$?
11635   grep -v '^ *+' conftest.er1 >conftest.err
11636   rm -f conftest.er1
11637   cat conftest.err >&5
11638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639   (exit $ac_status); } >/dev/null; then
11640   if test -s conftest.err; then
11641     ac_cpp_err=$ac_c_preproc_warn_flag
11642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11643   else
11644     ac_cpp_err=
11645   fi
11646 else
11647   ac_cpp_err=yes
11648 fi
11649 if test -z "$ac_cpp_err"; then
11650   ac_header_preproc=yes
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655   ac_header_preproc=no
11656 fi
11657
11658 rm -f conftest.err conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 echo "${ECHO_T}$ac_header_preproc" >&6; }
11661
11662 # So?  What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11664   yes:no: )
11665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669     ac_header_preproc=yes
11670     ;;
11671   no:yes:* )
11672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11684     ( cat <<\_ASBOX
11685 ## ----------------------------------- ##
11686 ## Report this to llvmbugs@cs.uiuc.edu ##
11687 ## ----------------------------------- ##
11688 _ASBOX
11689      ) | sed "s/^/$as_me: WARNING:     /" >&2
11690     ;;
11691 esac
11692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697   eval "$as_ac_Header=\$ac_header_preproc"
11698 fi
11699 ac_res=`eval echo '${'$as_ac_Header'}'`
11700                { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11702
11703 fi
11704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11705   cat >>confdefs.h <<_ACEOF
11706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11707 _ACEOF
11708  break
11709 fi
11710
11711 done
11712
11713
11714
11715
11716 for ac_func in strchr index
11717 do
11718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11732 #define $ac_func innocuous_$ac_func
11733
11734 /* System header to define __stub macros and hopefully few prototypes,
11735     which can conflict with char $ac_func (); below.
11736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737     <limits.h> exists even on freestanding compilers.  */
11738
11739 #ifdef __STDC__
11740 # include <limits.h>
11741 #else
11742 # include <assert.h>
11743 #endif
11744
11745 #undef $ac_func
11746
11747 /* Override any GCC internal prototype to avoid an error.
11748    Use char because int might match the return type of a GCC
11749    builtin and then its argument prototype would still apply.  */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char $ac_func ();
11754 /* The GNU C library defines this for functions which it implements
11755     to always fail with ENOSYS.  Some functions are actually named
11756     something starting with __ and the normal name is an alias.  */
11757 #if defined __stub_$ac_func || defined __stub___$ac_func
11758 choke me
11759 #endif
11760
11761 int
11762 main ()
11763 {
11764 return $ac_func ();
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_link") 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784   { (case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_try") 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; } &&
11793          { ac_try='test -s conftest$ac_exeext'
11794   { (case "(($ac_try" in
11795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796   *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799   (eval "$ac_try") 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; }; then
11803   eval "$as_ac_var=yes"
11804 else
11805   echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808         eval "$as_ac_var=no"
11809 fi
11810
11811 rm -f core conftest.err conftest.$ac_objext \
11812       conftest$ac_exeext conftest.$ac_ext
11813 fi
11814 ac_res=`eval echo '${'$as_ac_var'}'`
11815                { echo "$as_me:$LINENO: result: $ac_res" >&5
11816 echo "${ECHO_T}$ac_res" >&6; }
11817 if test `eval echo '${'$as_ac_var'}'` = yes; then
11818   cat >>confdefs.h <<_ACEOF
11819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 _ACEOF
11821  break
11822 fi
11823 done
11824
11825
11826
11827 for ac_func in strrchr rindex
11828 do
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11843 #define $ac_func innocuous_$ac_func
11844
11845 /* System header to define __stub macros and hopefully few prototypes,
11846     which can conflict with char $ac_func (); below.
11847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848     <limits.h> exists even on freestanding compilers.  */
11849
11850 #ifdef __STDC__
11851 # include <limits.h>
11852 #else
11853 # include <assert.h>
11854 #endif
11855
11856 #undef $ac_func
11857
11858 /* Override any GCC internal prototype to avoid an error.
11859    Use char because int might match the return type of a GCC
11860    builtin and then its argument prototype would still apply.  */
11861 #ifdef __cplusplus
11862 extern "C"
11863 #endif
11864 char $ac_func ();
11865 /* The GNU C library defines this for functions which it implements
11866     to always fail with ENOSYS.  Some functions are actually named
11867     something starting with __ and the normal name is an alias.  */
11868 #if defined __stub_$ac_func || defined __stub___$ac_func
11869 choke me
11870 #endif
11871
11872 int
11873 main ()
11874 {
11875 return $ac_func ();
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_link") 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } &&
11894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895   { (case "(($ac_try" in
11896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897   *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900   (eval "$ac_try") 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; } &&
11904          { ac_try='test -s conftest$ac_exeext'
11905   { (case "(($ac_try" in
11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907   *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910   (eval "$ac_try") 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   eval "$as_ac_var=yes"
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919         eval "$as_ac_var=no"
11920 fi
11921
11922 rm -f core conftest.err conftest.$ac_objext \
11923       conftest$ac_exeext conftest.$ac_ext
11924 fi
11925 ac_res=`eval echo '${'$as_ac_var'}'`
11926                { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11928 if test `eval echo '${'$as_ac_var'}'` = yes; then
11929   cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11931 _ACEOF
11932  break
11933 fi
11934 done
11935
11936
11937
11938 for ac_func in memcpy bcopy
11939 do
11940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11954 #define $ac_func innocuous_$ac_func
11955
11956 /* System header to define __stub macros and hopefully few prototypes,
11957     which can conflict with char $ac_func (); below.
11958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959     <limits.h> exists even on freestanding compilers.  */
11960
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11966
11967 #undef $ac_func
11968
11969 /* Override any GCC internal prototype to avoid an error.
11970    Use char because int might match the return type of a GCC
11971    builtin and then its argument prototype would still apply.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char $ac_func ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined __stub_$ac_func || defined __stub___$ac_func
11980 choke me
11981 #endif
11982
11983 int
11984 main ()
11985 {
11986 return $ac_func ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_link") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006   { (case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_try") 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   eval "$as_ac_var=yes"
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         eval "$as_ac_var=no"
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext \
12034       conftest$ac_exeext conftest.$ac_ext
12035 fi
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037                { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 _ACEOF
12043  break
12044 fi
12045 done
12046
12047
12048
12049 for ac_func in memmove strcmp
12050 do
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12065 #define $ac_func innocuous_$ac_func
12066
12067 /* System header to define __stub macros and hopefully few prototypes,
12068     which can conflict with char $ac_func (); below.
12069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070     <limits.h> exists even on freestanding compilers.  */
12071
12072 #ifdef __STDC__
12073 # include <limits.h>
12074 #else
12075 # include <assert.h>
12076 #endif
12077
12078 #undef $ac_func
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081    Use char because int might match the return type of a GCC
12082    builtin and then its argument prototype would still apply.  */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 char $ac_func ();
12087 /* The GNU C library defines this for functions which it implements
12088     to always fail with ENOSYS.  Some functions are actually named
12089     something starting with __ and the normal name is an alias.  */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12091 choke me
12092 #endif
12093
12094 int
12095 main ()
12096 {
12097 return $ac_func ();
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106   *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109   (eval "$ac_link") 2>conftest.er1
12110   ac_status=$?
12111   grep -v '^ *+' conftest.er1 >conftest.err
12112   rm -f conftest.er1
12113   cat conftest.err >&5
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117   { (case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_try") 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; } &&
12126          { ac_try='test -s conftest$ac_exeext'
12127   { (case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_try") 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; }; then
12136   eval "$as_ac_var=yes"
12137 else
12138   echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141         eval "$as_ac_var=no"
12142 fi
12143
12144 rm -f core conftest.err conftest.$ac_objext \
12145       conftest$ac_exeext conftest.$ac_ext
12146 fi
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148                { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151   cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153 _ACEOF
12154
12155 fi
12156 done
12157
12158
12159
12160
12161 for ac_func in closedir opendir readdir
12162 do
12163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12177 #define $ac_func innocuous_$ac_func
12178
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char $ac_func (); below.
12181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182     <limits.h> exists even on freestanding compilers.  */
12183
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189
12190 #undef $ac_func
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193    Use char because int might match the return type of a GCC
12194    builtin and then its argument prototype would still apply.  */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char $ac_func ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined __stub_$ac_func || defined __stub___$ac_func
12203 choke me
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 return $ac_func ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_link") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; } &&
12238          { ac_try='test -s conftest$ac_exeext'
12239   { (case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_try") 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   eval "$as_ac_var=yes"
12249 else
12250   echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253         eval "$as_ac_var=no"
12254 fi
12255
12256 rm -f core conftest.err conftest.$ac_objext \
12257       conftest$ac_exeext conftest.$ac_ext
12258 fi
12259 ac_res=`eval echo '${'$as_ac_var'}'`
12260                { echo "$as_me:$LINENO: result: $ac_res" >&5
12261 echo "${ECHO_T}$ac_res" >&6; }
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263   cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 _ACEOF
12266
12267 fi
12268 done
12269
12270
12271 # Check whether --enable-shared was given.
12272 if test "${enable_shared+set}" = set; then
12273   enableval=$enable_shared; p=${PACKAGE-default}
12274     case $enableval in
12275     yes) enable_shared=yes ;;
12276     no) enable_shared=no ;;
12277     *)
12278       enable_shared=no
12279       # Look at the argument we got.  We use all the common list separators.
12280       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12281       for pkg in $enableval; do
12282         IFS="$lt_save_ifs"
12283         if test "X$pkg" = "X$p"; then
12284           enable_shared=yes
12285         fi
12286       done
12287       IFS="$lt_save_ifs"
12288       ;;
12289     esac
12290 else
12291   enable_shared=yes
12292 fi
12293
12294
12295 # Check whether --enable-static was given.
12296 if test "${enable_static+set}" = set; then
12297   enableval=$enable_static; p=${PACKAGE-default}
12298     case $enableval in
12299     yes) enable_static=yes ;;
12300     no) enable_static=no ;;
12301     *)
12302      enable_static=no
12303       # Look at the argument we got.  We use all the common list separators.
12304       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305       for pkg in $enableval; do
12306         IFS="$lt_save_ifs"
12307         if test "X$pkg" = "X$p"; then
12308           enable_static=yes
12309         fi
12310       done
12311       IFS="$lt_save_ifs"
12312       ;;
12313     esac
12314 else
12315   enable_static=yes
12316 fi
12317
12318
12319 # Check whether --enable-fast-install was given.
12320 if test "${enable_fast_install+set}" = set; then
12321   enableval=$enable_fast_install; p=${PACKAGE-default}
12322     case $enableval in
12323     yes) enable_fast_install=yes ;;
12324     no) enable_fast_install=no ;;
12325     *)
12326       enable_fast_install=no
12327       # Look at the argument we got.  We use all the common list separators.
12328       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329       for pkg in $enableval; do
12330         IFS="$lt_save_ifs"
12331         if test "X$pkg" = "X$p"; then
12332           enable_fast_install=yes
12333         fi
12334       done
12335       IFS="$lt_save_ifs"
12336       ;;
12337     esac
12338 else
12339   enable_fast_install=yes
12340 fi
12341
12342
12343 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12344 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12345 if test "${lt_cv_path_SED+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   # Loop through the user's path and test for sed and gsed.
12349 # Then use that list of sed's as ones to test for truncation.
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353   IFS=$as_save_IFS
12354   test -z "$as_dir" && as_dir=.
12355   for lt_ac_prog in sed gsed; do
12356     for ac_exec_ext in '' $ac_executable_extensions; do
12357       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12358         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12359       fi
12360     done
12361   done
12362 done
12363 lt_ac_max=0
12364 lt_ac_count=0
12365 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12366 # along with /bin/sed that truncates output.
12367 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12368   test ! -f $lt_ac_sed && continue
12369   cat /dev/null > conftest.in
12370   lt_ac_count=0
12371   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12372   # Check for GNU sed and select it if it is found.
12373   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12374     lt_cv_path_SED=$lt_ac_sed
12375     break
12376   fi
12377   while true; do
12378     cat conftest.in conftest.in >conftest.tmp
12379     mv conftest.tmp conftest.in
12380     cp conftest.in conftest.nl
12381     echo >>conftest.nl
12382     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12383     cmp -s conftest.out conftest.nl || break
12384     # 10000 chars as input seems more than enough
12385     test $lt_ac_count -gt 10 && break
12386     lt_ac_count=`expr $lt_ac_count + 1`
12387     if test $lt_ac_count -gt $lt_ac_max; then
12388       lt_ac_max=$lt_ac_count
12389       lt_cv_path_SED=$lt_ac_sed
12390     fi
12391   done
12392 done
12393
12394 fi
12395
12396 SED=$lt_cv_path_SED
12397 { echo "$as_me:$LINENO: result: $SED" >&5
12398 echo "${ECHO_T}$SED" >&6; }
12399
12400
12401 # Check whether --with-gnu-ld was given.
12402 if test "${with_gnu_ld+set}" = set; then
12403   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12404 else
12405   with_gnu_ld=no
12406 fi
12407
12408 ac_prog=ld
12409 if test "$GCC" = yes; then
12410   # Check if gcc -print-prog-name=ld gives a path.
12411   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12413   case $host in
12414   *-*-mingw*)
12415     # gcc leaves a trailing carriage return which upsets mingw
12416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12417   *)
12418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12419   esac
12420   case $ac_prog in
12421     # Accept absolute paths.
12422     [\\/]* | ?:[\\/]*)
12423       re_direlt='/[^/][^/]*/\.\./'
12424       # Canonicalize the pathname of ld
12425       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12427         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12428       done
12429       test -z "$LD" && LD="$ac_prog"
12430       ;;
12431   "")
12432     # If it fails, then pretend we aren't using GCC.
12433     ac_prog=ld
12434     ;;
12435   *)
12436     # If it is relative, then search for the first ld in PATH.
12437     with_gnu_ld=unknown
12438     ;;
12439   esac
12440 elif test "$with_gnu_ld" = yes; then
12441   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12443 else
12444   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12446 fi
12447 if test "${lt_cv_path_LD+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   if test -z "$LD"; then
12451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12452   for ac_dir in $PATH; do
12453     IFS="$lt_save_ifs"
12454     test -z "$ac_dir" && ac_dir=.
12455     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12456       lt_cv_path_LD="$ac_dir/$ac_prog"
12457       # Check to see if the program is GNU ld.  I'd rather use --version,
12458       # but apparently some variants of GNU ld only accept -v.
12459       # Break only if it was the GNU/non-GNU ld that we prefer.
12460       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12461       *GNU* | *'with BFD'*)
12462         test "$with_gnu_ld" != no && break
12463         ;;
12464       *)
12465         test "$with_gnu_ld" != yes && break
12466         ;;
12467       esac
12468     fi
12469   done
12470   IFS="$lt_save_ifs"
12471 else
12472   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12473 fi
12474 fi
12475
12476 LD="$lt_cv_path_LD"
12477 if test -n "$LD"; then
12478   { echo "$as_me:$LINENO: result: $LD" >&5
12479 echo "${ECHO_T}$LD" >&6; }
12480 else
12481   { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12483 fi
12484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12486    { (exit 1); exit 1; }; }
12487 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12493 case `$LD -v 2>&1 </dev/null` in
12494 *GNU* | *'with BFD'*)
12495   lt_cv_prog_gnu_ld=yes
12496   ;;
12497 *)
12498   lt_cv_prog_gnu_ld=no
12499   ;;
12500 esac
12501 fi
12502 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12504 with_gnu_ld=$lt_cv_prog_gnu_ld
12505
12506
12507 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12508 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12509 if test "${lt_cv_ld_reload_flag+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   lt_cv_ld_reload_flag='-r'
12513 fi
12514 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12515 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12516 reload_flag=$lt_cv_ld_reload_flag
12517 case $reload_flag in
12518 "" | " "*) ;;
12519 *) reload_flag=" $reload_flag" ;;
12520 esac
12521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12522 case $host_os in
12523   darwin*)
12524     if test "$GCC" = yes; then
12525       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12526     else
12527       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12528     fi
12529     ;;
12530 esac
12531
12532 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12533 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12534 if test "${lt_cv_deplibs_check_method+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   lt_cv_file_magic_cmd='$MAGIC_CMD'
12538 lt_cv_file_magic_test_file=
12539 lt_cv_deplibs_check_method='unknown'
12540 # Need to set the preceding variable on all platforms that support
12541 # interlibrary dependencies.
12542 # 'none' -- dependencies not supported.
12543 # `unknown' -- same as none, but documents that we really don't know.
12544 # 'pass_all' -- all dependencies passed with no checks.
12545 # 'test_compile' -- check by making test program.
12546 # 'file_magic [[regex]]' -- check by looking for files in library path
12547 # which responds to the $file_magic_cmd with a given extended regex.
12548 # If you have `file' or equivalent on your system and you're not sure
12549 # whether `pass_all' will *always* work, you probably want this one.
12550
12551 case $host_os in
12552 aix4* | aix5*)
12553   lt_cv_deplibs_check_method=pass_all
12554   ;;
12555
12556 beos*)
12557   lt_cv_deplibs_check_method=pass_all
12558   ;;
12559
12560 bsdi[45]*)
12561   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12562   lt_cv_file_magic_cmd='/usr/bin/file -L'
12563   lt_cv_file_magic_test_file=/shlib/libc.so
12564   ;;
12565
12566 cygwin*)
12567   # func_win32_libid is a shell function defined in ltmain.sh
12568   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12569   lt_cv_file_magic_cmd='func_win32_libid'
12570   ;;
12571
12572 mingw* | pw32*)
12573   # Base MSYS/MinGW do not provide the 'file' command needed by
12574   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12575   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12576   lt_cv_file_magic_cmd='$OBJDUMP -f'
12577   ;;
12578
12579 darwin* | rhapsody*)
12580   lt_cv_deplibs_check_method=pass_all
12581   ;;
12582
12583 freebsd* | kfreebsd*-gnu | dragonfly*)
12584   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12585     case $host_cpu in
12586     i*86 )
12587       # Not sure whether the presence of OpenBSD here was a mistake.
12588       # Let's accept both of them until this is cleared up.
12589       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12590       lt_cv_file_magic_cmd=/usr/bin/file
12591       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12592       ;;
12593     esac
12594   else
12595     lt_cv_deplibs_check_method=pass_all
12596   fi
12597   ;;
12598
12599 gnu*)
12600   lt_cv_deplibs_check_method=pass_all
12601   ;;
12602
12603 hpux10.20* | hpux11*)
12604   lt_cv_file_magic_cmd=/usr/bin/file
12605   case $host_cpu in
12606   ia64*)
12607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12608     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12609     ;;
12610   hppa*64*)
12611     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]'
12612     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12613     ;;
12614   *)
12615     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12616     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12617     ;;
12618   esac
12619   ;;
12620
12621 interix3*)
12622   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12623   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12624   ;;
12625
12626 irix5* | irix6* | nonstopux*)
12627   case $LD in
12628   *-32|*"-32 ") libmagic=32-bit;;
12629   *-n32|*"-n32 ") libmagic=N32;;
12630   *-64|*"-64 ") libmagic=64-bit;;
12631   *) libmagic=never-match;;
12632   esac
12633   lt_cv_deplibs_check_method=pass_all
12634   ;;
12635
12636 # This must be Linux ELF.
12637 linux*)
12638   lt_cv_deplibs_check_method=pass_all
12639   ;;
12640
12641 netbsd*)
12642   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12644   else
12645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12646   fi
12647   ;;
12648
12649 newos6*)
12650   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12651   lt_cv_file_magic_cmd=/usr/bin/file
12652   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12653   ;;
12654
12655 nto-qnx*)
12656   lt_cv_deplibs_check_method=unknown
12657   ;;
12658
12659 openbsd*)
12660   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12662   else
12663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12664   fi
12665   ;;
12666
12667 osf3* | osf4* | osf5*)
12668   lt_cv_deplibs_check_method=pass_all
12669   ;;
12670
12671 solaris*)
12672   lt_cv_deplibs_check_method=pass_all
12673   ;;
12674
12675 sysv4 | sysv4.3*)
12676   case $host_vendor in
12677   motorola)
12678     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]'
12679     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12680     ;;
12681   ncr)
12682     lt_cv_deplibs_check_method=pass_all
12683     ;;
12684   sequent)
12685     lt_cv_file_magic_cmd='/bin/file'
12686     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12687     ;;
12688   sni)
12689     lt_cv_file_magic_cmd='/bin/file'
12690     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12691     lt_cv_file_magic_test_file=/lib/libc.so
12692     ;;
12693   siemens)
12694     lt_cv_deplibs_check_method=pass_all
12695     ;;
12696   pc)
12697     lt_cv_deplibs_check_method=pass_all
12698     ;;
12699   esac
12700   ;;
12701
12702 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12703   lt_cv_deplibs_check_method=pass_all
12704   ;;
12705 esac
12706
12707 fi
12708 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12709 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12710 file_magic_cmd=$lt_cv_file_magic_cmd
12711 deplibs_check_method=$lt_cv_deplibs_check_method
12712 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12713
12714
12715
12716 # If no C compiler was specified, use CC.
12717 LTCC=${LTCC-"$CC"}
12718
12719 # If no C compiler flags were specified, use CFLAGS.
12720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12721
12722 # Allow CC to be a program name with arguments.
12723 compiler=$CC
12724
12725 # Check whether --enable-libtool-lock was given.
12726 if test "${enable_libtool_lock+set}" = set; then
12727   enableval=$enable_libtool_lock;
12728 fi
12729
12730 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12731
12732 # Some flags need to be propagated to the compiler or linker for good
12733 # libtool support.
12734 case $host in
12735 ia64-*-hpux*)
12736   # Find out which ABI we are using.
12737   echo 'int i;' > conftest.$ac_ext
12738   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739   (eval $ac_compile) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; then
12743     case `/usr/bin/file conftest.$ac_objext` in
12744     *ELF-32*)
12745       HPUX_IA64_MODE="32"
12746       ;;
12747     *ELF-64*)
12748       HPUX_IA64_MODE="64"
12749       ;;
12750     esac
12751   fi
12752   rm -rf conftest*
12753   ;;
12754 *-*-irix6*)
12755   # Find out which ABI we are using.
12756   echo '#line 12756 "configure"' > conftest.$ac_ext
12757   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758   (eval $ac_compile) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; then
12762    if test "$lt_cv_prog_gnu_ld" = yes; then
12763     case `/usr/bin/file conftest.$ac_objext` in
12764     *32-bit*)
12765       LD="${LD-ld} -melf32bsmip"
12766       ;;
12767     *N32*)
12768       LD="${LD-ld} -melf32bmipn32"
12769       ;;
12770     *64-bit*)
12771       LD="${LD-ld} -melf64bmip"
12772       ;;
12773     esac
12774    else
12775     case `/usr/bin/file conftest.$ac_objext` in
12776     *32-bit*)
12777       LD="${LD-ld} -32"
12778       ;;
12779     *N32*)
12780       LD="${LD-ld} -n32"
12781       ;;
12782     *64-bit*)
12783       LD="${LD-ld} -64"
12784       ;;
12785     esac
12786    fi
12787   fi
12788   rm -rf conftest*
12789   ;;
12790
12791 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12792   # Find out which ABI we are using.
12793   echo 'int i;' > conftest.$ac_ext
12794   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795   (eval $ac_compile) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; then
12799     case `/usr/bin/file conftest.o` in
12800     *32-bit*)
12801       case $host in
12802         x86_64-*linux*)
12803           LD="${LD-ld} -m elf_i386"
12804           ;;
12805         ppc64-*linux*|powerpc64-*linux*)
12806           LD="${LD-ld} -m elf32ppclinux"
12807           ;;
12808         s390x-*linux*)
12809           LD="${LD-ld} -m elf_s390"
12810           ;;
12811         sparc64-*linux*)
12812           LD="${LD-ld} -m elf32_sparc"
12813           ;;
12814       esac
12815       ;;
12816     *64-bit*)
12817       case $host in
12818         x86_64-*linux*)
12819           LD="${LD-ld} -m elf_x86_64"
12820           ;;
12821         ppc*-*linux*|powerpc*-*linux*)
12822           LD="${LD-ld} -m elf64ppc"
12823           ;;
12824         s390*-*linux*)
12825           LD="${LD-ld} -m elf64_s390"
12826           ;;
12827         sparc*-*linux*)
12828           LD="${LD-ld} -m elf64_sparc"
12829           ;;
12830       esac
12831       ;;
12832     esac
12833   fi
12834   rm -rf conftest*
12835   ;;
12836
12837 *-*-sco3.2v5*)
12838   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12839   SAVE_CFLAGS="$CFLAGS"
12840   CFLAGS="$CFLAGS -belf"
12841   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12842 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12843 if test "${lt_cv_cc_needs_belf+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   ac_ext=c
12847 ac_cpp='$CPP $CPPFLAGS'
12848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852      cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858
12859 int
12860 main ()
12861 {
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_link") 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882   { (case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_try") 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; } &&
12891          { ac_try='test -s conftest$ac_exeext'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   lt_cv_cc_needs_belf=yes
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906         lt_cv_cc_needs_belf=no
12907 fi
12908
12909 rm -f core conftest.err conftest.$ac_objext \
12910       conftest$ac_exeext conftest.$ac_ext
12911      ac_ext=c
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916
12917 fi
12918 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12919 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12920   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12921     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12922     CFLAGS="$SAVE_CFLAGS"
12923   fi
12924   ;;
12925 sparc*-*solaris*)
12926   # Find out which ABI we are using.
12927   echo 'int i;' > conftest.$ac_ext
12928   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929   (eval $ac_compile) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; then
12933     case `/usr/bin/file conftest.o` in
12934     *64-bit*)
12935       case $lt_cv_prog_gnu_ld in
12936       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12937       *)    LD="${LD-ld} -64" ;;
12938       esac
12939       ;;
12940     esac
12941   fi
12942   rm -rf conftest*
12943   ;;
12944
12945
12946 esac
12947
12948 need_locks="$enable_libtool_lock"
12949
12950
12951
12952
12953 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12954     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12955     (test "X$CXX" != "Xg++"))) ; then
12956   ac_ext=cpp
12957 ac_cpp='$CXXCPP $CPPFLAGS'
12958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12963 if test -z "$CXXCPP"; then
12964   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967       # Double quotes because CXXCPP needs to be expanded
12968     for CXXCPP in "$CXX -E" "/lib/cpp"
12969     do
12970       ac_preproc_ok=false
12971 for ac_cxx_preproc_warn_flag in '' yes
12972 do
12973   # Use a header file that comes with gcc, so configuring glibc
12974   # with a fresh cross-compiler works.
12975   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12976   # <limits.h> exists even on freestanding compilers.
12977   # On the NeXT, cc -E runs the code through the compiler's parser,
12978   # not just through cpp. "Syntax error" is here to catch this case.
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 #ifdef __STDC__
12986 # include <limits.h>
12987 #else
12988 # include <assert.h>
12989 #endif
12990                      Syntax error
12991 _ACEOF
12992 if { (ac_try="$ac_cpp conftest.$ac_ext"
12993 case "(($ac_try" in
12994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995   *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12999   ac_status=$?
13000   grep -v '^ *+' conftest.er1 >conftest.err
13001   rm -f conftest.er1
13002   cat conftest.err >&5
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } >/dev/null; then
13005   if test -s conftest.err; then
13006     ac_cpp_err=$ac_cxx_preproc_warn_flag
13007     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13008   else
13009     ac_cpp_err=
13010   fi
13011 else
13012   ac_cpp_err=yes
13013 fi
13014 if test -z "$ac_cpp_err"; then
13015   :
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020   # Broken: fails on valid input.
13021 continue
13022 fi
13023
13024 rm -f conftest.err conftest.$ac_ext
13025
13026   # OK, works on sane cases.  Now check whether nonexistent headers
13027   # can be detected and how.
13028   cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034 #include <ac_nonexistent.h>
13035 _ACEOF
13036 if { (ac_try="$ac_cpp conftest.$ac_ext"
13037 case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } >/dev/null; then
13049   if test -s conftest.err; then
13050     ac_cpp_err=$ac_cxx_preproc_warn_flag
13051     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13052   else
13053     ac_cpp_err=
13054   fi
13055 else
13056   ac_cpp_err=yes
13057 fi
13058 if test -z "$ac_cpp_err"; then
13059   # Broken: success on invalid input.
13060 continue
13061 else
13062   echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065   # Passes both tests.
13066 ac_preproc_ok=:
13067 break
13068 fi
13069
13070 rm -f conftest.err conftest.$ac_ext
13071
13072 done
13073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13074 rm -f conftest.err conftest.$ac_ext
13075 if $ac_preproc_ok; then
13076   break
13077 fi
13078
13079     done
13080     ac_cv_prog_CXXCPP=$CXXCPP
13081
13082 fi
13083   CXXCPP=$ac_cv_prog_CXXCPP
13084 else
13085   ac_cv_prog_CXXCPP=$CXXCPP
13086 fi
13087 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13088 echo "${ECHO_T}$CXXCPP" >&6; }
13089 ac_preproc_ok=false
13090 for ac_cxx_preproc_warn_flag in '' yes
13091 do
13092   # Use a header file that comes with gcc, so configuring glibc
13093   # with a fresh cross-compiler works.
13094   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095   # <limits.h> exists even on freestanding compilers.
13096   # On the NeXT, cc -E runs the code through the compiler's parser,
13097   # not just through cpp. "Syntax error" is here to catch this case.
13098   cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104 #ifdef __STDC__
13105 # include <limits.h>
13106 #else
13107 # include <assert.h>
13108 #endif
13109                      Syntax error
13110 _ACEOF
13111 if { (ac_try="$ac_cpp conftest.$ac_ext"
13112 case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13118   ac_status=$?
13119   grep -v '^ *+' conftest.er1 >conftest.err
13120   rm -f conftest.er1
13121   cat conftest.err >&5
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); } >/dev/null; then
13124   if test -s conftest.err; then
13125     ac_cpp_err=$ac_cxx_preproc_warn_flag
13126     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13127   else
13128     ac_cpp_err=
13129   fi
13130 else
13131   ac_cpp_err=yes
13132 fi
13133 if test -z "$ac_cpp_err"; then
13134   :
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139   # Broken: fails on valid input.
13140 continue
13141 fi
13142
13143 rm -f conftest.err conftest.$ac_ext
13144
13145   # OK, works on sane cases.  Now check whether nonexistent headers
13146   # can be detected and how.
13147   cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 #include <ac_nonexistent.h>
13154 _ACEOF
13155 if { (ac_try="$ac_cpp conftest.$ac_ext"
13156 case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } >/dev/null; then
13168   if test -s conftest.err; then
13169     ac_cpp_err=$ac_cxx_preproc_warn_flag
13170     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13171   else
13172     ac_cpp_err=
13173   fi
13174 else
13175   ac_cpp_err=yes
13176 fi
13177 if test -z "$ac_cpp_err"; then
13178   # Broken: success on invalid input.
13179 continue
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184   # Passes both tests.
13185 ac_preproc_ok=:
13186 break
13187 fi
13188
13189 rm -f conftest.err conftest.$ac_ext
13190
13191 done
13192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13193 rm -f conftest.err conftest.$ac_ext
13194 if $ac_preproc_ok; then
13195   :
13196 else
13197   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13198 See \`config.log' for more details." >&5
13199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13200 See \`config.log' for more details." >&2;}
13201    { (exit 1); exit 1; }; }
13202 fi
13203
13204 ac_ext=cpp
13205 ac_cpp='$CXXCPP $CPPFLAGS'
13206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13209
13210 fi
13211
13212
13213 ac_ext=f
13214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13217 if test -n "$ac_tool_prefix"; then
13218   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
13219   do
13220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13224 if test "${ac_cv_prog_F77+set}" = set; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   if test -n "$F77"; then
13228   ac_cv_prog_F77="$F77" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233   IFS=$as_save_IFS
13234   test -z "$as_dir" && as_dir=.
13235   for ac_exec_ext in '' $ac_executable_extensions; do
13236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13237     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13239     break 2
13240   fi
13241 done
13242 done
13243 IFS=$as_save_IFS
13244
13245 fi
13246 fi
13247 F77=$ac_cv_prog_F77
13248 if test -n "$F77"; then
13249   { echo "$as_me:$LINENO: result: $F77" >&5
13250 echo "${ECHO_T}$F77" >&6; }
13251 else
13252   { echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6; }
13254 fi
13255
13256
13257     test -n "$F77" && break
13258   done
13259 fi
13260 if test -z "$F77"; then
13261   ac_ct_F77=$F77
13262   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
13263 do
13264   # Extract the first word of "$ac_prog", so it can be a program name with args.
13265 set dummy $ac_prog; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   if test -n "$ac_ct_F77"; then
13272   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277   IFS=$as_save_IFS
13278   test -z "$as_dir" && as_dir=.
13279   for ac_exec_ext in '' $ac_executable_extensions; do
13280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13281     ac_cv_prog_ac_ct_F77="$ac_prog"
13282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283     break 2
13284   fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13292 if test -n "$ac_ct_F77"; then
13293   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13294 echo "${ECHO_T}$ac_ct_F77" >&6; }
13295 else
13296   { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13298 fi
13299
13300
13301   test -n "$ac_ct_F77" && break
13302 done
13303
13304   if test "x$ac_ct_F77" = x; then
13305     F77=""
13306   else
13307     case $cross_compiling:$ac_tool_warned in
13308 yes:)
13309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13310 whose name does not start with the host triplet.  If you think this
13311 configuration is useful to you, please write to autoconf@gnu.org." >&5
13312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13313 whose name does not start with the host triplet.  If you think this
13314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13315 ac_tool_warned=yes ;;
13316 esac
13317     F77=$ac_ct_F77
13318   fi
13319 fi
13320
13321
13322 # Provide some information about the compiler.
13323 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13324 ac_compiler=`set X $ac_compile; echo $2`
13325 { (ac_try="$ac_compiler --version >&5"
13326 case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_compiler --version >&5") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }
13335 { (ac_try="$ac_compiler -v >&5"
13336 case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_compiler -v >&5") 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }
13345 { (ac_try="$ac_compiler -V >&5"
13346 case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_compiler -V >&5") 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }
13355 rm -f a.out
13356
13357 # If we don't use `.F' as extension, the preprocessor is not run on the
13358 # input file.  (Note that this only needs to work for GNU compilers.)
13359 ac_save_ext=$ac_ext
13360 ac_ext=F
13361 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13362 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13363 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13364   echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367       program main
13368 #ifndef __GNUC__
13369        choke me
13370 #endif
13371
13372       end
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (ac_try="$ac_compile"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_compile") 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } &&
13388          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13389   { (case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_try") 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; } &&
13398          { ac_try='test -s conftest.$ac_objext'
13399   { (case "(($ac_try" in
13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401   *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404   (eval "$ac_try") 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_compiler_gnu=yes
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413         ac_compiler_gnu=no
13414 fi
13415
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13418
13419 fi
13420 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13421 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13422 ac_ext=$ac_save_ext
13423 ac_test_FFLAGS=${FFLAGS+set}
13424 ac_save_FFLAGS=$FFLAGS
13425 FFLAGS=
13426 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13427 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13428 if test "${ac_cv_prog_f77_g+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   FFLAGS=-g
13432 cat >conftest.$ac_ext <<_ACEOF
13433       program main
13434
13435       end
13436 _ACEOF
13437 rm -f conftest.$ac_objext
13438 if { (ac_try="$ac_compile"
13439 case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_compile") 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13452   { (case "(($ac_try" in
13453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454   *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457   (eval "$ac_try") 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest.$ac_objext'
13462   { (case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_try") 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   ac_cv_prog_f77_g=yes
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476         ac_cv_prog_f77_g=no
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480
13481 fi
13482 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13483 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13484 if test "$ac_test_FFLAGS" = set; then
13485   FFLAGS=$ac_save_FFLAGS
13486 elif test $ac_cv_prog_f77_g = yes; then
13487   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13488     FFLAGS="-g -O2"
13489   else
13490     FFLAGS="-g"
13491   fi
13492 else
13493   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13494     FFLAGS="-O2"
13495   else
13496     FFLAGS=
13497   fi
13498 fi
13499
13500 G77=`test $ac_compiler_gnu = yes && echo yes`
13501 ac_ext=c
13502 ac_cpp='$CPP $CPPFLAGS'
13503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13506
13507
13508
13509 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13510
13511 # find the maximum length of command line arguments
13512 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13513 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13514 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517     i=0
13518   teststring="ABCD"
13519
13520   case $build_os in
13521   msdosdjgpp*)
13522     # On DJGPP, this test can blow up pretty badly due to problems in libc
13523     # (any single argument exceeding 2000 bytes causes a buffer overrun
13524     # during glob expansion).  Even if it were fixed, the result of this
13525     # check would be larger than it should be.
13526     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13527     ;;
13528
13529   gnu*)
13530     # Under GNU Hurd, this test is not required because there is
13531     # no limit to the length of command line arguments.
13532     # Libtool will interpret -1 as no limit whatsoever
13533     lt_cv_sys_max_cmd_len=-1;
13534     ;;
13535
13536   cygwin* | mingw*)
13537     # On Win9x/ME, this test blows up -- it succeeds, but takes
13538     # about 5 minutes as the teststring grows exponentially.
13539     # Worse, since 9x/ME are not pre-emptively multitasking,
13540     # you end up with a "frozen" computer, even though with patience
13541     # the test eventually succeeds (with a max line length of 256k).
13542     # Instead, let's just punt: use the minimum linelength reported by
13543     # all of the supported platforms: 8192 (on NT/2K/XP).
13544     lt_cv_sys_max_cmd_len=8192;
13545     ;;
13546
13547   amigaos*)
13548     # On AmigaOS with pdksh, this test takes hours, literally.
13549     # So we just punt and use a minimum line length of 8192.
13550     lt_cv_sys_max_cmd_len=8192;
13551     ;;
13552
13553   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13554     # This has been around since 386BSD, at least.  Likely further.
13555     if test -x /sbin/sysctl; then
13556       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13557     elif test -x /usr/sbin/sysctl; then
13558       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13559     else
13560       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13561     fi
13562     # And add a safety zone
13563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13564     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13565     ;;
13566
13567   interix*)
13568     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13569     lt_cv_sys_max_cmd_len=196608
13570     ;;
13571
13572   osf*)
13573     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13574     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13575     # nice to cause kernel panics so lets avoid the loop below.
13576     # First set a reasonable default.
13577     lt_cv_sys_max_cmd_len=16384
13578     #
13579     if test -x /sbin/sysconfig; then
13580       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13581         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13582       esac
13583     fi
13584     ;;
13585   sco3.2v5*)
13586     lt_cv_sys_max_cmd_len=102400
13587     ;;
13588   sysv5* | sco5v6* | sysv4.2uw2*)
13589     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13590     if test -n "$kargmax"; then
13591       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13592     else
13593       lt_cv_sys_max_cmd_len=32768
13594     fi
13595     ;;
13596   *)
13597     # If test is not a shell built-in, we'll probably end up computing a
13598     # maximum length that is only half of the actual maximum length, but
13599     # we can't tell.
13600     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13601     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13602                = "XX$teststring") >/dev/null 2>&1 &&
13603             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13604             lt_cv_sys_max_cmd_len=$new_result &&
13605             test $i != 17 # 1/2 MB should be enough
13606     do
13607       i=`expr $i + 1`
13608       teststring=$teststring$teststring
13609     done
13610     teststring=
13611     # Add a significant safety factor because C++ compilers can tack on massive
13612     # amounts of additional arguments before passing them to the linker.
13613     # It appears as though 1/2 is a usable value.
13614     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13615     ;;
13616   esac
13617
13618 fi
13619
13620 if test -n $lt_cv_sys_max_cmd_len ; then
13621   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13622 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13623 else
13624   { echo "$as_me:$LINENO: result: none" >&5
13625 echo "${ECHO_T}none" >&6; }
13626 fi
13627
13628
13629
13630
13631 # Check for command to grab the raw symbol name followed by C symbol from nm.
13632 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13633 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13634 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637
13638 # These are sane defaults that work on at least a few old systems.
13639 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13640
13641 # Character class describing NM global symbol codes.
13642 symcode='[BCDEGRST]'
13643
13644 # Regexp to match symbols that can be accessed directly from C.
13645 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13646
13647 # Transform an extracted symbol line into a proper C declaration
13648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13649
13650 # Transform an extracted symbol line into symbol name and symbol address
13651 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'"
13652
13653 # Define system-specific variables.
13654 case $host_os in
13655 aix*)
13656   symcode='[BCDT]'
13657   ;;
13658 cygwin* | mingw* | pw32*)
13659   symcode='[ABCDGISTW]'
13660   ;;
13661 hpux*) # Its linker distinguishes data from code symbols
13662   if test "$host_cpu" = ia64; then
13663     symcode='[ABCDEGRST]'
13664   fi
13665   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13666   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'"
13667   ;;
13668 linux*)
13669   if test "$host_cpu" = ia64; then
13670     symcode='[ABCDGIRSTW]'
13671     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13672     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'"
13673   fi
13674   ;;
13675 irix* | nonstopux*)
13676   symcode='[BCDEGRST]'
13677   ;;
13678 osf*)
13679   symcode='[BCDEGQRST]'
13680   ;;
13681 solaris*)
13682   symcode='[BDRT]'
13683   ;;
13684 sco3.2v5*)
13685   symcode='[DT]'
13686   ;;
13687 sysv4.2uw2*)
13688   symcode='[DT]'
13689   ;;
13690 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13691   symcode='[ABDT]'
13692   ;;
13693 sysv4)
13694   symcode='[DFNSTU]'
13695   ;;
13696 esac
13697
13698 # Handle CRLF in mingw tool chain
13699 opt_cr=
13700 case $build_os in
13701 mingw*)
13702   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13703   ;;
13704 esac
13705
13706 # If we're using GNU nm, then use its standard symbol codes.
13707 case `$NM -V 2>&1` in
13708 *GNU* | *'with BFD'*)
13709   symcode='[ABCDGIRSTW]' ;;
13710 esac
13711
13712 # Try without a prefix undercore, then with it.
13713 for ac_symprfx in "" "_"; do
13714
13715   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13716   symxfrm="\\1 $ac_symprfx\\2 \\2"
13717
13718   # Write the raw and C identifiers.
13719   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13720
13721   # Check to see that the pipe works correctly.
13722   pipe_works=no
13723
13724   rm -f conftest*
13725   cat > conftest.$ac_ext <<EOF
13726 #ifdef __cplusplus
13727 extern "C" {
13728 #endif
13729 char nm_test_var;
13730 void nm_test_func(){}
13731 #ifdef __cplusplus
13732 }
13733 #endif
13734 int main(){nm_test_var='a';nm_test_func();return(0);}
13735 EOF
13736
13737   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738   (eval $ac_compile) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; then
13742     # Now try to grab the symbols.
13743     nlist=conftest.nm
13744     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13745   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } && test -s "$nlist"; then
13749       # Try sorting and uniquifying the output.
13750       if sort "$nlist" | uniq > "$nlist"T; then
13751         mv -f "$nlist"T "$nlist"
13752       else
13753         rm -f "$nlist"T
13754       fi
13755
13756       # Make sure that we snagged all the symbols we need.
13757       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13758         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13759           cat <<EOF > conftest.$ac_ext
13760 #ifdef __cplusplus
13761 extern "C" {
13762 #endif
13763
13764 EOF
13765           # Now generate the symbol file.
13766           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13767
13768           cat <<EOF >> conftest.$ac_ext
13769 #if defined (__STDC__) && __STDC__
13770 # define lt_ptr_t void *
13771 #else
13772 # define lt_ptr_t char *
13773 # define const
13774 #endif
13775
13776 /* The mapping between symbol names and symbols. */
13777 const struct {
13778   const char *name;
13779   lt_ptr_t address;
13780 }
13781 lt_preloaded_symbols[] =
13782 {
13783 EOF
13784           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13785           cat <<\EOF >> conftest.$ac_ext
13786   {0, (lt_ptr_t) 0}
13787 };
13788
13789 #ifdef __cplusplus
13790 }
13791 #endif
13792 EOF
13793           # Now try linking the two files.
13794           mv conftest.$ac_objext conftstm.$ac_objext
13795           lt_save_LIBS="$LIBS"
13796           lt_save_CFLAGS="$CFLAGS"
13797           LIBS="conftstm.$ac_objext"
13798           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13799           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800   (eval $ac_link) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13804             pipe_works=yes
13805           fi
13806           LIBS="$lt_save_LIBS"
13807           CFLAGS="$lt_save_CFLAGS"
13808         else
13809           echo "cannot find nm_test_func in $nlist" >&5
13810         fi
13811       else
13812         echo "cannot find nm_test_var in $nlist" >&5
13813       fi
13814     else
13815       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13816     fi
13817   else
13818     echo "$progname: failed program was:" >&5
13819     cat conftest.$ac_ext >&5
13820   fi
13821   rm -f conftest* conftst*
13822
13823   # Do not use the global_symbol_pipe unless it works.
13824   if test "$pipe_works" = yes; then
13825     break
13826   else
13827     lt_cv_sys_global_symbol_pipe=
13828   fi
13829 done
13830
13831 fi
13832
13833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13834   lt_cv_sys_global_symbol_to_cdecl=
13835 fi
13836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13837   { echo "$as_me:$LINENO: result: failed" >&5
13838 echo "${ECHO_T}failed" >&6; }
13839 else
13840   { echo "$as_me:$LINENO: result: ok" >&5
13841 echo "${ECHO_T}ok" >&6; }
13842 fi
13843
13844 { echo "$as_me:$LINENO: checking for objdir" >&5
13845 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13846 if test "${lt_cv_objdir+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   rm -f .libs 2>/dev/null
13850 mkdir .libs 2>/dev/null
13851 if test -d .libs; then
13852   lt_cv_objdir=.libs
13853 else
13854   # MS-DOS does not allow filenames that begin with a dot.
13855   lt_cv_objdir=_libs
13856 fi
13857 rmdir .libs 2>/dev/null
13858 fi
13859 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13860 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13861 objdir=$lt_cv_objdir
13862
13863
13864
13865
13866
13867 case $host_os in
13868 aix3*)
13869   # AIX sometimes has problems with the GCC collect2 program.  For some
13870   # reason, if we set the COLLECT_NAMES environment variable, the problems
13871   # vanish in a puff of smoke.
13872   if test "X${COLLECT_NAMES+set}" != Xset; then
13873     COLLECT_NAMES=
13874     export COLLECT_NAMES
13875   fi
13876   ;;
13877 esac
13878
13879 # Sed substitution that helps us do robust quoting.  It backslashifies
13880 # metacharacters that are still active within double-quoted strings.
13881 Xsed='sed -e 1s/^X//'
13882 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13883
13884 # Same as above, but do not quote variable references.
13885 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13886
13887 # Sed substitution to delay expansion of an escaped shell variable in a
13888 # double_quote_subst'ed string.
13889 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13890
13891 # Sed substitution to avoid accidental globbing in evaled expressions
13892 no_glob_subst='s/\*/\\\*/g'
13893
13894 # Constants:
13895 rm="rm -f"
13896
13897 # Global variables:
13898 default_ofile=mklib
13899 can_build_shared=yes
13900
13901 # All known linkers require a `.a' archive for static linking (except MSVC,
13902 # which needs '.lib').
13903 libext=a
13904 ltmain="$ac_aux_dir/ltmain.sh"
13905 ofile="$default_ofile"
13906 with_gnu_ld="$lt_cv_prog_gnu_ld"
13907
13908 if test -n "$ac_tool_prefix"; then
13909   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}ar; ac_word=$2
13911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13913 if test "${ac_cv_prog_AR+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   if test -n "$AR"; then
13917   ac_cv_prog_AR="$AR" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13921 do
13922   IFS=$as_save_IFS
13923   test -z "$as_dir" && as_dir=.
13924   for ac_exec_ext in '' $ac_executable_extensions; do
13925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13926     ac_cv_prog_AR="${ac_tool_prefix}ar"
13927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13928     break 2
13929   fi
13930 done
13931 done
13932 IFS=$as_save_IFS
13933
13934 fi
13935 fi
13936 AR=$ac_cv_prog_AR
13937 if test -n "$AR"; then
13938   { echo "$as_me:$LINENO: result: $AR" >&5
13939 echo "${ECHO_T}$AR" >&6; }
13940 else
13941   { echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6; }
13943 fi
13944
13945
13946 fi
13947 if test -z "$ac_cv_prog_AR"; then
13948   ac_ct_AR=$AR
13949   # Extract the first word of "ar", so it can be a program name with args.
13950 set dummy ar; ac_word=$2
13951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13953 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956   if test -n "$ac_ct_AR"; then
13957   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962   IFS=$as_save_IFS
13963   test -z "$as_dir" && as_dir=.
13964   for ac_exec_ext in '' $ac_executable_extensions; do
13965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13966     ac_cv_prog_ac_ct_AR="ar"
13967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13968     break 2
13969   fi
13970 done
13971 done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13977 if test -n "$ac_ct_AR"; then
13978   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13979 echo "${ECHO_T}$ac_ct_AR" >&6; }
13980 else
13981   { echo "$as_me:$LINENO: result: no" >&5
13982 echo "${ECHO_T}no" >&6; }
13983 fi
13984
13985   if test "x$ac_ct_AR" = x; then
13986     AR="false"
13987   else
13988     case $cross_compiling:$ac_tool_warned in
13989 yes:)
13990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13991 whose name does not start with the host triplet.  If you think this
13992 configuration is useful to you, please write to autoconf@gnu.org." >&5
13993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13994 whose name does not start with the host triplet.  If you think this
13995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13996 ac_tool_warned=yes ;;
13997 esac
13998     AR=$ac_ct_AR
13999   fi
14000 else
14001   AR="$ac_cv_prog_AR"
14002 fi
14003
14004 if test -n "$ac_tool_prefix"; then
14005   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14009 if test "${ac_cv_prog_RANLIB+set}" = set; then
14010   echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012   if test -n "$RANLIB"; then
14013   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14014 else
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018   IFS=$as_save_IFS
14019   test -z "$as_dir" && as_dir=.
14020   for ac_exec_ext in '' $ac_executable_extensions; do
14021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14022     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024     break 2
14025   fi
14026 done
14027 done
14028 IFS=$as_save_IFS
14029
14030 fi
14031 fi
14032 RANLIB=$ac_cv_prog_RANLIB
14033 if test -n "$RANLIB"; then
14034   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14035 echo "${ECHO_T}$RANLIB" >&6; }
14036 else
14037   { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14039 fi
14040
14041
14042 fi
14043 if test -z "$ac_cv_prog_RANLIB"; then
14044   ac_ct_RANLIB=$RANLIB
14045   # Extract the first word of "ranlib", so it can be a program name with args.
14046 set dummy ranlib; ac_word=$2
14047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14049 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14050   echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052   if test -n "$ac_ct_RANLIB"; then
14053   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14054 else
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14057 do
14058   IFS=$as_save_IFS
14059   test -z "$as_dir" && as_dir=.
14060   for ac_exec_ext in '' $ac_executable_extensions; do
14061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14062     ac_cv_prog_ac_ct_RANLIB="ranlib"
14063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14064     break 2
14065   fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 fi
14071 fi
14072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14073 if test -n "$ac_ct_RANLIB"; then
14074   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14075 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14076 else
14077   { echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6; }
14079 fi
14080
14081   if test "x$ac_ct_RANLIB" = x; then
14082     RANLIB=":"
14083   else
14084     case $cross_compiling:$ac_tool_warned in
14085 yes:)
14086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14087 whose name does not start with the host triplet.  If you think this
14088 configuration is useful to you, please write to autoconf@gnu.org." >&5
14089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14090 whose name does not start with the host triplet.  If you think this
14091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14092 ac_tool_warned=yes ;;
14093 esac
14094     RANLIB=$ac_ct_RANLIB
14095   fi
14096 else
14097   RANLIB="$ac_cv_prog_RANLIB"
14098 fi
14099
14100 if test -n "$ac_tool_prefix"; then
14101   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}strip; ac_word=$2
14103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14105 if test "${ac_cv_prog_STRIP+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   if test -n "$STRIP"; then
14109   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14113 do
14114   IFS=$as_save_IFS
14115   test -z "$as_dir" && as_dir=.
14116   for ac_exec_ext in '' $ac_executable_extensions; do
14117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14118     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14120     break 2
14121   fi
14122 done
14123 done
14124 IFS=$as_save_IFS
14125
14126 fi
14127 fi
14128 STRIP=$ac_cv_prog_STRIP
14129 if test -n "$STRIP"; then
14130   { echo "$as_me:$LINENO: result: $STRIP" >&5
14131 echo "${ECHO_T}$STRIP" >&6; }
14132 else
14133   { echo "$as_me:$LINENO: result: no" >&5
14134 echo "${ECHO_T}no" >&6; }
14135 fi
14136
14137
14138 fi
14139 if test -z "$ac_cv_prog_STRIP"; then
14140   ac_ct_STRIP=$STRIP
14141   # Extract the first word of "strip", so it can be a program name with args.
14142 set dummy strip; ac_word=$2
14143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14145 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14146   echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148   if test -n "$ac_ct_STRIP"; then
14149   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14153 do
14154   IFS=$as_save_IFS
14155   test -z "$as_dir" && as_dir=.
14156   for ac_exec_ext in '' $ac_executable_extensions; do
14157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14158     ac_cv_prog_ac_ct_STRIP="strip"
14159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14160     break 2
14161   fi
14162 done
14163 done
14164 IFS=$as_save_IFS
14165
14166 fi
14167 fi
14168 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14169 if test -n "$ac_ct_STRIP"; then
14170   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14171 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14172 else
14173   { echo "$as_me:$LINENO: result: no" >&5
14174 echo "${ECHO_T}no" >&6; }
14175 fi
14176
14177   if test "x$ac_ct_STRIP" = x; then
14178     STRIP=":"
14179   else
14180     case $cross_compiling:$ac_tool_warned in
14181 yes:)
14182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14183 whose name does not start with the host triplet.  If you think this
14184 configuration is useful to you, please write to autoconf@gnu.org." >&5
14185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14186 whose name does not start with the host triplet.  If you think this
14187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14188 ac_tool_warned=yes ;;
14189 esac
14190     STRIP=$ac_ct_STRIP
14191   fi
14192 else
14193   STRIP="$ac_cv_prog_STRIP"
14194 fi
14195
14196
14197 old_CC="$CC"
14198 old_CFLAGS="$CFLAGS"
14199
14200 # Set sane defaults for various variables
14201 test -z "$AR" && AR=ar
14202 test -z "$AR_FLAGS" && AR_FLAGS=cru
14203 test -z "$AS" && AS=as
14204 test -z "$CC" && CC=cc
14205 test -z "$LTCC" && LTCC=$CC
14206 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14207 test -z "$DLLTOOL" && DLLTOOL=dlltool
14208 test -z "$LD" && LD=ld
14209 test -z "$LN_S" && LN_S="ln -s"
14210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14211 test -z "$NM" && NM=nm
14212 test -z "$SED" && SED=sed
14213 test -z "$OBJDUMP" && OBJDUMP=objdump
14214 test -z "$RANLIB" && RANLIB=:
14215 test -z "$STRIP" && STRIP=:
14216 test -z "$ac_objext" && ac_objext=o
14217
14218 # Determine commands to create old-style static archives.
14219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14220 old_postinstall_cmds='chmod 644 $oldlib'
14221 old_postuninstall_cmds=
14222
14223 if test -n "$RANLIB"; then
14224   case $host_os in
14225   openbsd*)
14226     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14227     ;;
14228   *)
14229     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14230     ;;
14231   esac
14232   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14233 fi
14234
14235 for cc_temp in $compiler""; do
14236   case $cc_temp in
14237     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14238     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14239     \-*) ;;
14240     *) break;;
14241   esac
14242 done
14243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14244
14245
14246 # Only perform the check for file, if the check method requires it
14247 case $deplibs_check_method in
14248 file_magic*)
14249   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14250     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255   case $MAGIC_CMD in
14256 [\\/*] |  ?:[\\/]*)
14257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14258   ;;
14259 *)
14260   lt_save_MAGIC_CMD="$MAGIC_CMD"
14261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14263   for ac_dir in $ac_dummy; do
14264     IFS="$lt_save_ifs"
14265     test -z "$ac_dir" && ac_dir=.
14266     if test -f $ac_dir/${ac_tool_prefix}file; then
14267       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14268       if test -n "$file_magic_test_file"; then
14269         case $deplibs_check_method in
14270         "file_magic "*)
14271           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14274             $EGREP "$file_magic_regex" > /dev/null; then
14275             :
14276           else
14277             cat <<EOF 1>&2
14278
14279 *** Warning: the command libtool uses to detect shared libraries,
14280 *** $file_magic_cmd, produces output that libtool cannot recognize.
14281 *** The result is that libtool may fail to recognize shared libraries
14282 *** as such.  This will affect the creation of libtool libraries that
14283 *** depend on shared libraries, but programs linked with such libtool
14284 *** libraries will work regardless of this problem.  Nevertheless, you
14285 *** may want to report the problem to your system manager and/or to
14286 *** bug-libtool@gnu.org
14287
14288 EOF
14289           fi ;;
14290         esac
14291       fi
14292       break
14293     fi
14294   done
14295   IFS="$lt_save_ifs"
14296   MAGIC_CMD="$lt_save_MAGIC_CMD"
14297   ;;
14298 esac
14299 fi
14300
14301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14302 if test -n "$MAGIC_CMD"; then
14303   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14305 else
14306   { echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6; }
14308 fi
14309
14310 if test -z "$lt_cv_path_MAGIC_CMD"; then
14311   if test -n "$ac_tool_prefix"; then
14312     { echo "$as_me:$LINENO: checking for file" >&5
14313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14315   echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317   case $MAGIC_CMD in
14318 [\\/*] |  ?:[\\/]*)
14319   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14320   ;;
14321 *)
14322   lt_save_MAGIC_CMD="$MAGIC_CMD"
14323   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14324   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14325   for ac_dir in $ac_dummy; do
14326     IFS="$lt_save_ifs"
14327     test -z "$ac_dir" && ac_dir=.
14328     if test -f $ac_dir/file; then
14329       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14330       if test -n "$file_magic_test_file"; then
14331         case $deplibs_check_method in
14332         "file_magic "*)
14333           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14334           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14336             $EGREP "$file_magic_regex" > /dev/null; then
14337             :
14338           else
14339             cat <<EOF 1>&2
14340
14341 *** Warning: the command libtool uses to detect shared libraries,
14342 *** $file_magic_cmd, produces output that libtool cannot recognize.
14343 *** The result is that libtool may fail to recognize shared libraries
14344 *** as such.  This will affect the creation of libtool libraries that
14345 *** depend on shared libraries, but programs linked with such libtool
14346 *** libraries will work regardless of this problem.  Nevertheless, you
14347 *** may want to report the problem to your system manager and/or to
14348 *** bug-libtool@gnu.org
14349
14350 EOF
14351           fi ;;
14352         esac
14353       fi
14354       break
14355     fi
14356   done
14357   IFS="$lt_save_ifs"
14358   MAGIC_CMD="$lt_save_MAGIC_CMD"
14359   ;;
14360 esac
14361 fi
14362
14363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14364 if test -n "$MAGIC_CMD"; then
14365   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14367 else
14368   { echo "$as_me:$LINENO: result: no" >&5
14369 echo "${ECHO_T}no" >&6; }
14370 fi
14371
14372   else
14373     MAGIC_CMD=:
14374   fi
14375 fi
14376
14377   fi
14378   ;;
14379 esac
14380
14381 enable_dlopen=yes
14382 enable_win32_dll=no
14383
14384 # Check whether --enable-libtool-lock was given.
14385 if test "${enable_libtool_lock+set}" = set; then
14386   enableval=$enable_libtool_lock;
14387 fi
14388
14389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14390
14391
14392 # Check whether --with-pic was given.
14393 if test "${with_pic+set}" = set; then
14394   withval=$with_pic; pic_mode="$withval"
14395 else
14396   pic_mode=default
14397 fi
14398
14399 test -z "$pic_mode" && pic_mode=default
14400
14401 # Use C for the default configuration in the libtool script
14402 tagname=
14403 lt_save_CC="$CC"
14404 ac_ext=c
14405 ac_cpp='$CPP $CPPFLAGS'
14406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14409
14410
14411 # Source file extension for C test sources.
14412 ac_ext=c
14413
14414 # Object file extension for compiled C test sources.
14415 objext=o
14416 objext=$objext
14417
14418 # Code to be used in simple compile tests
14419 lt_simple_compile_test_code="int some_variable = 0;\n"
14420
14421 # Code to be used in simple link tests
14422 lt_simple_link_test_code='int main(){return(0);}\n'
14423
14424
14425 # If no C compiler was specified, use CC.
14426 LTCC=${LTCC-"$CC"}
14427
14428 # If no C compiler flags were specified, use CFLAGS.
14429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14430
14431 # Allow CC to be a program name with arguments.
14432 compiler=$CC
14433
14434
14435 # save warnings/boilerplate of simple test code
14436 ac_outfile=conftest.$ac_objext
14437 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14439 _lt_compiler_boilerplate=`cat conftest.err`
14440 $rm conftest*
14441
14442 ac_outfile=conftest.$ac_objext
14443 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14445 _lt_linker_boilerplate=`cat conftest.err`
14446 $rm conftest*
14447
14448
14449
14450 lt_prog_compiler_no_builtin_flag=
14451
14452 if test "$GCC" = yes; then
14453   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14454
14455
14456 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14457 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14458 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14459   echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461   lt_cv_prog_compiler_rtti_exceptions=no
14462   ac_outfile=conftest.$ac_objext
14463    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14464    lt_compiler_flag="-fno-rtti -fno-exceptions"
14465    # Insert the option either (1) after the last *FLAGS variable, or
14466    # (2) before a word containing "conftest.", or (3) at the end.
14467    # Note that $ac_compile itself does not contain backslashes and begins
14468    # with a dollar sign (not a hyphen), so the echo should work correctly.
14469    # The option is referenced via a variable to avoid confusing sed.
14470    lt_compile=`echo "$ac_compile" | $SED \
14471    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14473    -e 's:$: $lt_compiler_flag:'`
14474    (eval echo "\"\$as_me:14474: $lt_compile\"" >&5)
14475    (eval "$lt_compile" 2>conftest.err)
14476    ac_status=$?
14477    cat conftest.err >&5
14478    echo "$as_me:14478: \$? = $ac_status" >&5
14479    if (exit $ac_status) && test -s "$ac_outfile"; then
14480      # The compiler can only warn and ignore the option if not recognized
14481      # So say no if there are warnings other than the usual output.
14482      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14483      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14484      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14485        lt_cv_prog_compiler_rtti_exceptions=yes
14486      fi
14487    fi
14488    $rm conftest*
14489
14490 fi
14491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14492 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14493
14494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14495     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14496 else
14497     :
14498 fi
14499
14500 fi
14501
14502 lt_prog_compiler_wl=
14503 lt_prog_compiler_pic=
14504 lt_prog_compiler_static=
14505
14506 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14507 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14508
14509   if test "$GCC" = yes; then
14510     lt_prog_compiler_wl='-Wl,'
14511     lt_prog_compiler_static='-static'
14512
14513     case $host_os in
14514       aix*)
14515       # All AIX code is PIC.
14516       if test "$host_cpu" = ia64; then
14517         # AIX 5 now supports IA64 processor
14518         lt_prog_compiler_static='-Bstatic'
14519       fi
14520       ;;
14521
14522     amigaos*)
14523       # FIXME: we need at least 68020 code to build shared libraries, but
14524       # adding the `-m68020' flag to GCC prevents building anything better,
14525       # like `-m68040'.
14526       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14527       ;;
14528
14529     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14530       # PIC is the default for these OSes.
14531       ;;
14532
14533     mingw* | pw32* | os2*)
14534       # This hack is so that the source file can tell whether it is being
14535       # built for inclusion in a dll (and should export symbols for example).
14536       lt_prog_compiler_pic='-DDLL_EXPORT'
14537       ;;
14538
14539     darwin* | rhapsody*)
14540       # PIC is the default on this platform
14541       # Common symbols not allowed in MH_DYLIB files
14542       lt_prog_compiler_pic='-fno-common'
14543       ;;
14544
14545     interix3*)
14546       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14547       # Instead, we relocate shared libraries at runtime.
14548       ;;
14549
14550     msdosdjgpp*)
14551       # Just because we use GCC doesn't mean we suddenly get shared libraries
14552       # on systems that don't support them.
14553       lt_prog_compiler_can_build_shared=no
14554       enable_shared=no
14555       ;;
14556
14557     sysv4*MP*)
14558       if test -d /usr/nec; then
14559         lt_prog_compiler_pic=-Kconform_pic
14560       fi
14561       ;;
14562
14563     hpux*)
14564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14565       # not for PA HP-UX.
14566       case $host_cpu in
14567       hppa*64*|ia64*)
14568         # +Z the default
14569         ;;
14570       *)
14571         lt_prog_compiler_pic='-fPIC'
14572         ;;
14573       esac
14574       ;;
14575
14576     *)
14577       lt_prog_compiler_pic='-fPIC'
14578       ;;
14579     esac
14580   else
14581     # PORTME Check for flag to pass linker flags through the system compiler.
14582     case $host_os in
14583     aix*)
14584       lt_prog_compiler_wl='-Wl,'
14585       if test "$host_cpu" = ia64; then
14586         # AIX 5 now supports IA64 processor
14587         lt_prog_compiler_static='-Bstatic'
14588       else
14589         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14590       fi
14591       ;;
14592       darwin*)
14593         # PIC is the default on this platform
14594         # Common symbols not allowed in MH_DYLIB files
14595        case $cc_basename in
14596          xlc*)
14597          lt_prog_compiler_pic='-qnocommon'
14598          lt_prog_compiler_wl='-Wl,'
14599          ;;
14600        esac
14601        ;;
14602
14603     mingw* | pw32* | os2*)
14604       # This hack is so that the source file can tell whether it is being
14605       # built for inclusion in a dll (and should export symbols for example).
14606       lt_prog_compiler_pic='-DDLL_EXPORT'
14607       ;;
14608
14609     hpux9* | hpux10* | hpux11*)
14610       lt_prog_compiler_wl='-Wl,'
14611       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14612       # not for PA HP-UX.
14613       case $host_cpu in
14614       hppa*64*|ia64*)
14615         # +Z the default
14616         ;;
14617       *)
14618         lt_prog_compiler_pic='+Z'
14619         ;;
14620       esac
14621       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14622       lt_prog_compiler_static='${wl}-a ${wl}archive'
14623       ;;
14624
14625     irix5* | irix6* | nonstopux*)
14626       lt_prog_compiler_wl='-Wl,'
14627       # PIC (with -KPIC) is the default.
14628       lt_prog_compiler_static='-non_shared'
14629       ;;
14630
14631     newsos6)
14632       lt_prog_compiler_pic='-KPIC'
14633       lt_prog_compiler_static='-Bstatic'
14634       ;;
14635
14636     linux*)
14637       case $cc_basename in
14638       icc* | ecc*)
14639         lt_prog_compiler_wl='-Wl,'
14640         lt_prog_compiler_pic='-KPIC'
14641         lt_prog_compiler_static='-static'
14642         ;;
14643       pgcc* | pgf77* | pgf90* | pgf95*)
14644         # Portland Group compilers (*not* the Pentium gcc compiler,
14645         # which looks to be a dead project)
14646         lt_prog_compiler_wl='-Wl,'
14647         lt_prog_compiler_pic='-fpic'
14648         lt_prog_compiler_static='-Bstatic'
14649         ;;
14650       ccc*)
14651         lt_prog_compiler_wl='-Wl,'
14652         # All Alpha code is PIC.
14653         lt_prog_compiler_static='-non_shared'
14654         ;;
14655       esac
14656       ;;
14657
14658     osf3* | osf4* | osf5*)
14659       lt_prog_compiler_wl='-Wl,'
14660       # All OSF/1 code is PIC.
14661       lt_prog_compiler_static='-non_shared'
14662       ;;
14663
14664     solaris*)
14665       lt_prog_compiler_pic='-KPIC'
14666       lt_prog_compiler_static='-Bstatic'
14667       case $cc_basename in
14668       f77* | f90* | f95*)
14669         lt_prog_compiler_wl='-Qoption ld ';;
14670       *)
14671         lt_prog_compiler_wl='-Wl,';;
14672       esac
14673       ;;
14674
14675     sunos4*)
14676       lt_prog_compiler_wl='-Qoption ld '
14677       lt_prog_compiler_pic='-PIC'
14678       lt_prog_compiler_static='-Bstatic'
14679       ;;
14680
14681     sysv4 | sysv4.2uw2* | sysv4.3*)
14682       lt_prog_compiler_wl='-Wl,'
14683       lt_prog_compiler_pic='-KPIC'
14684       lt_prog_compiler_static='-Bstatic'
14685       ;;
14686
14687     sysv4*MP*)
14688       if test -d /usr/nec ;then
14689         lt_prog_compiler_pic='-Kconform_pic'
14690         lt_prog_compiler_static='-Bstatic'
14691       fi
14692       ;;
14693
14694     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14695       lt_prog_compiler_wl='-Wl,'
14696       lt_prog_compiler_pic='-KPIC'
14697       lt_prog_compiler_static='-Bstatic'
14698       ;;
14699
14700     unicos*)
14701       lt_prog_compiler_wl='-Wl,'
14702       lt_prog_compiler_can_build_shared=no
14703       ;;
14704
14705     uts4*)
14706       lt_prog_compiler_pic='-pic'
14707       lt_prog_compiler_static='-Bstatic'
14708       ;;
14709
14710     *)
14711       lt_prog_compiler_can_build_shared=no
14712       ;;
14713     esac
14714   fi
14715
14716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14717 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14718
14719 #
14720 # Check to make sure the PIC flag actually works.
14721 #
14722 if test -n "$lt_prog_compiler_pic"; then
14723
14724 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14725 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14726 if test "${lt_prog_compiler_pic_works+set}" = set; then
14727   echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729   lt_prog_compiler_pic_works=no
14730   ac_outfile=conftest.$ac_objext
14731    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14732    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14733    # Insert the option either (1) after the last *FLAGS variable, or
14734    # (2) before a word containing "conftest.", or (3) at the end.
14735    # Note that $ac_compile itself does not contain backslashes and begins
14736    # with a dollar sign (not a hyphen), so the echo should work correctly.
14737    # The option is referenced via a variable to avoid confusing sed.
14738    lt_compile=`echo "$ac_compile" | $SED \
14739    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14740    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14741    -e 's:$: $lt_compiler_flag:'`
14742    (eval echo "\"\$as_me:14742: $lt_compile\"" >&5)
14743    (eval "$lt_compile" 2>conftest.err)
14744    ac_status=$?
14745    cat conftest.err >&5
14746    echo "$as_me:14746: \$? = $ac_status" >&5
14747    if (exit $ac_status) && test -s "$ac_outfile"; then
14748      # The compiler can only warn and ignore the option if not recognized
14749      # So say no if there are warnings other than the usual output.
14750      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14751      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14752      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14753        lt_prog_compiler_pic_works=yes
14754      fi
14755    fi
14756    $rm conftest*
14757
14758 fi
14759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14760 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14761
14762 if test x"$lt_prog_compiler_pic_works" = xyes; then
14763     case $lt_prog_compiler_pic in
14764      "" | " "*) ;;
14765      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14766      esac
14767 else
14768     lt_prog_compiler_pic=
14769      lt_prog_compiler_can_build_shared=no
14770 fi
14771
14772 fi
14773 case $host_os in
14774   # For platforms which do not support PIC, -DPIC is meaningless:
14775   *djgpp*)
14776     lt_prog_compiler_pic=
14777     ;;
14778   *)
14779     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14780     ;;
14781 esac
14782
14783 #
14784 # Check to make sure the static flag actually works.
14785 #
14786 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14787 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14788 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14789 if test "${lt_prog_compiler_static_works+set}" = set; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792   lt_prog_compiler_static_works=no
14793    save_LDFLAGS="$LDFLAGS"
14794    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14795    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14796    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14797      # The linker can only warn and ignore the option if not recognized
14798      # So say no if there are warnings
14799      if test -s conftest.err; then
14800        # Append any errors to the config.log.
14801        cat conftest.err 1>&5
14802        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14803        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804        if diff conftest.exp conftest.er2 >/dev/null; then
14805          lt_prog_compiler_static_works=yes
14806        fi
14807      else
14808        lt_prog_compiler_static_works=yes
14809      fi
14810    fi
14811    $rm conftest*
14812    LDFLAGS="$save_LDFLAGS"
14813
14814 fi
14815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14816 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14817
14818 if test x"$lt_prog_compiler_static_works" = xyes; then
14819     :
14820 else
14821     lt_prog_compiler_static=
14822 fi
14823
14824
14825 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14826 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14827 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14828   echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830   lt_cv_prog_compiler_c_o=no
14831    $rm -r conftest 2>/dev/null
14832    mkdir conftest
14833    cd conftest
14834    mkdir out
14835    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14836
14837    lt_compiler_flag="-o out/conftest2.$ac_objext"
14838    # Insert the option either (1) after the last *FLAGS variable, or
14839    # (2) before a word containing "conftest.", or (3) at the end.
14840    # Note that $ac_compile itself does not contain backslashes and begins
14841    # with a dollar sign (not a hyphen), so the echo should work correctly.
14842    lt_compile=`echo "$ac_compile" | $SED \
14843    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14844    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14845    -e 's:$: $lt_compiler_flag:'`
14846    (eval echo "\"\$as_me:14846: $lt_compile\"" >&5)
14847    (eval "$lt_compile" 2>out/conftest.err)
14848    ac_status=$?
14849    cat out/conftest.err >&5
14850    echo "$as_me:14850: \$? = $ac_status" >&5
14851    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14852    then
14853      # The compiler can only warn and ignore the option if not recognized
14854      # So say no if there are warnings
14855      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14856      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14857      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14858        lt_cv_prog_compiler_c_o=yes
14859      fi
14860    fi
14861    chmod u+w . 2>&5
14862    $rm conftest*
14863    # SGI C++ compiler will create directory out/ii_files/ for
14864    # template instantiation
14865    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14866    $rm out/* && rmdir out
14867    cd ..
14868    rmdir conftest
14869    $rm conftest*
14870
14871 fi
14872 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14873 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14874
14875
14876 hard_links="nottested"
14877 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14878   # do not overwrite the value of need_locks provided by the user
14879   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14880 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14881   hard_links=yes
14882   $rm conftest*
14883   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14884   touch conftest.a
14885   ln conftest.a conftest.b 2>&5 || hard_links=no
14886   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14887   { echo "$as_me:$LINENO: result: $hard_links" >&5
14888 echo "${ECHO_T}$hard_links" >&6; }
14889   if test "$hard_links" = no; then
14890     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14891 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14892     need_locks=warn
14893   fi
14894 else
14895   need_locks=no
14896 fi
14897
14898 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14899 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14900
14901   runpath_var=
14902   allow_undefined_flag=
14903   enable_shared_with_static_runtimes=no
14904   archive_cmds=
14905   archive_expsym_cmds=
14906   old_archive_From_new_cmds=
14907   old_archive_from_expsyms_cmds=
14908   export_dynamic_flag_spec=
14909   whole_archive_flag_spec=
14910   thread_safe_flag_spec=
14911   hardcode_libdir_flag_spec=
14912   hardcode_libdir_flag_spec_ld=
14913   hardcode_libdir_separator=
14914   hardcode_direct=no
14915   hardcode_minus_L=no
14916   hardcode_shlibpath_var=unsupported
14917   link_all_deplibs=unknown
14918   hardcode_automatic=no
14919   module_cmds=
14920   module_expsym_cmds=
14921   always_export_symbols=no
14922   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14923   # include_expsyms should be a list of space-separated symbols to be *always*
14924   # included in the symbol list
14925   include_expsyms=
14926   # exclude_expsyms can be an extended regexp of symbols to exclude
14927   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14928   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14929   # as well as any symbol that contains `d'.
14930   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14931   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14932   # platforms (ab)use it in PIC code, but their linkers get confused if
14933   # the symbol is explicitly referenced.  Since portable code cannot
14934   # rely on this symbol name, it's probably fine to never include it in
14935   # preloaded symbol tables.
14936   extract_expsyms_cmds=
14937   # Just being paranoid about ensuring that cc_basename is set.
14938   for cc_temp in $compiler""; do
14939   case $cc_temp in
14940     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14941     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14942     \-*) ;;
14943     *) break;;
14944   esac
14945 done
14946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14947
14948   case $host_os in
14949   cygwin* | mingw* | pw32*)
14950     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14951     # When not using gcc, we currently assume that we are using
14952     # Microsoft Visual C++.
14953     if test "$GCC" != yes; then
14954       with_gnu_ld=no
14955     fi
14956     ;;
14957   interix*)
14958     # we just hope/assume this is gcc and not c89 (= MSVC++)
14959     with_gnu_ld=yes
14960     ;;
14961   openbsd*)
14962     with_gnu_ld=no
14963     ;;
14964   esac
14965
14966   ld_shlibs=yes
14967   if test "$with_gnu_ld" = yes; then
14968     # If archive_cmds runs LD, not CC, wlarc should be empty
14969     wlarc='${wl}'
14970
14971     # Set some defaults for GNU ld with shared library support. These
14972     # are reset later if shared libraries are not supported. Putting them
14973     # here allows them to be overridden if necessary.
14974     runpath_var=LD_RUN_PATH
14975     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14976     export_dynamic_flag_spec='${wl}--export-dynamic'
14977     # ancient GNU ld didn't support --whole-archive et. al.
14978     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14979         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14980       else
14981         whole_archive_flag_spec=
14982     fi
14983     supports_anon_versioning=no
14984     case `$LD -v 2>/dev/null` in
14985       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14986       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14987       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14988       *\ 2.11.*) ;; # other 2.11 versions
14989       *) supports_anon_versioning=yes ;;
14990     esac
14991
14992     # See if GNU ld supports shared libraries.
14993     case $host_os in
14994     aix3* | aix4* | aix5*)
14995       # On AIX/PPC, the GNU linker is very broken
14996       if test "$host_cpu" != ia64; then
14997         ld_shlibs=no
14998         cat <<EOF 1>&2
14999
15000 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15001 *** to be unable to reliably create shared libraries on AIX.
15002 *** Therefore, libtool is disabling shared libraries support.  If you
15003 *** really care for shared libraries, you may want to modify your PATH
15004 *** so that a non-GNU linker is found, and then restart.
15005
15006 EOF
15007       fi
15008       ;;
15009
15010     amigaos*)
15011       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)'
15012       hardcode_libdir_flag_spec='-L$libdir'
15013       hardcode_minus_L=yes
15014
15015       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15016       # that the semantics of dynamic libraries on AmigaOS, at least up
15017       # to version 4, is to share data among multiple programs linked
15018       # with the same dynamic library.  Since this doesn't match the
15019       # behavior of shared libraries on other platforms, we can't use
15020       # them.
15021       ld_shlibs=no
15022       ;;
15023
15024     beos*)
15025       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15026         allow_undefined_flag=unsupported
15027         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15028         # support --undefined.  This deserves some investigation.  FIXME
15029         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030       else
15031         ld_shlibs=no
15032       fi
15033       ;;
15034
15035     cygwin* | mingw* | pw32*)
15036       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15037       # as there is no search path for DLLs.
15038       hardcode_libdir_flag_spec='-L$libdir'
15039       allow_undefined_flag=unsupported
15040       always_export_symbols=no
15041       enable_shared_with_static_runtimes=yes
15042       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15043
15044       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15046         # If the export-symbols file already is a .def file (1st line
15047         # is EXPORTS), use it as is; otherwise, prepend...
15048         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15049           cp $export_symbols $output_objdir/$soname.def;
15050         else
15051           echo EXPORTS > $output_objdir/$soname.def;
15052           cat $export_symbols >> $output_objdir/$soname.def;
15053         fi~
15054         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15055       else
15056         ld_shlibs=no
15057       fi
15058       ;;
15059
15060     interix3*)
15061       hardcode_direct=no
15062       hardcode_shlibpath_var=no
15063       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15064       export_dynamic_flag_spec='${wl}-E'
15065       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15066       # Instead, shared libraries are loaded at an image base (0x10000000 by
15067       # default) and relocated if they conflict, which is a slow very memory
15068       # consuming and fragmenting process.  To avoid this, we pick a random,
15069       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15070       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15071       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15072       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'
15073       ;;
15074
15075     linux*)
15076       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15077         tmp_addflag=
15078         case $cc_basename,$host_cpu in
15079         pgcc*)                          # Portland Group C compiler
15080           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'
15081           tmp_addflag=' $pic_flag'
15082           ;;
15083         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15084           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'
15085           tmp_addflag=' $pic_flag -Mnomain' ;;
15086         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15087           tmp_addflag=' -i_dynamic' ;;
15088         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15089           tmp_addflag=' -i_dynamic -nofor_main' ;;
15090         ifc* | ifort*)                  # Intel Fortran compiler
15091           tmp_addflag=' -nofor_main' ;;
15092         esac
15093         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15094
15095         if test $supports_anon_versioning = yes; then
15096           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15097   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15098   $echo "local: *; };" >> $output_objdir/$libname.ver~
15099           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15100         fi
15101       else
15102         ld_shlibs=no
15103       fi
15104       ;;
15105
15106     netbsd*)
15107       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15108         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15109         wlarc=
15110       else
15111         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15113       fi
15114       ;;
15115
15116     solaris*)
15117       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15118         ld_shlibs=no
15119         cat <<EOF 1>&2
15120
15121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15122 *** create shared libraries on Solaris systems.  Therefore, libtool
15123 *** is disabling shared libraries support.  We urge you to upgrade GNU
15124 *** binutils to release 2.9.1 or newer.  Another option is to modify
15125 *** your PATH or compiler configuration so that the native linker is
15126 *** used, and then restart.
15127
15128 EOF
15129       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15130         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15132       else
15133         ld_shlibs=no
15134       fi
15135       ;;
15136
15137     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15138       case `$LD -v 2>&1` in
15139         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15140         ld_shlibs=no
15141         cat <<_LT_EOF 1>&2
15142
15143 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15144 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15145 *** is disabling shared libraries support.  We urge you to upgrade GNU
15146 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15147 *** your PATH or compiler configuration so that the native linker is
15148 *** used, and then restart.
15149
15150 _LT_EOF
15151         ;;
15152         *)
15153           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15155             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15156             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15157           else
15158             ld_shlibs=no
15159           fi
15160         ;;
15161       esac
15162       ;;
15163
15164     sunos4*)
15165       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15166       wlarc=
15167       hardcode_direct=yes
15168       hardcode_shlibpath_var=no
15169       ;;
15170
15171     *)
15172       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175       else
15176         ld_shlibs=no
15177       fi
15178       ;;
15179     esac
15180
15181     if test "$ld_shlibs" = no; then
15182       runpath_var=
15183       hardcode_libdir_flag_spec=
15184       export_dynamic_flag_spec=
15185       whole_archive_flag_spec=
15186     fi
15187   else
15188     # PORTME fill in a description of your system's linker (not GNU ld)
15189     case $host_os in
15190     aix3*)
15191       allow_undefined_flag=unsupported
15192       always_export_symbols=yes
15193       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'
15194       # Note: this linker hardcodes the directories in LIBPATH if there
15195       # are no directories specified by -L.
15196       hardcode_minus_L=yes
15197       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15198         # Neither direct hardcoding nor static linking is supported with a
15199         # broken collect2.
15200         hardcode_direct=unsupported
15201       fi
15202       ;;
15203
15204     aix4* | aix5*)
15205       if test "$host_cpu" = ia64; then
15206         # On IA64, the linker does run time linking by default, so we don't
15207         # have to do anything special.
15208         aix_use_runtimelinking=no
15209         exp_sym_flag='-Bexport'
15210         no_entry_flag=""
15211       else
15212         # If we're using GNU nm, then we don't want the "-C" option.
15213         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15214         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15215           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'
15216         else
15217           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'
15218         fi
15219         aix_use_runtimelinking=no
15220
15221         # Test if we are trying to use run time linking or normal
15222         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15223         # need to do runtime linking.
15224         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15225           for ld_flag in $LDFLAGS; do
15226           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15227             aix_use_runtimelinking=yes
15228             break
15229           fi
15230           done
15231           ;;
15232         esac
15233
15234         exp_sym_flag='-bexport'
15235         no_entry_flag='-bnoentry'
15236       fi
15237
15238       # When large executables or shared objects are built, AIX ld can
15239       # have problems creating the table of contents.  If linking a library
15240       # or program results in "error TOC overflow" add -mminimal-toc to
15241       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15242       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15243
15244       archive_cmds=''
15245       hardcode_direct=yes
15246       hardcode_libdir_separator=':'
15247       link_all_deplibs=yes
15248
15249       if test "$GCC" = yes; then
15250         case $host_os in aix4.[012]|aix4.[012].*)
15251         # We only want to do this on AIX 4.2 and lower, the check
15252         # below for broken collect2 doesn't work under 4.3+
15253           collect2name=`${CC} -print-prog-name=collect2`
15254           if test -f "$collect2name" && \
15255            strings "$collect2name" | grep resolve_lib_name >/dev/null
15256           then
15257           # We have reworked collect2
15258           hardcode_direct=yes
15259           else
15260           # We have old collect2
15261           hardcode_direct=unsupported
15262           # It fails to find uninstalled libraries when the uninstalled
15263           # path is not listed in the libpath.  Setting hardcode_minus_L
15264           # to unsupported forces relinking
15265           hardcode_minus_L=yes
15266           hardcode_libdir_flag_spec='-L$libdir'
15267           hardcode_libdir_separator=
15268           fi
15269           ;;
15270         esac
15271         shared_flag='-shared'
15272         if test "$aix_use_runtimelinking" = yes; then
15273           shared_flag="$shared_flag "'${wl}-G'
15274         fi
15275       else
15276         # not using gcc
15277         if test "$host_cpu" = ia64; then
15278         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15279         # chokes on -Wl,-G. The following line is correct:
15280           shared_flag='-G'
15281         else
15282           if test "$aix_use_runtimelinking" = yes; then
15283             shared_flag='${wl}-G'
15284           else
15285             shared_flag='${wl}-bM:SRE'
15286           fi
15287         fi
15288       fi
15289
15290       # It seems that -bexpall does not export symbols beginning with
15291       # underscore (_), so it is better to generate a list of symbols to export.
15292       always_export_symbols=yes
15293       if test "$aix_use_runtimelinking" = yes; then
15294         # Warning - without using the other runtime loading flags (-brtl),
15295         # -berok will link without error, but may produce a broken library.
15296         allow_undefined_flag='-berok'
15297        # Determine the default libpath from the value encoded in an empty executable.
15298        cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304
15305 int
15306 main ()
15307 {
15308
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (ac_try="$ac_link"
15315 case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_link") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328   { (case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_try") 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; } &&
15337          { ac_try='test -s conftest$ac_exeext'
15338   { (case "(($ac_try" in
15339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340   *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343   (eval "$ac_try") 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347
15348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15349 }'`
15350 # Check for a 64-bit object if we didn't find anything.
15351 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; }
15352 }'`; fi
15353 else
15354   echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357
15358 fi
15359
15360 rm -f core conftest.err conftest.$ac_objext \
15361       conftest$ac_exeext conftest.$ac_ext
15362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15363
15364        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15365         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"
15366        else
15367         if test "$host_cpu" = ia64; then
15368           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15369           allow_undefined_flag="-z nodefs"
15370           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"
15371         else
15372          # Determine the default libpath from the value encoded in an empty executable.
15373          cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379
15380 int
15381 main ()
15382 {
15383
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_link") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } &&
15402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15403   { (case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_try") 2>&5
15409   ac_status=$?
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); }; } &&
15412          { ac_try='test -s conftest$ac_exeext'
15413   { (case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_try") 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; }; then
15422
15423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15424 }'`
15425 # Check for a 64-bit object if we didn't find anything.
15426 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; }
15427 }'`; fi
15428 else
15429   echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432
15433 fi
15434
15435 rm -f core conftest.err conftest.$ac_objext \
15436       conftest$ac_exeext conftest.$ac_ext
15437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15438
15439          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15440           # Warning - without using the other run time loading flags,
15441           # -berok will link without error, but may produce a broken library.
15442           no_undefined_flag=' ${wl}-bernotok'
15443           allow_undefined_flag=' ${wl}-berok'
15444           # Exported symbols can be pulled into shared objects from archives
15445           whole_archive_flag_spec='$convenience'
15446           archive_cmds_need_lc=yes
15447           # This is similar to how AIX traditionally builds its shared libraries.
15448           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'
15449         fi
15450       fi
15451       ;;
15452
15453     amigaos*)
15454       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15455       hardcode_libdir_flag_spec='-L$libdir'
15456       hardcode_minus_L=yes
15457       # see comment about different semantics on the GNU ld section
15458       ld_shlibs=no
15459       ;;
15460
15461     bsdi[45]*)
15462       export_dynamic_flag_spec=-rdynamic
15463       ;;
15464
15465     cygwin* | mingw* | pw32*)
15466       # When not using gcc, we currently assume that we are using
15467       # Microsoft Visual C++.
15468       # hardcode_libdir_flag_spec is actually meaningless, as there is
15469       # no search path for DLLs.
15470       hardcode_libdir_flag_spec=' '
15471       allow_undefined_flag=unsupported
15472       # Tell ltmain to make .lib files, not .a files.
15473       libext=lib
15474       # Tell ltmain to make .dll files, not .so files.
15475       shrext_cmds=".dll"
15476       # FIXME: Setting linknames here is a bad hack.
15477       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15478       # The linker will automatically build a .lib file if we build a DLL.
15479       old_archive_From_new_cmds='true'
15480       # FIXME: Should let the user specify the lib program.
15481       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15482       fix_srcfile_path='`cygpath -w "$srcfile"`'
15483       enable_shared_with_static_runtimes=yes
15484       ;;
15485
15486     darwin* | rhapsody*)
15487       case $host_os in
15488         rhapsody* | darwin1.[012])
15489          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15490          ;;
15491        *) # Darwin 1.3 on
15492          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15494          else
15495            case ${MACOSX_DEPLOYMENT_TARGET} in
15496              10.[012])
15497                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15498                ;;
15499              10.*)
15500                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15501                ;;
15502            esac
15503          fi
15504          ;;
15505       esac
15506       archive_cmds_need_lc=no
15507       hardcode_direct=no
15508       hardcode_automatic=yes
15509       hardcode_shlibpath_var=unsupported
15510       whole_archive_flag_spec=''
15511       link_all_deplibs=yes
15512     if test "$GCC" = yes ; then
15513         output_verbose_link_cmd='echo'
15514         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15515       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15516       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15517       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}'
15518       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}'
15519     else
15520       case $cc_basename in
15521         xlc*)
15522          output_verbose_link_cmd='echo'
15523          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15524          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15525           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15526          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}'
15527           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}'
15528           ;;
15529        *)
15530          ld_shlibs=no
15531           ;;
15532       esac
15533     fi
15534       ;;
15535
15536     dgux*)
15537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15538       hardcode_libdir_flag_spec='-L$libdir'
15539       hardcode_shlibpath_var=no
15540       ;;
15541
15542     freebsd1*)
15543       ld_shlibs=no
15544       ;;
15545
15546     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15547     # support.  Future versions do this automatically, but an explicit c++rt0.o
15548     # does not break anything, and helps significantly (at the cost of a little
15549     # extra space).
15550     freebsd2.2*)
15551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15552       hardcode_libdir_flag_spec='-R$libdir'
15553       hardcode_direct=yes
15554       hardcode_shlibpath_var=no
15555       ;;
15556
15557     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15558     freebsd2*)
15559       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15560       hardcode_direct=yes
15561       hardcode_minus_L=yes
15562       hardcode_shlibpath_var=no
15563       ;;
15564
15565     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15566     freebsd* | kfreebsd*-gnu | dragonfly*)
15567       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15568       hardcode_libdir_flag_spec='-R$libdir'
15569       hardcode_direct=yes
15570       hardcode_shlibpath_var=no
15571       ;;
15572
15573     hpux9*)
15574       if test "$GCC" = yes; then
15575         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'
15576       else
15577         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'
15578       fi
15579       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15580       hardcode_libdir_separator=:
15581       hardcode_direct=yes
15582
15583       # hardcode_minus_L: Not really in the search PATH,
15584       # but as the default location of the library.
15585       hardcode_minus_L=yes
15586       export_dynamic_flag_spec='${wl}-E'
15587       ;;
15588
15589     hpux10*)
15590       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15591         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15592       else
15593         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15594       fi
15595       if test "$with_gnu_ld" = no; then
15596         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597         hardcode_libdir_separator=:
15598
15599         hardcode_direct=yes
15600         export_dynamic_flag_spec='${wl}-E'
15601
15602         # hardcode_minus_L: Not really in the search PATH,
15603         # but as the default location of the library.
15604         hardcode_minus_L=yes
15605       fi
15606       ;;
15607
15608     hpux11*)
15609       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15610         case $host_cpu in
15611         hppa*64*)
15612           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613           ;;
15614         ia64*)
15615           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15616           ;;
15617         *)
15618           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619           ;;
15620         esac
15621       else
15622         case $host_cpu in
15623         hppa*64*)
15624           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625           ;;
15626         ia64*)
15627           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15628           ;;
15629         *)
15630           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15631           ;;
15632         esac
15633       fi
15634       if test "$with_gnu_ld" = no; then
15635         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15636         hardcode_libdir_separator=:
15637
15638         case $host_cpu in
15639         hppa*64*|ia64*)
15640           hardcode_libdir_flag_spec_ld='+b $libdir'
15641           hardcode_direct=no
15642           hardcode_shlibpath_var=no
15643           ;;
15644         *)
15645           hardcode_direct=yes
15646           export_dynamic_flag_spec='${wl}-E'
15647
15648           # hardcode_minus_L: Not really in the search PATH,
15649           # but as the default location of the library.
15650           hardcode_minus_L=yes
15651           ;;
15652         esac
15653       fi
15654       ;;
15655
15656     irix5* | irix6* | nonstopux*)
15657       if test "$GCC" = yes; then
15658         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'
15659       else
15660         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'
15661         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15662       fi
15663       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15664       hardcode_libdir_separator=:
15665       link_all_deplibs=yes
15666       ;;
15667
15668     netbsd*)
15669       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15670         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15671       else
15672         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15673       fi
15674       hardcode_libdir_flag_spec='-R$libdir'
15675       hardcode_direct=yes
15676       hardcode_shlibpath_var=no
15677       ;;
15678
15679     newsos6)
15680       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681       hardcode_direct=yes
15682       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15683       hardcode_libdir_separator=:
15684       hardcode_shlibpath_var=no
15685       ;;
15686
15687     openbsd*)
15688       hardcode_direct=yes
15689       hardcode_shlibpath_var=no
15690       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15691         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15692         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15693         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15694         export_dynamic_flag_spec='${wl}-E'
15695       else
15696        case $host_os in
15697          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15698            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15699            hardcode_libdir_flag_spec='-R$libdir'
15700            ;;
15701          *)
15702            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15703            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15704            ;;
15705        esac
15706       fi
15707       ;;
15708
15709     os2*)
15710       hardcode_libdir_flag_spec='-L$libdir'
15711       hardcode_minus_L=yes
15712       allow_undefined_flag=unsupported
15713       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'
15714       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15715       ;;
15716
15717     osf3*)
15718       if test "$GCC" = yes; then
15719         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15720         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'
15721       else
15722         allow_undefined_flag=' -expect_unresolved \*'
15723         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'
15724       fi
15725       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726       hardcode_libdir_separator=:
15727       ;;
15728
15729     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15730       if test "$GCC" = yes; then
15731         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15732         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'
15733         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15734       else
15735         allow_undefined_flag=' -expect_unresolved \*'
15736         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'
15737         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15738         $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'
15739
15740         # Both c and cxx compiler support -rpath directly
15741         hardcode_libdir_flag_spec='-rpath $libdir'
15742       fi
15743       hardcode_libdir_separator=:
15744       ;;
15745
15746     solaris*)
15747       no_undefined_flag=' -z text'
15748       if test "$GCC" = yes; then
15749         wlarc='${wl}'
15750         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15752           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15753       else
15754         wlarc=''
15755         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15757         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15758       fi
15759       hardcode_libdir_flag_spec='-R$libdir'
15760       hardcode_shlibpath_var=no
15761       case $host_os in
15762       solaris2.[0-5] | solaris2.[0-5].*) ;;
15763       *)
15764         # The compiler driver will combine linker options so we
15765         # cannot just pass the convience library names through
15766         # without $wl, iff we do not link with $LD.
15767         # Luckily, gcc supports the same syntax we need for Sun Studio.
15768         # Supported since Solaris 2.6 (maybe 2.5.1?)
15769         case $wlarc in
15770         '')
15771           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15772         *)
15773           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' ;;
15774         esac ;;
15775       esac
15776       link_all_deplibs=yes
15777       ;;
15778
15779     sunos4*)
15780       if test "x$host_vendor" = xsequent; then
15781         # Use $CC to link under sequent, because it throws in some extra .o
15782         # files that make .init and .fini sections work.
15783         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15784       else
15785         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15786       fi
15787       hardcode_libdir_flag_spec='-L$libdir'
15788       hardcode_direct=yes
15789       hardcode_minus_L=yes
15790       hardcode_shlibpath_var=no
15791       ;;
15792
15793     sysv4)
15794       case $host_vendor in
15795         sni)
15796           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797           hardcode_direct=yes # is this really true???
15798         ;;
15799         siemens)
15800           ## LD is ld it makes a PLAMLIB
15801           ## CC just makes a GrossModule.
15802           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15803           reload_cmds='$CC -r -o $output$reload_objs'
15804           hardcode_direct=no
15805         ;;
15806         motorola)
15807           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15808           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15809         ;;
15810       esac
15811       runpath_var='LD_RUN_PATH'
15812       hardcode_shlibpath_var=no
15813       ;;
15814
15815     sysv4.3*)
15816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817       hardcode_shlibpath_var=no
15818       export_dynamic_flag_spec='-Bexport'
15819       ;;
15820
15821     sysv4*MP*)
15822       if test -d /usr/nec; then
15823         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824         hardcode_shlibpath_var=no
15825         runpath_var=LD_RUN_PATH
15826         hardcode_runpath_var=yes
15827         ld_shlibs=yes
15828       fi
15829       ;;
15830
15831     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15832       no_undefined_flag='${wl}-z,text'
15833       archive_cmds_need_lc=no
15834       hardcode_shlibpath_var=no
15835       runpath_var='LD_RUN_PATH'
15836
15837       if test "$GCC" = yes; then
15838         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15839         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15840       else
15841         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15843       fi
15844       ;;
15845
15846     sysv5* | sco3.2v5* | sco5v6*)
15847       # Note: We can NOT use -z defs as we might desire, because we do not
15848       # link with -lc, and that would cause any symbols used from libc to
15849       # always be unresolved, which means just about no library would
15850       # ever link correctly.  If we're not using GNU ld we use -z text
15851       # though, which does catch some bad symbols but isn't as heavy-handed
15852       # as -z defs.
15853       no_undefined_flag='${wl}-z,text'
15854       allow_undefined_flag='${wl}-z,nodefs'
15855       archive_cmds_need_lc=no
15856       hardcode_shlibpath_var=no
15857       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15858       hardcode_libdir_separator=':'
15859       link_all_deplibs=yes
15860       export_dynamic_flag_spec='${wl}-Bexport'
15861       runpath_var='LD_RUN_PATH'
15862
15863       if test "$GCC" = yes; then
15864         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15866       else
15867         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15868         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15869       fi
15870       ;;
15871
15872     uts4*)
15873       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874       hardcode_libdir_flag_spec='-L$libdir'
15875       hardcode_shlibpath_var=no
15876       ;;
15877
15878     *)
15879       ld_shlibs=no
15880       ;;
15881     esac
15882   fi
15883
15884 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15885 echo "${ECHO_T}$ld_shlibs" >&6; }
15886 test "$ld_shlibs" = no && can_build_shared=no
15887
15888 #
15889 # Do we need to explicitly link libc?
15890 #
15891 case "x$archive_cmds_need_lc" in
15892 x|xyes)
15893   # Assume -lc should be added
15894   archive_cmds_need_lc=yes
15895
15896   if test "$enable_shared" = yes && test "$GCC" = yes; then
15897     case $archive_cmds in
15898     *'~'*)
15899       # FIXME: we may have to deal with multi-command sequences.
15900       ;;
15901     '$CC '*)
15902       # Test whether the compiler implicitly links with -lc since on some
15903       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15904       # to ld, don't add -lc before -lgcc.
15905       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15906 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15907       $rm conftest*
15908       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15909
15910       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15911   (eval $ac_compile) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); } 2>conftest.err; then
15915         soname=conftest
15916         lib=conftest
15917         libobjs=conftest.$ac_objext
15918         deplibs=
15919         wl=$lt_prog_compiler_wl
15920         pic_flag=$lt_prog_compiler_pic
15921         compiler_flags=-v
15922         linker_flags=-v
15923         verstring=
15924         output_objdir=.
15925         libname=conftest
15926         lt_save_allow_undefined_flag=$allow_undefined_flag
15927         allow_undefined_flag=
15928         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15929   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); }
15933         then
15934           archive_cmds_need_lc=no
15935         else
15936           archive_cmds_need_lc=yes
15937         fi
15938         allow_undefined_flag=$lt_save_allow_undefined_flag
15939       else
15940         cat conftest.err 1>&5
15941       fi
15942       $rm conftest*
15943       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15944 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15945       ;;
15946     esac
15947   fi
15948   ;;
15949 esac
15950
15951 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15952 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15953 library_names_spec=
15954 libname_spec='lib$name'
15955 soname_spec=
15956 shrext_cmds=".so"
15957 postinstall_cmds=
15958 postuninstall_cmds=
15959 finish_cmds=
15960 finish_eval=
15961 shlibpath_var=
15962 shlibpath_overrides_runpath=unknown
15963 version_type=none
15964 dynamic_linker="$host_os ld.so"
15965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15966 if test "$GCC" = yes; then
15967   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15968   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15969     # if the path contains ";" then we assume it to be the separator
15970     # otherwise default to the standard path separator (i.e. ":") - it is
15971     # assumed that no part of a normal pathname contains ";" but that should
15972     # okay in the real world where ";" in dirpaths is itself problematic.
15973     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15974   else
15975     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15976   fi
15977 else
15978   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15979 fi
15980 need_lib_prefix=unknown
15981 hardcode_into_libs=no
15982
15983 # when you set need_version to no, make sure it does not cause -set_version
15984 # flags to be left without arguments
15985 need_version=unknown
15986
15987 case $host_os in
15988 aix3*)
15989   version_type=linux
15990   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15991   shlibpath_var=LIBPATH
15992
15993   # AIX 3 has no versioning support, so we append a major version to the name.
15994   soname_spec='${libname}${release}${shared_ext}$major'
15995   ;;
15996
15997 aix4* | aix5*)
15998   version_type=linux
15999   need_lib_prefix=no
16000   need_version=no
16001   hardcode_into_libs=yes
16002   if test "$host_cpu" = ia64; then
16003     # AIX 5 supports IA64
16004     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16005     shlibpath_var=LD_LIBRARY_PATH
16006   else
16007     # With GCC up to 2.95.x, collect2 would create an import file
16008     # for dependence libraries.  The import file would start with
16009     # the line `#! .'.  This would cause the generated library to
16010     # depend on `.', always an invalid library.  This was fixed in
16011     # development snapshots of GCC prior to 3.0.
16012     case $host_os in
16013       aix4 | aix4.[01] | aix4.[01].*)
16014       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16015            echo ' yes '
16016            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16017         :
16018       else
16019         can_build_shared=no
16020       fi
16021       ;;
16022     esac
16023     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16024     # soname into executable. Probably we can add versioning support to
16025     # collect2, so additional links can be useful in future.
16026     if test "$aix_use_runtimelinking" = yes; then
16027       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16028       # instead of lib<name>.a to let people know that these are not
16029       # typical AIX shared libraries.
16030       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16031     else
16032       # We preserve .a as extension for shared libraries through AIX4.2
16033       # and later when we are not doing run time linking.
16034       library_names_spec='${libname}${release}.a $libname.a'
16035       soname_spec='${libname}${release}${shared_ext}$major'
16036     fi
16037     shlibpath_var=LIBPATH
16038   fi
16039   ;;
16040
16041 amigaos*)
16042   library_names_spec='$libname.ixlibrary $libname.a'
16043   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16044   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'
16045   ;;
16046
16047 beos*)
16048   library_names_spec='${libname}${shared_ext}'
16049   dynamic_linker="$host_os ld.so"
16050   shlibpath_var=LIBRARY_PATH
16051   ;;
16052
16053 bsdi[45]*)
16054   version_type=linux
16055   need_version=no
16056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057   soname_spec='${libname}${release}${shared_ext}$major'
16058   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16059   shlibpath_var=LD_LIBRARY_PATH
16060   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16061   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16062   # the default ld.so.conf also contains /usr/contrib/lib and
16063   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16064   # libtool to hard-code these into programs
16065   ;;
16066
16067 cygwin* | mingw* | pw32*)
16068   version_type=windows
16069   shrext_cmds=".dll"
16070   need_version=no
16071   need_lib_prefix=no
16072
16073   case $GCC,$host_os in
16074   yes,cygwin* | yes,mingw* | yes,pw32*)
16075     library_names_spec='$libname.dll.a'
16076     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16077     postinstall_cmds='base_file=`basename \${file}`~
16078       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16079       dldir=$destdir/`dirname \$dlpath`~
16080       test -d \$dldir || mkdir -p \$dldir~
16081       $install_prog $dir/$dlname \$dldir/$dlname~
16082       chmod a+x \$dldir/$dlname'
16083     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084       dlpath=$dir/\$dldll~
16085        $rm \$dlpath'
16086     shlibpath_overrides_runpath=yes
16087
16088     case $host_os in
16089     cygwin*)
16090       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16093       ;;
16094     mingw*)
16095       # MinGW DLLs use traditional 'lib' prefix
16096       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16099         # It is most probably a Windows format PATH printed by
16100         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101         # path with ; separators, and with drive letters. We can handle the
16102         # drive letters (cygwin fileutils understands them), so leave them,
16103         # especially as we might pass files found there to a mingw objdump,
16104         # which wouldn't understand a cygwinified path. Ahh.
16105         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16106       else
16107         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16108       fi
16109       ;;
16110     pw32*)
16111       # pw32 DLLs use 'pw' prefix rather than 'lib'
16112       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113       ;;
16114     esac
16115     ;;
16116
16117   *)
16118     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16119     ;;
16120   esac
16121   dynamic_linker='Win32 ld.exe'
16122   # FIXME: first we should search . and the directory the executable is in
16123   shlibpath_var=PATH
16124   ;;
16125
16126 darwin* | rhapsody*)
16127   dynamic_linker="$host_os dyld"
16128   version_type=darwin
16129   need_lib_prefix=no
16130   need_version=no
16131   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16132   soname_spec='${libname}${release}${major}$shared_ext'
16133   shlibpath_overrides_runpath=yes
16134   shlibpath_var=DYLD_LIBRARY_PATH
16135   shrext_cmds='.dylib'
16136   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16137   if test "$GCC" = yes; then
16138     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"`
16139   else
16140     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16141   fi
16142   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143   ;;
16144
16145 dgux*)
16146   version_type=linux
16147   need_lib_prefix=no
16148   need_version=no
16149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16150   soname_spec='${libname}${release}${shared_ext}$major'
16151   shlibpath_var=LD_LIBRARY_PATH
16152   ;;
16153
16154 freebsd1*)
16155   dynamic_linker=no
16156   ;;
16157
16158 kfreebsd*-gnu)
16159   version_type=linux
16160   need_lib_prefix=no
16161   need_version=no
16162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16163   soname_spec='${libname}${release}${shared_ext}$major'
16164   shlibpath_var=LD_LIBRARY_PATH
16165   shlibpath_overrides_runpath=no
16166   hardcode_into_libs=yes
16167   dynamic_linker='GNU ld.so'
16168   ;;
16169
16170 freebsd* | dragonfly*)
16171   # DragonFly does not have aout.  When/if they implement a new
16172   # versioning mechanism, adjust this.
16173   if test -x /usr/bin/objformat; then
16174     objformat=`/usr/bin/objformat`
16175   else
16176     case $host_os in
16177     freebsd[123]*) objformat=aout ;;
16178     *) objformat=elf ;;
16179     esac
16180   fi
16181   version_type=freebsd-$objformat
16182   case $version_type in
16183     freebsd-elf*)
16184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16185       need_version=no
16186       need_lib_prefix=no
16187       ;;
16188     freebsd-*)
16189       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16190       need_version=yes
16191       ;;
16192   esac
16193   shlibpath_var=LD_LIBRARY_PATH
16194   case $host_os in
16195   freebsd2*)
16196     shlibpath_overrides_runpath=yes
16197     ;;
16198   freebsd3.[01]* | freebsdelf3.[01]*)
16199     shlibpath_overrides_runpath=yes
16200     hardcode_into_libs=yes
16201     ;;
16202   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16203   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16204     shlibpath_overrides_runpath=no
16205     hardcode_into_libs=yes
16206     ;;
16207   freebsd*) # from 4.6 on
16208     shlibpath_overrides_runpath=yes
16209     hardcode_into_libs=yes
16210     ;;
16211   esac
16212   ;;
16213
16214 gnu*)
16215   version_type=linux
16216   need_lib_prefix=no
16217   need_version=no
16218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16219   soname_spec='${libname}${release}${shared_ext}$major'
16220   shlibpath_var=LD_LIBRARY_PATH
16221   hardcode_into_libs=yes
16222   ;;
16223
16224 hpux9* | hpux10* | hpux11*)
16225   # Give a soname corresponding to the major version so that dld.sl refuses to
16226   # link against other versions.
16227   version_type=sunos
16228   need_lib_prefix=no
16229   need_version=no
16230   case $host_cpu in
16231   ia64*)
16232     shrext_cmds='.so'
16233     hardcode_into_libs=yes
16234     dynamic_linker="$host_os dld.so"
16235     shlibpath_var=LD_LIBRARY_PATH
16236     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238     soname_spec='${libname}${release}${shared_ext}$major'
16239     if test "X$HPUX_IA64_MODE" = X32; then
16240       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16241     else
16242       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16243     fi
16244     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16245     ;;
16246    hppa*64*)
16247      shrext_cmds='.sl'
16248      hardcode_into_libs=yes
16249      dynamic_linker="$host_os dld.sl"
16250      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16251      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16252      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253      soname_spec='${libname}${release}${shared_ext}$major'
16254      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16255      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16256      ;;
16257    *)
16258     shrext_cmds='.sl'
16259     dynamic_linker="$host_os dld.sl"
16260     shlibpath_var=SHLIB_PATH
16261     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263     soname_spec='${libname}${release}${shared_ext}$major'
16264     ;;
16265   esac
16266   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16267   postinstall_cmds='chmod 555 $lib'
16268   ;;
16269
16270 interix3*)
16271   version_type=linux
16272   need_lib_prefix=no
16273   need_version=no
16274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16275   soname_spec='${libname}${release}${shared_ext}$major'
16276   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16277   shlibpath_var=LD_LIBRARY_PATH
16278   shlibpath_overrides_runpath=no
16279   hardcode_into_libs=yes
16280   ;;
16281
16282 irix5* | irix6* | nonstopux*)
16283   case $host_os in
16284     nonstopux*) version_type=nonstopux ;;
16285     *)
16286         if test "$lt_cv_prog_gnu_ld" = yes; then
16287                 version_type=linux
16288         else
16289                 version_type=irix
16290         fi ;;
16291   esac
16292   need_lib_prefix=no
16293   need_version=no
16294   soname_spec='${libname}${release}${shared_ext}$major'
16295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16296   case $host_os in
16297   irix5* | nonstopux*)
16298     libsuff= shlibsuff=
16299     ;;
16300   *)
16301     case $LD in # libtool.m4 will add one of these switches to LD
16302     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16303       libsuff= shlibsuff= libmagic=32-bit;;
16304     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16305       libsuff=32 shlibsuff=N32 libmagic=N32;;
16306     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16307       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16308     *) libsuff= shlibsuff= libmagic=never-match;;
16309     esac
16310     ;;
16311   esac
16312   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16313   shlibpath_overrides_runpath=no
16314   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16315   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16316   hardcode_into_libs=yes
16317   ;;
16318
16319 # No shared lib support for Linux oldld, aout, or coff.
16320 linux*oldld* | linux*aout* | linux*coff*)
16321   dynamic_linker=no
16322   ;;
16323
16324 # This must be Linux ELF.
16325 linux*)
16326   version_type=linux
16327   need_lib_prefix=no
16328   need_version=no
16329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330   soname_spec='${libname}${release}${shared_ext}$major'
16331   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16332   shlibpath_var=LD_LIBRARY_PATH
16333   shlibpath_overrides_runpath=no
16334   # This implies no fast_install, which is unacceptable.
16335   # Some rework will be needed to allow for fast_install
16336   # before this can be enabled.
16337   hardcode_into_libs=yes
16338
16339   # Append ld.so.conf contents to the search path
16340   if test -f /etc/ld.so.conf; then
16341     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' ' '`
16342     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16343   fi
16344
16345   # We used to test for /lib/ld.so.1 and disable shared libraries on
16346   # powerpc, because MkLinux only supported shared libraries with the
16347   # GNU dynamic linker.  Since this was broken with cross compilers,
16348   # most powerpc-linux boxes support dynamic linking these days and
16349   # people can always --disable-shared, the test was removed, and we
16350   # assume the GNU/Linux dynamic linker is in use.
16351   dynamic_linker='GNU/Linux ld.so'
16352   ;;
16353
16354 knetbsd*-gnu)
16355   version_type=linux
16356   need_lib_prefix=no
16357   need_version=no
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16359   soname_spec='${libname}${release}${shared_ext}$major'
16360   shlibpath_var=LD_LIBRARY_PATH
16361   shlibpath_overrides_runpath=no
16362   hardcode_into_libs=yes
16363   dynamic_linker='GNU ld.so'
16364   ;;
16365
16366 netbsd*)
16367   version_type=sunos
16368   need_lib_prefix=no
16369   need_version=no
16370   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373     dynamic_linker='NetBSD (a.out) ld.so'
16374   else
16375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16376     soname_spec='${libname}${release}${shared_ext}$major'
16377     dynamic_linker='NetBSD ld.elf_so'
16378   fi
16379   shlibpath_var=LD_LIBRARY_PATH
16380   shlibpath_overrides_runpath=yes
16381   hardcode_into_libs=yes
16382   ;;
16383
16384 newsos6)
16385   version_type=linux
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387   shlibpath_var=LD_LIBRARY_PATH
16388   shlibpath_overrides_runpath=yes
16389   ;;
16390
16391 nto-qnx*)
16392   version_type=linux
16393   need_lib_prefix=no
16394   need_version=no
16395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396   soname_spec='${libname}${release}${shared_ext}$major'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   shlibpath_overrides_runpath=yes
16399   ;;
16400
16401 openbsd*)
16402   version_type=sunos
16403   sys_lib_dlsearch_path_spec="/usr/lib"
16404   need_lib_prefix=no
16405   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16406   case $host_os in
16407     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16408     *)                         need_version=no  ;;
16409   esac
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16414     case $host_os in
16415       openbsd2.[89] | openbsd2.[89].*)
16416         shlibpath_overrides_runpath=no
16417         ;;
16418       *)
16419         shlibpath_overrides_runpath=yes
16420         ;;
16421       esac
16422   else
16423     shlibpath_overrides_runpath=yes
16424   fi
16425   ;;
16426
16427 os2*)
16428   libname_spec='$name'
16429   shrext_cmds=".dll"
16430   need_lib_prefix=no
16431   library_names_spec='$libname${shared_ext} $libname.a'
16432   dynamic_linker='OS/2 ld.exe'
16433   shlibpath_var=LIBPATH
16434   ;;
16435
16436 osf3* | osf4* | osf5*)
16437   version_type=osf
16438   need_lib_prefix=no
16439   need_version=no
16440   soname_spec='${libname}${release}${shared_ext}$major'
16441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442   shlibpath_var=LD_LIBRARY_PATH
16443   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16444   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16445   ;;
16446
16447 solaris*)
16448   version_type=linux
16449   need_lib_prefix=no
16450   need_version=no
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452   soname_spec='${libname}${release}${shared_ext}$major'
16453   shlibpath_var=LD_LIBRARY_PATH
16454   shlibpath_overrides_runpath=yes
16455   hardcode_into_libs=yes
16456   # ldd complains unless libraries are executable
16457   postinstall_cmds='chmod +x $lib'
16458   ;;
16459
16460 sunos4*)
16461   version_type=sunos
16462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16463   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16464   shlibpath_var=LD_LIBRARY_PATH
16465   shlibpath_overrides_runpath=yes
16466   if test "$with_gnu_ld" = yes; then
16467     need_lib_prefix=no
16468   fi
16469   need_version=yes
16470   ;;
16471
16472 sysv4 | sysv4.3*)
16473   version_type=linux
16474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475   soname_spec='${libname}${release}${shared_ext}$major'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   case $host_vendor in
16478     sni)
16479       shlibpath_overrides_runpath=no
16480       need_lib_prefix=no
16481       export_dynamic_flag_spec='${wl}-Blargedynsym'
16482       runpath_var=LD_RUN_PATH
16483       ;;
16484     siemens)
16485       need_lib_prefix=no
16486       ;;
16487     motorola)
16488       need_lib_prefix=no
16489       need_version=no
16490       shlibpath_overrides_runpath=no
16491       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16492       ;;
16493   esac
16494   ;;
16495
16496 sysv4*MP*)
16497   if test -d /usr/nec ;then
16498     version_type=linux
16499     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16500     soname_spec='$libname${shared_ext}.$major'
16501     shlibpath_var=LD_LIBRARY_PATH
16502   fi
16503   ;;
16504
16505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16506   version_type=freebsd-elf
16507   need_lib_prefix=no
16508   need_version=no
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16510   soname_spec='${libname}${release}${shared_ext}$major'
16511   shlibpath_var=LD_LIBRARY_PATH
16512   hardcode_into_libs=yes
16513   if test "$with_gnu_ld" = yes; then
16514     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16515     shlibpath_overrides_runpath=no
16516   else
16517     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16518     shlibpath_overrides_runpath=yes
16519     case $host_os in
16520       sco3.2v5*)
16521         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16522         ;;
16523     esac
16524   fi
16525   sys_lib_dlsearch_path_spec='/usr/lib'
16526   ;;
16527
16528 uts4*)
16529   version_type=linux
16530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531   soname_spec='${libname}${release}${shared_ext}$major'
16532   shlibpath_var=LD_LIBRARY_PATH
16533   ;;
16534
16535 *)
16536   dynamic_linker=no
16537   ;;
16538 esac
16539 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16540 echo "${ECHO_T}$dynamic_linker" >&6; }
16541 test "$dynamic_linker" = no && can_build_shared=no
16542
16543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16544 if test "$GCC" = yes; then
16545   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16546 fi
16547
16548 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16549 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16550 hardcode_action=
16551 if test -n "$hardcode_libdir_flag_spec" || \
16552    test -n "$runpath_var" || \
16553    test "X$hardcode_automatic" = "Xyes" ; then
16554
16555   # We can hardcode non-existant directories.
16556   if test "$hardcode_direct" != no &&
16557      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16558      # have to relink, otherwise we might link with an installed library
16559      # when we should be linking with a yet-to-be-installed one
16560      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16561      test "$hardcode_minus_L" != no; then
16562     # Linking always hardcodes the temporary library directory.
16563     hardcode_action=relink
16564   else
16565     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16566     hardcode_action=immediate
16567   fi
16568 else
16569   # We cannot hardcode anything, or else we can only hardcode existing
16570   # directories.
16571   hardcode_action=unsupported
16572 fi
16573 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16574 echo "${ECHO_T}$hardcode_action" >&6; }
16575
16576 if test "$hardcode_action" = relink; then
16577   # Fast installation is not supported
16578   enable_fast_install=no
16579 elif test "$shlibpath_overrides_runpath" = yes ||
16580      test "$enable_shared" = no; then
16581   # Fast installation is not necessary
16582   enable_fast_install=needless
16583 fi
16584
16585 striplib=
16586 old_striplib=
16587 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16588 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16589 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16590   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16591   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16592   { echo "$as_me:$LINENO: result: yes" >&5
16593 echo "${ECHO_T}yes" >&6; }
16594 else
16595 # FIXME - insert some real tests, host_os isn't really good enough
16596   case $host_os in
16597    darwin*)
16598        if test -n "$STRIP" ; then
16599          striplib="$STRIP -x"
16600          { echo "$as_me:$LINENO: result: yes" >&5
16601 echo "${ECHO_T}yes" >&6; }
16602        else
16603   { echo "$as_me:$LINENO: result: no" >&5
16604 echo "${ECHO_T}no" >&6; }
16605 fi
16606        ;;
16607    *)
16608   { echo "$as_me:$LINENO: result: no" >&5
16609 echo "${ECHO_T}no" >&6; }
16610     ;;
16611   esac
16612 fi
16613
16614 if test "x$enable_dlopen" != xyes; then
16615   enable_dlopen=unknown
16616   enable_dlopen_self=unknown
16617   enable_dlopen_self_static=unknown
16618 else
16619   lt_cv_dlopen=no
16620   lt_cv_dlopen_libs=
16621
16622   case $host_os in
16623   beos*)
16624     lt_cv_dlopen="load_add_on"
16625     lt_cv_dlopen_libs=
16626     lt_cv_dlopen_self=yes
16627     ;;
16628
16629   mingw* | pw32*)
16630     lt_cv_dlopen="LoadLibrary"
16631     lt_cv_dlopen_libs=
16632    ;;
16633
16634   cygwin*)
16635     lt_cv_dlopen="dlopen"
16636     lt_cv_dlopen_libs=
16637    ;;
16638
16639   darwin*)
16640   # if libdl is installed we need to link against it
16641     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16642 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   ac_check_lib_save_LIBS=$LIBS
16647 LIBS="-ldl  $LIBS"
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 /* Override any GCC internal prototype to avoid an error.
16656    Use char because int might match the return type of a GCC
16657    builtin and then its argument prototype would still apply.  */
16658 #ifdef __cplusplus
16659 extern "C"
16660 #endif
16661 char dlopen ();
16662 int
16663 main ()
16664 {
16665 return dlopen ();
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674   *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677   (eval "$ac_link") 2>conftest.er1
16678   ac_status=$?
16679   grep -v '^ *+' conftest.er1 >conftest.err
16680   rm -f conftest.er1
16681   cat conftest.err >&5
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } &&
16684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685   { (case "(($ac_try" in
16686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687   *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690   (eval "$ac_try") 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; } &&
16694          { ac_try='test -s conftest$ac_exeext'
16695   { (case "(($ac_try" in
16696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697   *) ac_try_echo=$ac_try;;
16698 esac
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700   (eval "$ac_try") 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; }; then
16704   ac_cv_lib_dl_dlopen=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709         ac_cv_lib_dl_dlopen=no
16710 fi
16711
16712 rm -f core conftest.err conftest.$ac_objext \
16713       conftest$ac_exeext conftest.$ac_ext
16714 LIBS=$ac_check_lib_save_LIBS
16715 fi
16716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16718 if test $ac_cv_lib_dl_dlopen = yes; then
16719   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16720 else
16721
16722     lt_cv_dlopen="dyld"
16723     lt_cv_dlopen_libs=
16724     lt_cv_dlopen_self=yes
16725
16726 fi
16727
16728    ;;
16729
16730   *)
16731     { echo "$as_me:$LINENO: checking for shl_load" >&5
16732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16733 if test "${ac_cv_func_shl_load+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16744 #define shl_load innocuous_shl_load
16745
16746 /* System header to define __stub macros and hopefully few prototypes,
16747     which can conflict with char shl_load (); below.
16748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749     <limits.h> exists even on freestanding compilers.  */
16750
16751 #ifdef __STDC__
16752 # include <limits.h>
16753 #else
16754 # include <assert.h>
16755 #endif
16756
16757 #undef shl_load
16758
16759 /* Override any GCC internal prototype to avoid an error.
16760    Use char because int might match the return type of a GCC
16761    builtin and then its argument prototype would still apply.  */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 char shl_load ();
16766 /* The GNU C library defines this for functions which it implements
16767     to always fail with ENOSYS.  Some functions are actually named
16768     something starting with __ and the normal name is an alias.  */
16769 #if defined __stub_shl_load || defined __stub___shl_load
16770 choke me
16771 #endif
16772
16773 int
16774 main ()
16775 {
16776 return shl_load ();
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (ac_try="$ac_link"
16783 case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_link") 2>conftest.er1
16789   ac_status=$?
16790   grep -v '^ *+' conftest.er1 >conftest.err
16791   rm -f conftest.er1
16792   cat conftest.err >&5
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } &&
16795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796   { (case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_try") 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; } &&
16805          { ac_try='test -s conftest$ac_exeext'
16806   { (case "(($ac_try" in
16807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808   *) ac_try_echo=$ac_try;;
16809 esac
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811   (eval "$ac_try") 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   ac_cv_func_shl_load=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820         ac_cv_func_shl_load=no
16821 fi
16822
16823 rm -f core conftest.err conftest.$ac_objext \
16824       conftest$ac_exeext conftest.$ac_ext
16825 fi
16826 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16827 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16828 if test $ac_cv_func_shl_load = yes; then
16829   lt_cv_dlopen="shl_load"
16830 else
16831   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16832 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16833 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   ac_check_lib_save_LIBS=$LIBS
16837 LIBS="-ldld  $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h.  */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h.  */
16844
16845 /* Override any GCC internal prototype to avoid an error.
16846    Use char because int might match the return type of a GCC
16847    builtin and then its argument prototype would still apply.  */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 char shl_load ();
16852 int
16853 main ()
16854 {
16855 return shl_load ();
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (ac_try="$ac_link"
16862 case "(($ac_try" in
16863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864   *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867   (eval "$ac_link") 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875   { (case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_try") 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; } &&
16884          { ac_try='test -s conftest$ac_exeext'
16885   { (case "(($ac_try" in
16886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887   *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890   (eval "$ac_try") 2>&5
16891   ac_status=$?
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); }; }; then
16894   ac_cv_lib_dld_shl_load=yes
16895 else
16896   echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899         ac_cv_lib_dld_shl_load=no
16900 fi
16901
16902 rm -f core conftest.err conftest.$ac_objext \
16903       conftest$ac_exeext conftest.$ac_ext
16904 LIBS=$ac_check_lib_save_LIBS
16905 fi
16906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16908 if test $ac_cv_lib_dld_shl_load = yes; then
16909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16910 else
16911   { echo "$as_me:$LINENO: checking for dlopen" >&5
16912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16913 if test "${ac_cv_func_dlopen+set}" = set; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16924 #define dlopen innocuous_dlopen
16925
16926 /* System header to define __stub macros and hopefully few prototypes,
16927     which can conflict with char dlopen (); below.
16928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16929     <limits.h> exists even on freestanding compilers.  */
16930
16931 #ifdef __STDC__
16932 # include <limits.h>
16933 #else
16934 # include <assert.h>
16935 #endif
16936
16937 #undef dlopen
16938
16939 /* Override any GCC internal prototype to avoid an error.
16940    Use char because int might match the return type of a GCC
16941    builtin and then its argument prototype would still apply.  */
16942 #ifdef __cplusplus
16943 extern "C"
16944 #endif
16945 char dlopen ();
16946 /* The GNU C library defines this for functions which it implements
16947     to always fail with ENOSYS.  Some functions are actually named
16948     something starting with __ and the normal name is an alias.  */
16949 #if defined __stub_dlopen || defined __stub___dlopen
16950 choke me
16951 #endif
16952
16953 int
16954 main ()
16955 {
16956 return dlopen ();
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_link") 2>conftest.er1
16969   ac_status=$?
16970   grep -v '^ *+' conftest.er1 >conftest.err
16971   rm -f conftest.er1
16972   cat conftest.err >&5
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } &&
16975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976   { (case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_try") 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; } &&
16985          { ac_try='test -s conftest$ac_exeext'
16986   { (case "(($ac_try" in
16987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988   *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991   (eval "$ac_try") 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; }; then
16995   ac_cv_func_dlopen=yes
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000         ac_cv_func_dlopen=no
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext \
17004       conftest$ac_exeext conftest.$ac_ext
17005 fi
17006 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17007 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17008 if test $ac_cv_func_dlopen = yes; then
17009   lt_cv_dlopen="dlopen"
17010 else
17011   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17012 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17013 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-ldl  $LIBS"
17018 cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024
17025 /* Override any GCC internal prototype to avoid an error.
17026    Use char because int might match the return type of a GCC
17027    builtin and then its argument prototype would still apply.  */
17028 #ifdef __cplusplus
17029 extern "C"
17030 #endif
17031 char dlopen ();
17032 int
17033 main ()
17034 {
17035 return dlopen ();
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044   *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047   (eval "$ac_link") 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } &&
17054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055   { (case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_try") 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; } &&
17064          { ac_try='test -s conftest$ac_exeext'
17065   { (case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_try") 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); }; }; then
17074   ac_cv_lib_dl_dlopen=yes
17075 else
17076   echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079         ac_cv_lib_dl_dlopen=no
17080 fi
17081
17082 rm -f core conftest.err conftest.$ac_objext \
17083       conftest$ac_exeext conftest.$ac_ext
17084 LIBS=$ac_check_lib_save_LIBS
17085 fi
17086 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17088 if test $ac_cv_lib_dl_dlopen = yes; then
17089   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17090 else
17091   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17092 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17093 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   ac_check_lib_save_LIBS=$LIBS
17097 LIBS="-lsvld  $LIBS"
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h.  */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h.  */
17104
17105 /* Override any GCC internal prototype to avoid an error.
17106    Use char because int might match the return type of a GCC
17107    builtin and then its argument prototype would still apply.  */
17108 #ifdef __cplusplus
17109 extern "C"
17110 #endif
17111 char dlopen ();
17112 int
17113 main ()
17114 {
17115 return dlopen ();
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124   *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127   (eval "$ac_link") 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135   { (case "(($ac_try" in
17136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137   *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140   (eval "$ac_try") 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest$ac_exeext'
17145   { (case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_try") 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; }; then
17154   ac_cv_lib_svld_dlopen=yes
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159         ac_cv_lib_svld_dlopen=no
17160 fi
17161
17162 rm -f core conftest.err conftest.$ac_objext \
17163       conftest$ac_exeext conftest.$ac_ext
17164 LIBS=$ac_check_lib_save_LIBS
17165 fi
17166 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17167 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17168 if test $ac_cv_lib_svld_dlopen = yes; then
17169   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17170 else
17171   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17172 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17173 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17174   echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176   ac_check_lib_save_LIBS=$LIBS
17177 LIBS="-ldld  $LIBS"
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h.  */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h.  */
17184
17185 /* Override any GCC internal prototype to avoid an error.
17186    Use char because int might match the return type of a GCC
17187    builtin and then its argument prototype would still apply.  */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 char dld_link ();
17192 int
17193 main ()
17194 {
17195 return dld_link ();
17196   ;
17197   return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_link") 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215   { (case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220   (eval "$ac_try") 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_try") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }; then
17234   ac_cv_lib_dld_dld_link=yes
17235 else
17236   echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239         ac_cv_lib_dld_dld_link=no
17240 fi
17241
17242 rm -f core conftest.err conftest.$ac_objext \
17243       conftest$ac_exeext conftest.$ac_ext
17244 LIBS=$ac_check_lib_save_LIBS
17245 fi
17246 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17247 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17248 if test $ac_cv_lib_dld_dld_link = yes; then
17249   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17250 fi
17251
17252
17253 fi
17254
17255
17256 fi
17257
17258
17259 fi
17260
17261
17262 fi
17263
17264
17265 fi
17266
17267     ;;
17268   esac
17269
17270   if test "x$lt_cv_dlopen" != xno; then
17271     enable_dlopen=yes
17272   else
17273     enable_dlopen=no
17274   fi
17275
17276   case $lt_cv_dlopen in
17277   dlopen)
17278     save_CPPFLAGS="$CPPFLAGS"
17279     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17280
17281     save_LDFLAGS="$LDFLAGS"
17282     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17283
17284     save_LIBS="$LIBS"
17285     LIBS="$lt_cv_dlopen_libs $LIBS"
17286
17287     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17288 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17289 if test "${lt_cv_dlopen_self+set}" = set; then
17290   echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292           if test "$cross_compiling" = yes; then :
17293   lt_cv_dlopen_self=cross
17294 else
17295   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17296   lt_status=$lt_dlunknown
17297   cat > conftest.$ac_ext <<EOF
17298 #line 17298 "configure"
17299 #include "confdefs.h"
17300
17301 #if HAVE_DLFCN_H
17302 #include <dlfcn.h>
17303 #endif
17304
17305 #include <stdio.h>
17306
17307 #ifdef RTLD_GLOBAL
17308 #  define LT_DLGLOBAL           RTLD_GLOBAL
17309 #else
17310 #  ifdef DL_GLOBAL
17311 #    define LT_DLGLOBAL         DL_GLOBAL
17312 #  else
17313 #    define LT_DLGLOBAL         0
17314 #  endif
17315 #endif
17316
17317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17318    find out it does not work in some platform. */
17319 #ifndef LT_DLLAZY_OR_NOW
17320 #  ifdef RTLD_LAZY
17321 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17322 #  else
17323 #    ifdef DL_LAZY
17324 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17325 #    else
17326 #      ifdef RTLD_NOW
17327 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17328 #      else
17329 #        ifdef DL_NOW
17330 #          define LT_DLLAZY_OR_NOW      DL_NOW
17331 #        else
17332 #          define LT_DLLAZY_OR_NOW      0
17333 #        endif
17334 #      endif
17335 #    endif
17336 #  endif
17337 #endif
17338
17339 #ifdef __cplusplus
17340 extern "C" void exit (int);
17341 #endif
17342
17343 void fnord() { int i=42;}
17344 int main ()
17345 {
17346   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17347   int status = $lt_dlunknown;
17348
17349   if (self)
17350     {
17351       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17352       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17353       /* dlclose (self); */
17354     }
17355   else
17356     puts (dlerror ());
17357
17358     exit (status);
17359 }
17360 EOF
17361   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17362   (eval $ac_link) 2>&5
17363   ac_status=$?
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17366     (./conftest; exit; ) >&5 2>/dev/null
17367     lt_status=$?
17368     case x$lt_status in
17369       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17370       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17371       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17372     esac
17373   else :
17374     # compilation failed
17375     lt_cv_dlopen_self=no
17376   fi
17377 fi
17378 rm -fr conftest*
17379
17380
17381 fi
17382 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17384
17385     if test "x$lt_cv_dlopen_self" = xyes; then
17386       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17387       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17389 if test "${lt_cv_dlopen_self_static+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392           if test "$cross_compiling" = yes; then :
17393   lt_cv_dlopen_self_static=cross
17394 else
17395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17396   lt_status=$lt_dlunknown
17397   cat > conftest.$ac_ext <<EOF
17398 #line 17398 "configure"
17399 #include "confdefs.h"
17400
17401 #if HAVE_DLFCN_H
17402 #include <dlfcn.h>
17403 #endif
17404
17405 #include <stdio.h>
17406
17407 #ifdef RTLD_GLOBAL
17408 #  define LT_DLGLOBAL           RTLD_GLOBAL
17409 #else
17410 #  ifdef DL_GLOBAL
17411 #    define LT_DLGLOBAL         DL_GLOBAL
17412 #  else
17413 #    define LT_DLGLOBAL         0
17414 #  endif
17415 #endif
17416
17417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17418    find out it does not work in some platform. */
17419 #ifndef LT_DLLAZY_OR_NOW
17420 #  ifdef RTLD_LAZY
17421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17422 #  else
17423 #    ifdef DL_LAZY
17424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17425 #    else
17426 #      ifdef RTLD_NOW
17427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17428 #      else
17429 #        ifdef DL_NOW
17430 #          define LT_DLLAZY_OR_NOW      DL_NOW
17431 #        else
17432 #          define LT_DLLAZY_OR_NOW      0
17433 #        endif
17434 #      endif
17435 #    endif
17436 #  endif
17437 #endif
17438
17439 #ifdef __cplusplus
17440 extern "C" void exit (int);
17441 #endif
17442
17443 void fnord() { int i=42;}
17444 int main ()
17445 {
17446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17447   int status = $lt_dlunknown;
17448
17449   if (self)
17450     {
17451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17452       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17453       /* dlclose (self); */
17454     }
17455   else
17456     puts (dlerror ());
17457
17458     exit (status);
17459 }
17460 EOF
17461   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17466     (./conftest; exit; ) >&5 2>/dev/null
17467     lt_status=$?
17468     case x$lt_status in
17469       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17470       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17471       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17472     esac
17473   else :
17474     # compilation failed
17475     lt_cv_dlopen_self_static=no
17476   fi
17477 fi
17478 rm -fr conftest*
17479
17480
17481 fi
17482 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17483 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17484     fi
17485
17486     CPPFLAGS="$save_CPPFLAGS"
17487     LDFLAGS="$save_LDFLAGS"
17488     LIBS="$save_LIBS"
17489     ;;
17490   esac
17491
17492   case $lt_cv_dlopen_self in
17493   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17494   *) enable_dlopen_self=unknown ;;
17495   esac
17496
17497   case $lt_cv_dlopen_self_static in
17498   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17499   *) enable_dlopen_self_static=unknown ;;
17500   esac
17501 fi
17502
17503
17504 # Report which library types will actually be built
17505 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17506 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17507 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17508 echo "${ECHO_T}$can_build_shared" >&6; }
17509
17510 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17511 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17512 test "$can_build_shared" = "no" && enable_shared=no
17513
17514 # On AIX, shared libraries and static libraries use the same namespace, and
17515 # are all built from PIC.
17516 case $host_os in
17517 aix3*)
17518   test "$enable_shared" = yes && enable_static=no
17519   if test -n "$RANLIB"; then
17520     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17521     postinstall_cmds='$RANLIB $lib'
17522   fi
17523   ;;
17524
17525 aix4* | aix5*)
17526   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17527     test "$enable_shared" = yes && enable_static=no
17528   fi
17529     ;;
17530 esac
17531 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17532 echo "${ECHO_T}$enable_shared" >&6; }
17533
17534 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17535 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17536 # Make sure either enable_shared or enable_static is yes.
17537 test "$enable_shared" = yes || enable_static=yes
17538 { echo "$as_me:$LINENO: result: $enable_static" >&5
17539 echo "${ECHO_T}$enable_static" >&6; }
17540
17541 # The else clause should only fire when bootstrapping the
17542 # libtool distribution, otherwise you forgot to ship ltmain.sh
17543 # with your package, and you will get complaints that there are
17544 # no rules to generate ltmain.sh.
17545 if test -f "$ltmain"; then
17546   # See if we are running on zsh, and set the options which allow our commands through
17547   # without removal of \ escapes.
17548   if test -n "${ZSH_VERSION+set}" ; then
17549     setopt NO_GLOB_SUBST
17550   fi
17551   # Now quote all the things that may contain metacharacters while being
17552   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17553   # variables and quote the copies for generation of the libtool script.
17554   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17555     SED SHELL STRIP \
17556     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17557     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17558     deplibs_check_method reload_flag reload_cmds need_locks \
17559     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17560     lt_cv_sys_global_symbol_to_c_name_address \
17561     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17562     old_postinstall_cmds old_postuninstall_cmds \
17563     compiler \
17564     CC \
17565     LD \
17566     lt_prog_compiler_wl \
17567     lt_prog_compiler_pic \
17568     lt_prog_compiler_static \
17569     lt_prog_compiler_no_builtin_flag \
17570     export_dynamic_flag_spec \
17571     thread_safe_flag_spec \
17572     whole_archive_flag_spec \
17573     enable_shared_with_static_runtimes \
17574     old_archive_cmds \
17575     old_archive_from_new_cmds \
17576     predep_objects \
17577     postdep_objects \
17578     predeps \
17579     postdeps \
17580     compiler_lib_search_path \
17581     archive_cmds \
17582     archive_expsym_cmds \
17583     postinstall_cmds \
17584     postuninstall_cmds \
17585     old_archive_from_expsyms_cmds \
17586     allow_undefined_flag \
17587     no_undefined_flag \
17588     export_symbols_cmds \
17589     hardcode_libdir_flag_spec \
17590     hardcode_libdir_flag_spec_ld \
17591     hardcode_libdir_separator \
17592     hardcode_automatic \
17593     module_cmds \
17594     module_expsym_cmds \
17595     lt_cv_prog_compiler_c_o \
17596     exclude_expsyms \
17597     include_expsyms; do
17598
17599     case $var in
17600     old_archive_cmds | \
17601     old_archive_from_new_cmds | \
17602     archive_cmds | \
17603     archive_expsym_cmds | \
17604     module_cmds | \
17605     module_expsym_cmds | \
17606     old_archive_from_expsyms_cmds | \
17607     export_symbols_cmds | \
17608     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17609     postinstall_cmds | postuninstall_cmds | \
17610     old_postinstall_cmds | old_postuninstall_cmds | \
17611     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17612       # Double-quote double-evaled strings.
17613       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17614       ;;
17615     *)
17616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17617       ;;
17618     esac
17619   done
17620
17621   case $lt_echo in
17622   *'\$0 --fallback-echo"')
17623     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17624     ;;
17625   esac
17626
17627 cfgfile="${ofile}T"
17628   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17629   $rm -f "$cfgfile"
17630   { echo "$as_me:$LINENO: creating $ofile" >&5
17631 echo "$as_me: creating $ofile" >&6;}
17632
17633   cat <<__EOF__ >> "$cfgfile"
17634 #! $SHELL
17635
17636 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17637 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17638 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17639 #
17640 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17641 # Free Software Foundation, Inc.
17642 #
17643 # This file is part of GNU Libtool:
17644 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17645 #
17646 # This program is free software; you can redistribute it and/or modify
17647 # it under the terms of the GNU General Public License as published by
17648 # the Free Software Foundation; either version 2 of the License, or
17649 # (at your option) any later version.
17650 #
17651 # This program is distributed in the hope that it will be useful, but
17652 # WITHOUT ANY WARRANTY; without even the implied warranty of
17653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17654 # General Public License for more details.
17655 #
17656 # You should have received a copy of the GNU General Public License
17657 # along with this program; if not, write to the Free Software
17658 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17659 #
17660 # As a special exception to the GNU General Public License, if you
17661 # distribute this file as part of a program that contains a
17662 # configuration script generated by Autoconf, you may include it under
17663 # the same distribution terms that you use for the rest of that program.
17664
17665 # A sed program that does not truncate output.
17666 SED=$lt_SED
17667
17668 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17669 Xsed="$SED -e 1s/^X//"
17670
17671 # The HP-UX ksh and POSIX shell print the target directory to stdout
17672 # if CDPATH is set.
17673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17674
17675 # The names of the tagged configurations supported by this script.
17676 available_tags=
17677
17678 # ### BEGIN LIBTOOL CONFIG
17679
17680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17681
17682 # Shell to use when invoking shell scripts.
17683 SHELL=$lt_SHELL
17684
17685 # Whether or not to build shared libraries.
17686 build_libtool_libs=$enable_shared
17687
17688 # Whether or not to build static libraries.
17689 build_old_libs=$enable_static
17690
17691 # Whether or not to add -lc for building shared libraries.
17692 build_libtool_need_lc=$archive_cmds_need_lc
17693
17694 # Whether or not to disallow shared libs when runtime libs are static
17695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17696
17697 # Whether or not to optimize for fast installation.
17698 fast_install=$enable_fast_install
17699
17700 # The host system.
17701 host_alias=$host_alias
17702 host=$host
17703 host_os=$host_os
17704
17705 # The build system.
17706 build_alias=$build_alias
17707 build=$build
17708 build_os=$build_os
17709
17710 # An echo program that does not interpret backslashes.
17711 echo=$lt_echo
17712
17713 # The archiver.
17714 AR=$lt_AR
17715 AR_FLAGS=$lt_AR_FLAGS
17716
17717 # A C compiler.
17718 LTCC=$lt_LTCC
17719
17720 # LTCC compiler flags.
17721 LTCFLAGS=$lt_LTCFLAGS
17722
17723 # A language-specific compiler.
17724 CC=$lt_compiler
17725
17726 # Is the compiler the GNU C compiler?
17727 with_gcc=$GCC
17728
17729 # An ERE matcher.
17730 EGREP=$lt_EGREP
17731
17732 # The linker used to build libraries.
17733 LD=$lt_LD
17734
17735 # Whether we need hard or soft links.
17736 LN_S=$lt_LN_S
17737
17738 # A BSD-compatible nm program.
17739 NM=$lt_NM
17740
17741 # A symbol stripping program
17742 STRIP=$lt_STRIP
17743
17744 # Used to examine libraries when file_magic_cmd begins "file"
17745 MAGIC_CMD=$MAGIC_CMD
17746
17747 # Used on cygwin: DLL creation program.
17748 DLLTOOL="$DLLTOOL"
17749
17750 # Used on cygwin: object dumper.
17751 OBJDUMP="$OBJDUMP"
17752
17753 # Used on cygwin: assembler.
17754 AS="$AS"
17755
17756 # The name of the directory that contains temporary libtool files.
17757 objdir=$objdir
17758
17759 # How to create reloadable object files.
17760 reload_flag=$lt_reload_flag
17761 reload_cmds=$lt_reload_cmds
17762
17763 # How to pass a linker flag through the compiler.
17764 wl=$lt_lt_prog_compiler_wl
17765
17766 # Object file suffix (normally "o").
17767 objext="$ac_objext"
17768
17769 # Old archive suffix (normally "a").
17770 libext="$libext"
17771
17772 # Shared library suffix (normally ".so").
17773 shrext_cmds='$shrext_cmds'
17774
17775 # Executable file suffix (normally "").
17776 exeext="$exeext"
17777
17778 # Additional compiler flags for building library objects.
17779 pic_flag=$lt_lt_prog_compiler_pic
17780 pic_mode=$pic_mode
17781
17782 # What is the maximum length of a command?
17783 max_cmd_len=$lt_cv_sys_max_cmd_len
17784
17785 # Does compiler simultaneously support -c and -o options?
17786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17787
17788 # Must we lock files when doing compilation?
17789 need_locks=$lt_need_locks
17790
17791 # Do we need the lib prefix for modules?
17792 need_lib_prefix=$need_lib_prefix
17793
17794 # Do we need a version for libraries?
17795 need_version=$need_version
17796
17797 # Whether dlopen is supported.
17798 dlopen_support=$enable_dlopen
17799
17800 # Whether dlopen of programs is supported.
17801 dlopen_self=$enable_dlopen_self
17802
17803 # Whether dlopen of statically linked programs is supported.
17804 dlopen_self_static=$enable_dlopen_self_static
17805
17806 # Compiler flag to prevent dynamic linking.
17807 link_static_flag=$lt_lt_prog_compiler_static
17808
17809 # Compiler flag to turn off builtin functions.
17810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17811
17812 # Compiler flag to allow reflexive dlopens.
17813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17814
17815 # Compiler flag to generate shared objects directly from archives.
17816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17817
17818 # Compiler flag to generate thread-safe objects.
17819 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17820
17821 # Library versioning type.
17822 version_type=$version_type
17823
17824 # Format of library name prefix.
17825 libname_spec=$lt_libname_spec
17826
17827 # List of archive names.  First name is the real one, the rest are links.
17828 # The last name is the one that the linker finds with -lNAME.
17829 library_names_spec=$lt_library_names_spec
17830
17831 # The coded name of the library, if different from the real name.
17832 soname_spec=$lt_soname_spec
17833
17834 # Commands used to build and install an old-style archive.
17835 RANLIB=$lt_RANLIB
17836 old_archive_cmds=$lt_old_archive_cmds
17837 old_postinstall_cmds=$lt_old_postinstall_cmds
17838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17839
17840 # Create an old-style archive from a shared archive.
17841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17842
17843 # Create a temporary old-style archive to link instead of a shared archive.
17844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17845
17846 # Commands used to build and install a shared archive.
17847 archive_cmds=$lt_archive_cmds
17848 archive_expsym_cmds=$lt_archive_expsym_cmds
17849 postinstall_cmds=$lt_postinstall_cmds
17850 postuninstall_cmds=$lt_postuninstall_cmds
17851
17852 # Commands used to build a loadable module (assumed same as above if empty)
17853 module_cmds=$lt_module_cmds
17854 module_expsym_cmds=$lt_module_expsym_cmds
17855
17856 # Commands to strip libraries.
17857 old_striplib=$lt_old_striplib
17858 striplib=$lt_striplib
17859
17860 # Dependencies to place before the objects being linked to create a
17861 # shared library.
17862 predep_objects=$lt_predep_objects
17863
17864 # Dependencies to place after the objects being linked to create a
17865 # shared library.
17866 postdep_objects=$lt_postdep_objects
17867
17868 # Dependencies to place before the objects being linked to create a
17869 # shared library.
17870 predeps=$lt_predeps
17871
17872 # Dependencies to place after the objects being linked to create a
17873 # shared library.
17874 postdeps=$lt_postdeps
17875
17876 # The library search path used internally by the compiler when linking
17877 # a shared library.
17878 compiler_lib_search_path=$lt_compiler_lib_search_path
17879
17880 # Method to check whether dependent libraries are shared objects.
17881 deplibs_check_method=$lt_deplibs_check_method
17882
17883 # Command to use when deplibs_check_method == file_magic.
17884 file_magic_cmd=$lt_file_magic_cmd
17885
17886 # Flag that allows shared libraries with undefined symbols to be built.
17887 allow_undefined_flag=$lt_allow_undefined_flag
17888
17889 # Flag that forces no undefined symbols.
17890 no_undefined_flag=$lt_no_undefined_flag
17891
17892 # Commands used to finish a libtool library installation in a directory.
17893 finish_cmds=$lt_finish_cmds
17894
17895 # Same as above, but a single script fragment to be evaled but not shown.
17896 finish_eval=$lt_finish_eval
17897
17898 # Take the output of nm and produce a listing of raw symbols and C names.
17899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17900
17901 # Transform the output of nm in a proper C declaration
17902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17903
17904 # Transform the output of nm in a C name address pair
17905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17906
17907 # This is the shared library runtime path variable.
17908 runpath_var=$runpath_var
17909
17910 # This is the shared library path variable.
17911 shlibpath_var=$shlibpath_var
17912
17913 # Is shlibpath searched before the hard-coded library search path?
17914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17915
17916 # How to hardcode a shared library path into an executable.
17917 hardcode_action=$hardcode_action
17918
17919 # Whether we should hardcode library paths into libraries.
17920 hardcode_into_libs=$hardcode_into_libs
17921
17922 # Flag to hardcode \$libdir into a binary during linking.
17923 # This must work even if \$libdir does not exist.
17924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17925
17926 # If ld is used when linking, flag to hardcode \$libdir into
17927 # a binary during linking. This must work even if \$libdir does
17928 # not exist.
17929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17930
17931 # Whether we need a single -rpath flag with a separated argument.
17932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17933
17934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17935 # resulting binary.
17936 hardcode_direct=$hardcode_direct
17937
17938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17939 # resulting binary.
17940 hardcode_minus_L=$hardcode_minus_L
17941
17942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17943 # the resulting binary.
17944 hardcode_shlibpath_var=$hardcode_shlibpath_var
17945
17946 # Set to yes if building a shared library automatically hardcodes DIR into the library
17947 # and all subsequent libraries and executables linked against it.
17948 hardcode_automatic=$hardcode_automatic
17949
17950 # Variables whose values should be saved in libtool wrapper scripts and
17951 # restored at relink time.
17952 variables_saved_for_relink="$variables_saved_for_relink"
17953
17954 # Whether libtool must link a program against all its dependency libraries.
17955 link_all_deplibs=$link_all_deplibs
17956
17957 # Compile-time system search path for libraries
17958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17959
17960 # Run-time system search path for libraries
17961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17962
17963 # Fix the shell variable \$srcfile for the compiler.
17964 fix_srcfile_path="$fix_srcfile_path"
17965
17966 # Set to yes if exported symbols are required.
17967 always_export_symbols=$always_export_symbols
17968
17969 # The commands to list exported symbols.
17970 export_symbols_cmds=$lt_export_symbols_cmds
17971
17972 # The commands to extract the exported symbol list from a shared archive.
17973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17974
17975 # Symbols that should not be listed in the preloaded symbols.
17976 exclude_expsyms=$lt_exclude_expsyms
17977
17978 # Symbols that must always be exported.
17979 include_expsyms=$lt_include_expsyms
17980
17981 # ### END LIBTOOL CONFIG
17982
17983 __EOF__
17984
17985
17986   case $host_os in
17987   aix3*)
17988     cat <<\EOF >> "$cfgfile"
17989
17990 # AIX sometimes has problems with the GCC collect2 program.  For some
17991 # reason, if we set the COLLECT_NAMES environment variable, the problems
17992 # vanish in a puff of smoke.
17993 if test "X${COLLECT_NAMES+set}" != Xset; then
17994   COLLECT_NAMES=
17995   export COLLECT_NAMES
17996 fi
17997 EOF
17998     ;;
17999   esac
18000
18001   # We use sed instead of cat because bash on DJGPP gets confused if
18002   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18003   # text mode, it properly converts lines to CR/LF.  This bash problem
18004   # is reportedly fixed, but why not run on old versions too?
18005   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18006
18007   mv -f "$cfgfile" "$ofile" || \
18008     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18009   chmod +x "$ofile"
18010
18011 else
18012   # If there is no Makefile yet, we rely on a make rule to execute
18013   # `config.status --recheck' to rerun these tests and create the
18014   # libtool script then.
18015   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18016   if test -f "$ltmain_in"; then
18017     test -f Makefile && make "$ltmain"
18018   fi
18019 fi
18020
18021
18022 ac_ext=c
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027
18028 CC="$lt_save_CC"
18029
18030
18031 # Check whether --with-tags was given.
18032 if test "${with_tags+set}" = set; then
18033   withval=$with_tags; tagnames="$withval"
18034 fi
18035
18036
18037 if test -f "$ltmain" && test -n "$tagnames"; then
18038   if test ! -f "${ofile}"; then
18039     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18040 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18041   fi
18042
18043   if test -z "$LTCC"; then
18044     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18045     if test -z "$LTCC"; then
18046       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18047 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18048     else
18049       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18050 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18051     fi
18052   fi
18053   if test -z "$LTCFLAGS"; then
18054     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18055   fi
18056
18057   # Extract list of available tagged configurations in $ofile.
18058   # Note that this assumes the entire list is on one line.
18059   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18060
18061   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18062   for tagname in $tagnames; do
18063     IFS="$lt_save_ifs"
18064     # Check whether tagname contains only valid characters
18065     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18066     "") ;;
18067     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18068 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18069    { (exit 1); exit 1; }; }
18070         ;;
18071     esac
18072
18073     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18074     then
18075       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18076 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18077    { (exit 1); exit 1; }; }
18078     fi
18079
18080     # Update the list of available tags.
18081     if test -n "$tagname"; then
18082       echo appending configuration tag \"$tagname\" to $ofile
18083
18084       case $tagname in
18085       CXX)
18086         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18087             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18088             (test "X$CXX" != "Xg++"))) ; then
18089           ac_ext=cpp
18090 ac_cpp='$CXXCPP $CPPFLAGS'
18091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18094
18095
18096
18097
18098 archive_cmds_need_lc_CXX=no
18099 allow_undefined_flag_CXX=
18100 always_export_symbols_CXX=no
18101 archive_expsym_cmds_CXX=
18102 export_dynamic_flag_spec_CXX=
18103 hardcode_direct_CXX=no
18104 hardcode_libdir_flag_spec_CXX=
18105 hardcode_libdir_flag_spec_ld_CXX=
18106 hardcode_libdir_separator_CXX=
18107 hardcode_minus_L_CXX=no
18108 hardcode_shlibpath_var_CXX=unsupported
18109 hardcode_automatic_CXX=no
18110 module_cmds_CXX=
18111 module_expsym_cmds_CXX=
18112 link_all_deplibs_CXX=unknown
18113 old_archive_cmds_CXX=$old_archive_cmds
18114 no_undefined_flag_CXX=
18115 whole_archive_flag_spec_CXX=
18116 enable_shared_with_static_runtimes_CXX=no
18117
18118 # Dependencies to place before and after the object being linked:
18119 predep_objects_CXX=
18120 postdep_objects_CXX=
18121 predeps_CXX=
18122 postdeps_CXX=
18123 compiler_lib_search_path_CXX=
18124
18125 # Source file extension for C++ test sources.
18126 ac_ext=cpp
18127
18128 # Object file extension for compiled C++ test sources.
18129 objext=o
18130 objext_CXX=$objext
18131
18132 # Code to be used in simple compile tests
18133 lt_simple_compile_test_code="int some_variable = 0;\n"
18134
18135 # Code to be used in simple link tests
18136 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18137
18138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18139
18140 # If no C compiler was specified, use CC.
18141 LTCC=${LTCC-"$CC"}
18142
18143 # If no C compiler flags were specified, use CFLAGS.
18144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18145
18146 # Allow CC to be a program name with arguments.
18147 compiler=$CC
18148
18149
18150 # save warnings/boilerplate of simple test code
18151 ac_outfile=conftest.$ac_objext
18152 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18154 _lt_compiler_boilerplate=`cat conftest.err`
18155 $rm conftest*
18156
18157 ac_outfile=conftest.$ac_objext
18158 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18160 _lt_linker_boilerplate=`cat conftest.err`
18161 $rm conftest*
18162
18163
18164 # Allow CC to be a program name with arguments.
18165 lt_save_CC=$CC
18166 lt_save_LD=$LD
18167 lt_save_GCC=$GCC
18168 GCC=$GXX
18169 lt_save_with_gnu_ld=$with_gnu_ld
18170 lt_save_path_LD=$lt_cv_path_LD
18171 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18172   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18173 else
18174   $as_unset lt_cv_prog_gnu_ld
18175 fi
18176 if test -n "${lt_cv_path_LDCXX+set}"; then
18177   lt_cv_path_LD=$lt_cv_path_LDCXX
18178 else
18179   $as_unset lt_cv_path_LD
18180 fi
18181 test -z "${LDCXX+set}" || LD=$LDCXX
18182 CC=${CXX-"c++"}
18183 compiler=$CC
18184 compiler_CXX=$CC
18185 for cc_temp in $compiler""; do
18186   case $cc_temp in
18187     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18188     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18189     \-*) ;;
18190     *) break;;
18191   esac
18192 done
18193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18194
18195
18196 # We don't want -fno-exception wen compiling C++ code, so set the
18197 # no_builtin_flag separately
18198 if test "$GXX" = yes; then
18199   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18200 else
18201   lt_prog_compiler_no_builtin_flag_CXX=
18202 fi
18203
18204 if test "$GXX" = yes; then
18205   # Set up default GNU C++ configuration
18206
18207
18208 # Check whether --with-gnu-ld was given.
18209 if test "${with_gnu_ld+set}" = set; then
18210   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18211 else
18212   with_gnu_ld=no
18213 fi
18214
18215 ac_prog=ld
18216 if test "$GCC" = yes; then
18217   # Check if gcc -print-prog-name=ld gives a path.
18218   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18219 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18220   case $host in
18221   *-*-mingw*)
18222     # gcc leaves a trailing carriage return which upsets mingw
18223     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18224   *)
18225     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18226   esac
18227   case $ac_prog in
18228     # Accept absolute paths.
18229     [\\/]* | ?:[\\/]*)
18230       re_direlt='/[^/][^/]*/\.\./'
18231       # Canonicalize the pathname of ld
18232       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18233       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18234         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18235       done
18236       test -z "$LD" && LD="$ac_prog"
18237       ;;
18238   "")
18239     # If it fails, then pretend we aren't using GCC.
18240     ac_prog=ld
18241     ;;
18242   *)
18243     # If it is relative, then search for the first ld in PATH.
18244     with_gnu_ld=unknown
18245     ;;
18246   esac
18247 elif test "$with_gnu_ld" = yes; then
18248   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18249 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18250 else
18251   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18252 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18253 fi
18254 if test "${lt_cv_path_LD+set}" = set; then
18255   echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257   if test -z "$LD"; then
18258   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18259   for ac_dir in $PATH; do
18260     IFS="$lt_save_ifs"
18261     test -z "$ac_dir" && ac_dir=.
18262     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18263       lt_cv_path_LD="$ac_dir/$ac_prog"
18264       # Check to see if the program is GNU ld.  I'd rather use --version,
18265       # but apparently some variants of GNU ld only accept -v.
18266       # Break only if it was the GNU/non-GNU ld that we prefer.
18267       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18268       *GNU* | *'with BFD'*)
18269         test "$with_gnu_ld" != no && break
18270         ;;
18271       *)
18272         test "$with_gnu_ld" != yes && break
18273         ;;
18274       esac
18275     fi
18276   done
18277   IFS="$lt_save_ifs"
18278 else
18279   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18280 fi
18281 fi
18282
18283 LD="$lt_cv_path_LD"
18284 if test -n "$LD"; then
18285   { echo "$as_me:$LINENO: result: $LD" >&5
18286 echo "${ECHO_T}$LD" >&6; }
18287 else
18288   { echo "$as_me:$LINENO: result: no" >&5
18289 echo "${ECHO_T}no" >&6; }
18290 fi
18291 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18292 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18293    { (exit 1); exit 1; }; }
18294 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18295 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18296 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18297   echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18300 case `$LD -v 2>&1 </dev/null` in
18301 *GNU* | *'with BFD'*)
18302   lt_cv_prog_gnu_ld=yes
18303   ;;
18304 *)
18305   lt_cv_prog_gnu_ld=no
18306   ;;
18307 esac
18308 fi
18309 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18310 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18311 with_gnu_ld=$lt_cv_prog_gnu_ld
18312
18313
18314
18315   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18316   # archiving commands below assume that GNU ld is being used.
18317   if test "$with_gnu_ld" = yes; then
18318     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18319     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'
18320
18321     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18322     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18323
18324     # If archive_cmds runs LD, not CC, wlarc should be empty
18325     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18326     #     investigate it a little bit more. (MM)
18327     wlarc='${wl}'
18328
18329     # ancient GNU ld didn't support --whole-archive et. al.
18330     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18331         grep 'no-whole-archive' > /dev/null; then
18332       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18333     else
18334       whole_archive_flag_spec_CXX=
18335     fi
18336   else
18337     with_gnu_ld=no
18338     wlarc=
18339
18340     # A generic and very simple default shared library creation
18341     # command for GNU C++ for the case where it uses the native
18342     # linker, instead of GNU ld.  If possible, this setting should
18343     # overridden to take advantage of the native linker features on
18344     # the platform it is being used on.
18345     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18346   fi
18347
18348   # Commands to make compiler produce verbose output that lists
18349   # what "hidden" libraries, object files and flags are used when
18350   # linking a shared library.
18351   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18352
18353 else
18354   GXX=no
18355   with_gnu_ld=no
18356   wlarc=
18357 fi
18358
18359 # PORTME: fill in a description of your system's C++ link characteristics
18360 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18361 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18362 ld_shlibs_CXX=yes
18363 case $host_os in
18364   aix3*)
18365     # FIXME: insert proper C++ library support
18366     ld_shlibs_CXX=no
18367     ;;
18368   aix4* | aix5*)
18369     if test "$host_cpu" = ia64; then
18370       # On IA64, the linker does run time linking by default, so we don't
18371       # have to do anything special.
18372       aix_use_runtimelinking=no
18373       exp_sym_flag='-Bexport'
18374       no_entry_flag=""
18375     else
18376       aix_use_runtimelinking=no
18377
18378       # Test if we are trying to use run time linking or normal
18379       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18380       # need to do runtime linking.
18381       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18382         for ld_flag in $LDFLAGS; do
18383           case $ld_flag in
18384           *-brtl*)
18385             aix_use_runtimelinking=yes
18386             break
18387             ;;
18388           esac
18389         done
18390         ;;
18391       esac
18392
18393       exp_sym_flag='-bexport'
18394       no_entry_flag='-bnoentry'
18395     fi
18396
18397     # When large executables or shared objects are built, AIX ld can
18398     # have problems creating the table of contents.  If linking a library
18399     # or program results in "error TOC overflow" add -mminimal-toc to
18400     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18401     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18402
18403     archive_cmds_CXX=''
18404     hardcode_direct_CXX=yes
18405     hardcode_libdir_separator_CXX=':'
18406     link_all_deplibs_CXX=yes
18407
18408     if test "$GXX" = yes; then
18409       case $host_os in aix4.[012]|aix4.[012].*)
18410       # We only want to do this on AIX 4.2 and lower, the check
18411       # below for broken collect2 doesn't work under 4.3+
18412         collect2name=`${CC} -print-prog-name=collect2`
18413         if test -f "$collect2name" && \
18414            strings "$collect2name" | grep resolve_lib_name >/dev/null
18415         then
18416           # We have reworked collect2
18417           hardcode_direct_CXX=yes
18418         else
18419           # We have old collect2
18420           hardcode_direct_CXX=unsupported
18421           # It fails to find uninstalled libraries when the uninstalled
18422           # path is not listed in the libpath.  Setting hardcode_minus_L
18423           # to unsupported forces relinking
18424           hardcode_minus_L_CXX=yes
18425           hardcode_libdir_flag_spec_CXX='-L$libdir'
18426           hardcode_libdir_separator_CXX=
18427         fi
18428         ;;
18429       esac
18430       shared_flag='-shared'
18431       if test "$aix_use_runtimelinking" = yes; then
18432         shared_flag="$shared_flag "'${wl}-G'
18433       fi
18434     else
18435       # not using gcc
18436       if test "$host_cpu" = ia64; then
18437         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18438         # chokes on -Wl,-G. The following line is correct:
18439         shared_flag='-G'
18440       else
18441         if test "$aix_use_runtimelinking" = yes; then
18442           shared_flag='${wl}-G'
18443         else
18444           shared_flag='${wl}-bM:SRE'
18445         fi
18446       fi
18447     fi
18448
18449     # It seems that -bexpall does not export symbols beginning with
18450     # underscore (_), so it is better to generate a list of symbols to export.
18451     always_export_symbols_CXX=yes
18452     if test "$aix_use_runtimelinking" = yes; then
18453       # Warning - without using the other runtime loading flags (-brtl),
18454       # -berok will link without error, but may produce a broken library.
18455       allow_undefined_flag_CXX='-berok'
18456       # Determine the default libpath from the value encoded in an empty executable.
18457       cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 int
18465 main ()
18466 {
18467
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (ac_try="$ac_link"
18474 case "(($ac_try" in
18475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476   *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479   (eval "$ac_link") 2>conftest.er1
18480   ac_status=$?
18481   grep -v '^ *+' conftest.er1 >conftest.err
18482   rm -f conftest.er1
18483   cat conftest.err >&5
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } &&
18486          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18487   { (case "(($ac_try" in
18488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489   *) ac_try_echo=$ac_try;;
18490 esac
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492   (eval "$ac_try") 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; } &&
18496          { ac_try='test -s conftest$ac_exeext'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; }; then
18506
18507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18508 }'`
18509 # Check for a 64-bit object if we didn't find anything.
18510 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; }
18511 }'`; fi
18512 else
18513   echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext \
18520       conftest$ac_exeext conftest.$ac_ext
18521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18522
18523       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18524
18525       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"
18526      else
18527       if test "$host_cpu" = ia64; then
18528         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18529         allow_undefined_flag_CXX="-z nodefs"
18530         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"
18531       else
18532         # Determine the default libpath from the value encoded in an empty executable.
18533         cat >conftest.$ac_ext <<_ACEOF
18534 /* confdefs.h.  */
18535 _ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h.  */
18539
18540 int
18541 main ()
18542 {
18543
18544   ;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_link") 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18563   { (case "(($ac_try" in
18564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565   *) ac_try_echo=$ac_try;;
18566 esac
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568   (eval "$ac_try") 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); }; } &&
18572          { ac_try='test -s conftest$ac_exeext'
18573   { (case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_try") 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; }; then
18582
18583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18584 }'`
18585 # Check for a 64-bit object if we didn't find anything.
18586 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; }
18587 }'`; fi
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592
18593 fi
18594
18595 rm -f core conftest.err conftest.$ac_objext \
18596       conftest$ac_exeext conftest.$ac_ext
18597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18598
18599         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18600         # Warning - without using the other run time loading flags,
18601         # -berok will link without error, but may produce a broken library.
18602         no_undefined_flag_CXX=' ${wl}-bernotok'
18603         allow_undefined_flag_CXX=' ${wl}-berok'
18604         # Exported symbols can be pulled into shared objects from archives
18605         whole_archive_flag_spec_CXX='$convenience'
18606         archive_cmds_need_lc_CXX=yes
18607         # This is similar to how AIX traditionally builds its shared libraries.
18608         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'
18609       fi
18610     fi
18611     ;;
18612
18613   beos*)
18614     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18615       allow_undefined_flag_CXX=unsupported
18616       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18617       # support --undefined.  This deserves some investigation.  FIXME
18618       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18619     else
18620       ld_shlibs_CXX=no
18621     fi
18622     ;;
18623
18624   chorus*)
18625     case $cc_basename in
18626       *)
18627         # FIXME: insert proper C++ library support
18628         ld_shlibs_CXX=no
18629         ;;
18630     esac
18631     ;;
18632
18633   cygwin* | mingw* | pw32*)
18634     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18635     # as there is no search path for DLLs.
18636     hardcode_libdir_flag_spec_CXX='-L$libdir'
18637     allow_undefined_flag_CXX=unsupported
18638     always_export_symbols_CXX=no
18639     enable_shared_with_static_runtimes_CXX=yes
18640
18641     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18642       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'
18643       # If the export-symbols file already is a .def file (1st line
18644       # is EXPORTS), use it as is; otherwise, prepend...
18645       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18646         cp $export_symbols $output_objdir/$soname.def;
18647       else
18648         echo EXPORTS > $output_objdir/$soname.def;
18649         cat $export_symbols >> $output_objdir/$soname.def;
18650       fi~
18651       $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'
18652     else
18653       ld_shlibs_CXX=no
18654     fi
18655   ;;
18656       darwin* | rhapsody*)
18657         case $host_os in
18658         rhapsody* | darwin1.[012])
18659          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18660          ;;
18661        *) # Darwin 1.3 on
18662          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18663            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18664          else
18665            case ${MACOSX_DEPLOYMENT_TARGET} in
18666              10.[012])
18667                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18668                ;;
18669              10.*)
18670                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18671                ;;
18672            esac
18673          fi
18674          ;;
18675         esac
18676       archive_cmds_need_lc_CXX=no
18677       hardcode_direct_CXX=no
18678       hardcode_automatic_CXX=yes
18679       hardcode_shlibpath_var_CXX=unsupported
18680       whole_archive_flag_spec_CXX=''
18681       link_all_deplibs_CXX=yes
18682
18683     if test "$GXX" = yes ; then
18684       lt_int_apple_cc_single_mod=no
18685       output_verbose_link_cmd='echo'
18686       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18687        lt_int_apple_cc_single_mod=yes
18688       fi
18689       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18690        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18691       else
18692           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'
18693         fi
18694         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18695         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18696           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18697             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}'
18698           else
18699             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}'
18700           fi
18701             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}'
18702       else
18703       case $cc_basename in
18704         xlc*)
18705          output_verbose_link_cmd='echo'
18706           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'
18707           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18708           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18709           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}'
18710           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}'
18711           ;;
18712        *)
18713          ld_shlibs_CXX=no
18714           ;;
18715       esac
18716       fi
18717         ;;
18718
18719   dgux*)
18720     case $cc_basename in
18721       ec++*)
18722         # FIXME: insert proper C++ library support
18723         ld_shlibs_CXX=no
18724         ;;
18725       ghcx*)
18726         # Green Hills C++ Compiler
18727         # FIXME: insert proper C++ library support
18728         ld_shlibs_CXX=no
18729         ;;
18730       *)
18731         # FIXME: insert proper C++ library support
18732         ld_shlibs_CXX=no
18733         ;;
18734     esac
18735     ;;
18736   freebsd[12]*)
18737     # C++ shared libraries reported to be fairly broken before switch to ELF
18738     ld_shlibs_CXX=no
18739     ;;
18740   freebsd-elf*)
18741     archive_cmds_need_lc_CXX=no
18742     ;;
18743   freebsd* | kfreebsd*-gnu | dragonfly*)
18744     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18745     # conventions
18746     ld_shlibs_CXX=yes
18747     ;;
18748   gnu*)
18749     ;;
18750   hpux9*)
18751     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18752     hardcode_libdir_separator_CXX=:
18753     export_dynamic_flag_spec_CXX='${wl}-E'
18754     hardcode_direct_CXX=yes
18755     hardcode_minus_L_CXX=yes # Not in the search PATH,
18756                                 # but as the default
18757                                 # location of the library.
18758
18759     case $cc_basename in
18760     CC*)
18761       # FIXME: insert proper C++ library support
18762       ld_shlibs_CXX=no
18763       ;;
18764     aCC*)
18765       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'
18766       # Commands to make compiler produce verbose output that lists
18767       # what "hidden" libraries, object files and flags are used when
18768       # linking a shared library.
18769       #
18770       # There doesn't appear to be a way to prevent this compiler from
18771       # explicitly linking system object files so we need to strip them
18772       # from the output so that they don't get included in the library
18773       # dependencies.
18774       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'
18775       ;;
18776     *)
18777       if test "$GXX" = yes; then
18778         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'
18779       else
18780         # FIXME: insert proper C++ library support
18781         ld_shlibs_CXX=no
18782       fi
18783       ;;
18784     esac
18785     ;;
18786   hpux10*|hpux11*)
18787     if test $with_gnu_ld = no; then
18788       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18789       hardcode_libdir_separator_CXX=:
18790
18791       case $host_cpu in
18792       hppa*64*|ia64*)
18793         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18794         ;;
18795       *)
18796         export_dynamic_flag_spec_CXX='${wl}-E'
18797         ;;
18798       esac
18799     fi
18800     case $host_cpu in
18801     hppa*64*|ia64*)
18802       hardcode_direct_CXX=no
18803       hardcode_shlibpath_var_CXX=no
18804       ;;
18805     *)
18806       hardcode_direct_CXX=yes
18807       hardcode_minus_L_CXX=yes # Not in the search PATH,
18808                                               # but as the default
18809                                               # location of the library.
18810       ;;
18811     esac
18812
18813     case $cc_basename in
18814       CC*)
18815         # FIXME: insert proper C++ library support
18816         ld_shlibs_CXX=no
18817         ;;
18818       aCC*)
18819         case $host_cpu in
18820         hppa*64*)
18821           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18822           ;;
18823         ia64*)
18824           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18825           ;;
18826         *)
18827           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18828           ;;
18829         esac
18830         # Commands to make compiler produce verbose output that lists
18831         # what "hidden" libraries, object files and flags are used when
18832         # linking a shared library.
18833         #
18834         # There doesn't appear to be a way to prevent this compiler from
18835         # explicitly linking system object files so we need to strip them
18836         # from the output so that they don't get included in the library
18837         # dependencies.
18838         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'
18839         ;;
18840       *)
18841         if test "$GXX" = yes; then
18842           if test $with_gnu_ld = no; then
18843             case $host_cpu in
18844             hppa*64*)
18845               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846               ;;
18847             ia64*)
18848               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849               ;;
18850             *)
18851               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'
18852               ;;
18853             esac
18854           fi
18855         else
18856           # FIXME: insert proper C++ library support
18857           ld_shlibs_CXX=no
18858         fi
18859         ;;
18860     esac
18861     ;;
18862   interix3*)
18863     hardcode_direct_CXX=no
18864     hardcode_shlibpath_var_CXX=no
18865     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18866     export_dynamic_flag_spec_CXX='${wl}-E'
18867     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18868     # Instead, shared libraries are loaded at an image base (0x10000000 by
18869     # default) and relocated if they conflict, which is a slow very memory
18870     # consuming and fragmenting process.  To avoid this, we pick a random,
18871     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18872     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18873     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'
18874     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'
18875     ;;
18876   irix5* | irix6*)
18877     case $cc_basename in
18878       CC*)
18879         # SGI C++
18880         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'
18881
18882         # Archives containing C++ object files must be created using
18883         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18884         # necessary to make sure instantiated templates are included
18885         # in the archive.
18886         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18887         ;;
18888       *)
18889         if test "$GXX" = yes; then
18890           if test "$with_gnu_ld" = no; then
18891             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'
18892           else
18893             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'
18894           fi
18895         fi
18896         link_all_deplibs_CXX=yes
18897         ;;
18898     esac
18899     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900     hardcode_libdir_separator_CXX=:
18901     ;;
18902   linux*)
18903     case $cc_basename in
18904       KCC*)
18905         # Kuck and Associates, Inc. (KAI) C++ Compiler
18906
18907         # KCC will only create a shared library if the output file
18908         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18909         # to its proper name (with version) after linking.
18910         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'
18911         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'
18912         # Commands to make compiler produce verbose output that lists
18913         # what "hidden" libraries, object files and flags are used when
18914         # linking a shared library.
18915         #
18916         # There doesn't appear to be a way to prevent this compiler from
18917         # explicitly linking system object files so we need to strip them
18918         # from the output so that they don't get included in the library
18919         # dependencies.
18920         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'
18921
18922         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18923         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18924
18925         # Archives containing C++ object files must be created using
18926         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18927         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18928         ;;
18929       icpc*)
18930         # Intel C++
18931         with_gnu_ld=yes
18932         # version 8.0 and above of icpc choke on multiply defined symbols
18933         # if we add $predep_objects and $postdep_objects, however 7.1 and
18934         # earlier do not add the objects themselves.
18935         case `$CC -V 2>&1` in
18936         *"Version 7."*)
18937           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18938           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'
18939           ;;
18940         *)  # Version 8.0 or newer
18941           tmp_idyn=
18942           case $host_cpu in
18943             ia64*) tmp_idyn=' -i_dynamic';;
18944           esac
18945           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18946           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'
18947           ;;
18948         esac
18949         archive_cmds_need_lc_CXX=no
18950         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18951         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18952         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18953         ;;
18954       pgCC*)
18955         # Portland Group C++ compiler
18956         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18957         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'
18958
18959         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18960         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18961         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'
18962         ;;
18963       cxx*)
18964         # Compaq C++
18965         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18966         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'
18967
18968         runpath_var=LD_RUN_PATH
18969         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18970         hardcode_libdir_separator_CXX=:
18971
18972         # Commands to make compiler produce verbose output that lists
18973         # what "hidden" libraries, object files and flags are used when
18974         # linking a shared library.
18975         #
18976         # There doesn't appear to be a way to prevent this compiler from
18977         # explicitly linking system object files so we need to strip them
18978         # from the output so that they don't get included in the library
18979         # dependencies.
18980         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'
18981         ;;
18982     esac
18983     ;;
18984   lynxos*)
18985     # FIXME: insert proper C++ library support
18986     ld_shlibs_CXX=no
18987     ;;
18988   m88k*)
18989     # FIXME: insert proper C++ library support
18990     ld_shlibs_CXX=no
18991     ;;
18992   mvs*)
18993     case $cc_basename in
18994       cxx*)
18995         # FIXME: insert proper C++ library support
18996         ld_shlibs_CXX=no
18997         ;;
18998       *)
18999         # FIXME: insert proper C++ library support
19000         ld_shlibs_CXX=no
19001         ;;
19002     esac
19003     ;;
19004   netbsd*)
19005     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19006       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19007       wlarc=
19008       hardcode_libdir_flag_spec_CXX='-R$libdir'
19009       hardcode_direct_CXX=yes
19010       hardcode_shlibpath_var_CXX=no
19011     fi
19012     # Workaround some broken pre-1.5 toolchains
19013     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19014     ;;
19015   openbsd2*)
19016     # C++ shared libraries are fairly broken
19017     ld_shlibs_CXX=no
19018     ;;
19019   openbsd*)
19020     hardcode_direct_CXX=yes
19021     hardcode_shlibpath_var_CXX=no
19022     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19023     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19024     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19025       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19026       export_dynamic_flag_spec_CXX='${wl}-E'
19027       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19028     fi
19029     output_verbose_link_cmd='echo'
19030     ;;
19031   osf3*)
19032     case $cc_basename in
19033       KCC*)
19034         # Kuck and Associates, Inc. (KAI) C++ Compiler
19035
19036         # KCC will only create a shared library if the output file
19037         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19038         # to its proper name (with version) after linking.
19039         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'
19040
19041         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19042         hardcode_libdir_separator_CXX=:
19043
19044         # Archives containing C++ object files must be created using
19045         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19046         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19047
19048         ;;
19049       RCC*)
19050         # Rational C++ 2.4.1
19051         # FIXME: insert proper C++ library support
19052         ld_shlibs_CXX=no
19053         ;;
19054       cxx*)
19055         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19056         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'
19057
19058         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19059         hardcode_libdir_separator_CXX=:
19060
19061         # Commands to make compiler produce verbose output that lists
19062         # what "hidden" libraries, object files and flags are used when
19063         # linking a shared library.
19064         #
19065         # There doesn't appear to be a way to prevent this compiler from
19066         # explicitly linking system object files so we need to strip them
19067         # from the output so that they don't get included in the library
19068         # dependencies.
19069         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'
19070         ;;
19071       *)
19072         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19073           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19074           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'
19075
19076           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19077           hardcode_libdir_separator_CXX=:
19078
19079           # Commands to make compiler produce verbose output that lists
19080           # what "hidden" libraries, object files and flags are used when
19081           # linking a shared library.
19082           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19083
19084         else
19085           # FIXME: insert proper C++ library support
19086           ld_shlibs_CXX=no
19087         fi
19088         ;;
19089     esac
19090     ;;
19091   osf4* | osf5*)
19092     case $cc_basename in
19093       KCC*)
19094         # Kuck and Associates, Inc. (KAI) C++ Compiler
19095
19096         # KCC will only create a shared library if the output file
19097         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19098         # to its proper name (with version) after linking.
19099         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'
19100
19101         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19102         hardcode_libdir_separator_CXX=:
19103
19104         # Archives containing C++ object files must be created using
19105         # the KAI C++ compiler.
19106         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19107         ;;
19108       RCC*)
19109         # Rational C++ 2.4.1
19110         # FIXME: insert proper C++ library support
19111         ld_shlibs_CXX=no
19112         ;;
19113       cxx*)
19114         allow_undefined_flag_CXX=' -expect_unresolved \*'
19115         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'
19116         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19117           echo "-hidden">> $lib.exp~
19118           $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~
19119           $rm $lib.exp'
19120
19121         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19122         hardcode_libdir_separator_CXX=:
19123
19124         # Commands to make compiler produce verbose output that lists
19125         # what "hidden" libraries, object files and flags are used when
19126         # linking a shared library.
19127         #
19128         # There doesn't appear to be a way to prevent this compiler from
19129         # explicitly linking system object files so we need to strip them
19130         # from the output so that they don't get included in the library
19131         # dependencies.
19132         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'
19133         ;;
19134       *)
19135         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19136           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19137          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'
19138
19139           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140           hardcode_libdir_separator_CXX=:
19141
19142           # Commands to make compiler produce verbose output that lists
19143           # what "hidden" libraries, object files and flags are used when
19144           # linking a shared library.
19145           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19146
19147         else
19148           # FIXME: insert proper C++ library support
19149           ld_shlibs_CXX=no
19150         fi
19151         ;;
19152     esac
19153     ;;
19154   psos*)
19155     # FIXME: insert proper C++ library support
19156     ld_shlibs_CXX=no
19157     ;;
19158   sunos4*)
19159     case $cc_basename in
19160       CC*)
19161         # Sun C++ 4.x
19162         # FIXME: insert proper C++ library support
19163         ld_shlibs_CXX=no
19164         ;;
19165       lcc*)
19166         # Lucid
19167         # FIXME: insert proper C++ library support
19168         ld_shlibs_CXX=no
19169         ;;
19170       *)
19171         # FIXME: insert proper C++ library support
19172         ld_shlibs_CXX=no
19173         ;;
19174     esac
19175     ;;
19176   solaris*)
19177     case $cc_basename in
19178       CC*)
19179         # Sun C++ 4.2, 5.x and Centerline C++
19180         archive_cmds_need_lc_CXX=yes
19181         no_undefined_flag_CXX=' -zdefs'
19182         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19183         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19184         $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'
19185
19186         hardcode_libdir_flag_spec_CXX='-R$libdir'
19187         hardcode_shlibpath_var_CXX=no
19188         case $host_os in
19189           solaris2.[0-5] | solaris2.[0-5].*) ;;
19190           *)
19191             # The C++ compiler is used as linker so we must use $wl
19192             # flag to pass the commands to the underlying system
19193             # linker. We must also pass each convience library through
19194             # to the system linker between allextract/defaultextract.
19195             # The C++ compiler will combine linker options so we
19196             # cannot just pass the convience library names through
19197             # without $wl.
19198             # Supported since Solaris 2.6 (maybe 2.5.1?)
19199             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'
19200             ;;
19201         esac
19202         link_all_deplibs_CXX=yes
19203
19204         output_verbose_link_cmd='echo'
19205
19206         # Archives containing C++ object files must be created using
19207         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19208         # necessary to make sure instantiated templates are included
19209         # in the archive.
19210         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19211         ;;
19212       gcx*)
19213         # Green Hills C++ Compiler
19214         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19215
19216         # The C++ compiler must be used to create the archive.
19217         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19218         ;;
19219       *)
19220         # GNU C++ compiler with Solaris linker
19221         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19222           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19223           if $CC --version | grep -v '^2\.7' > /dev/null; then
19224             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19225             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19226                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19227
19228             # Commands to make compiler produce verbose output that lists
19229             # what "hidden" libraries, object files and flags are used when
19230             # linking a shared library.
19231             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19232           else
19233             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19234             # platform.
19235             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19236             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19238
19239             # Commands to make compiler produce verbose output that lists
19240             # what "hidden" libraries, object files and flags are used when
19241             # linking a shared library.
19242             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19243           fi
19244
19245           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19246         fi
19247         ;;
19248     esac
19249     ;;
19250   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19251     no_undefined_flag_CXX='${wl}-z,text'
19252     archive_cmds_need_lc_CXX=no
19253     hardcode_shlibpath_var_CXX=no
19254     runpath_var='LD_RUN_PATH'
19255
19256     case $cc_basename in
19257       CC*)
19258         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19259         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19260         ;;
19261       *)
19262         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19263         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19264         ;;
19265     esac
19266     ;;
19267   sysv5* | sco3.2v5* | sco5v6*)
19268     # Note: We can NOT use -z defs as we might desire, because we do not
19269     # link with -lc, and that would cause any symbols used from libc to
19270     # always be unresolved, which means just about no library would
19271     # ever link correctly.  If we're not using GNU ld we use -z text
19272     # though, which does catch some bad symbols but isn't as heavy-handed
19273     # as -z defs.
19274     # For security reasons, it is highly recommended that you always
19275     # use absolute paths for naming shared libraries, and exclude the
19276     # DT_RUNPATH tag from executables and libraries.  But doing so
19277     # requires that you compile everything twice, which is a pain.
19278     # So that behaviour is only enabled if SCOABSPATH is set to a
19279     # non-empty value in the environment.  Most likely only useful for
19280     # creating official distributions of packages.
19281     # This is a hack until libtool officially supports absolute path
19282     # names for shared libraries.
19283     no_undefined_flag_CXX='${wl}-z,text'
19284     allow_undefined_flag_CXX='${wl}-z,nodefs'
19285     archive_cmds_need_lc_CXX=no
19286     hardcode_shlibpath_var_CXX=no
19287     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19288     hardcode_libdir_separator_CXX=':'
19289     link_all_deplibs_CXX=yes
19290     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19291     runpath_var='LD_RUN_PATH'
19292
19293     case $cc_basename in
19294       CC*)
19295         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19296         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19297         ;;
19298       *)
19299         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19300         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19301         ;;
19302     esac
19303     ;;
19304   tandem*)
19305     case $cc_basename in
19306       NCC*)
19307         # NonStop-UX NCC 3.20
19308         # FIXME: insert proper C++ library support
19309         ld_shlibs_CXX=no
19310         ;;
19311       *)
19312         # FIXME: insert proper C++ library support
19313         ld_shlibs_CXX=no
19314         ;;
19315     esac
19316     ;;
19317   vxworks*)
19318     # FIXME: insert proper C++ library support
19319     ld_shlibs_CXX=no
19320     ;;
19321   *)
19322     # FIXME: insert proper C++ library support
19323     ld_shlibs_CXX=no
19324     ;;
19325 esac
19326 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19327 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19328 test "$ld_shlibs_CXX" = no && can_build_shared=no
19329
19330 GCC_CXX="$GXX"
19331 LD_CXX="$LD"
19332
19333
19334 cat > conftest.$ac_ext <<EOF
19335 class Foo
19336 {
19337 public:
19338   Foo (void) { a = 0; }
19339 private:
19340   int a;
19341 };
19342 EOF
19343
19344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345   (eval $ac_compile) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; then
19349   # Parse the compiler output and extract the necessary
19350   # objects, libraries and library flags.
19351
19352   # Sentinel used to keep track of whether or not we are before
19353   # the conftest object file.
19354   pre_test_object_deps_done=no
19355
19356   # The `*' in the case matches for architectures that use `case' in
19357   # $output_verbose_cmd can trigger glob expansion during the loop
19358   # eval without this substitution.
19359   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19360
19361   for p in `eval $output_verbose_link_cmd`; do
19362     case $p in
19363
19364     -L* | -R* | -l*)
19365        # Some compilers place space between "-{L,R}" and the path.
19366        # Remove the space.
19367        if test $p = "-L" \
19368           || test $p = "-R"; then
19369          prev=$p
19370          continue
19371        else
19372          prev=
19373        fi
19374
19375        if test "$pre_test_object_deps_done" = no; then
19376          case $p in
19377          -L* | -R*)
19378            # Internal compiler library paths should come after those
19379            # provided the user.  The postdeps already come after the
19380            # user supplied libs so there is no need to process them.
19381            if test -z "$compiler_lib_search_path_CXX"; then
19382              compiler_lib_search_path_CXX="${prev}${p}"
19383            else
19384              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19385            fi
19386            ;;
19387          # The "-l" case would never come before the object being
19388          # linked, so don't bother handling this case.
19389          esac
19390        else
19391          if test -z "$postdeps_CXX"; then
19392            postdeps_CXX="${prev}${p}"
19393          else
19394            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19395          fi
19396        fi
19397        ;;
19398
19399     *.$objext)
19400        # This assumes that the test object file only shows up
19401        # once in the compiler output.
19402        if test "$p" = "conftest.$objext"; then
19403          pre_test_object_deps_done=yes
19404          continue
19405        fi
19406
19407        if test "$pre_test_object_deps_done" = no; then
19408          if test -z "$predep_objects_CXX"; then
19409            predep_objects_CXX="$p"
19410          else
19411            predep_objects_CXX="$predep_objects_CXX $p"
19412          fi
19413        else
19414          if test -z "$postdep_objects_CXX"; then
19415            postdep_objects_CXX="$p"
19416          else
19417            postdep_objects_CXX="$postdep_objects_CXX $p"
19418          fi
19419        fi
19420        ;;
19421
19422     *) ;; # Ignore the rest.
19423
19424     esac
19425   done
19426
19427   # Clean up.
19428   rm -f a.out a.exe
19429 else
19430   echo "libtool.m4: error: problem compiling CXX test program"
19431 fi
19432
19433 $rm -f confest.$objext
19434
19435 # PORTME: override above test on systems where it is broken
19436 case $host_os in
19437 interix3*)
19438   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19439   # hack all around it, let's just trust "g++" to DTRT.
19440   predep_objects_CXX=
19441   postdep_objects_CXX=
19442   postdeps_CXX=
19443   ;;
19444
19445 solaris*)
19446   case $cc_basename in
19447   CC*)
19448     # Adding this requires a known-good setup of shared libraries for
19449     # Sun compiler versions before 5.6, else PIC objects from an old
19450     # archive will be linked into the output, leading to subtle bugs.
19451     postdeps_CXX='-lCstd -lCrun'
19452     ;;
19453   esac
19454   ;;
19455 esac
19456
19457
19458 case " $postdeps_CXX " in
19459 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19460 esac
19461
19462 lt_prog_compiler_wl_CXX=
19463 lt_prog_compiler_pic_CXX=
19464 lt_prog_compiler_static_CXX=
19465
19466 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19467 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19468
19469   # C++ specific cases for pic, static, wl, etc.
19470   if test "$GXX" = yes; then
19471     lt_prog_compiler_wl_CXX='-Wl,'
19472     lt_prog_compiler_static_CXX='-static'
19473
19474     case $host_os in
19475     aix*)
19476       # All AIX code is PIC.
19477       if test "$host_cpu" = ia64; then
19478         # AIX 5 now supports IA64 processor
19479         lt_prog_compiler_static_CXX='-Bstatic'
19480       fi
19481       ;;
19482     amigaos*)
19483       # FIXME: we need at least 68020 code to build shared libraries, but
19484       # adding the `-m68020' flag to GCC prevents building anything better,
19485       # like `-m68040'.
19486       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19487       ;;
19488     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19489       # PIC is the default for these OSes.
19490       ;;
19491     mingw* | os2* | pw32*)
19492       # This hack is so that the source file can tell whether it is being
19493       # built for inclusion in a dll (and should export symbols for example).
19494       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19495       ;;
19496     darwin* | rhapsody*)
19497       # PIC is the default on this platform
19498       # Common symbols not allowed in MH_DYLIB files
19499       lt_prog_compiler_pic_CXX='-fno-common'
19500       ;;
19501     *djgpp*)
19502       # DJGPP does not support shared libraries at all
19503       lt_prog_compiler_pic_CXX=
19504       ;;
19505     interix3*)
19506       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19507       # Instead, we relocate shared libraries at runtime.
19508       ;;
19509     sysv4*MP*)
19510       if test -d /usr/nec; then
19511         lt_prog_compiler_pic_CXX=-Kconform_pic
19512       fi
19513       ;;
19514     hpux*)
19515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19516       # not for PA HP-UX.
19517       case $host_cpu in
19518       hppa*64*|ia64*)
19519         ;;
19520       *)
19521         lt_prog_compiler_pic_CXX='-fPIC'
19522         ;;
19523       esac
19524       ;;
19525     *)
19526       lt_prog_compiler_pic_CXX='-fPIC'
19527       ;;
19528     esac
19529   else
19530     case $host_os in
19531       aix4* | aix5*)
19532         # All AIX code is PIC.
19533         if test "$host_cpu" = ia64; then
19534           # AIX 5 now supports IA64 processor
19535           lt_prog_compiler_static_CXX='-Bstatic'
19536         else
19537           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19538         fi
19539         ;;
19540       chorus*)
19541         case $cc_basename in
19542         cxch68*)
19543           # Green Hills C++ Compiler
19544           # _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"
19545           ;;
19546         esac
19547         ;;
19548        darwin*)
19549          # PIC is the default on this platform
19550          # Common symbols not allowed in MH_DYLIB files
19551          case $cc_basename in
19552            xlc*)
19553            lt_prog_compiler_pic_CXX='-qnocommon'
19554            lt_prog_compiler_wl_CXX='-Wl,'
19555            ;;
19556          esac
19557        ;;
19558       dgux*)
19559         case $cc_basename in
19560           ec++*)
19561             lt_prog_compiler_pic_CXX='-KPIC'
19562             ;;
19563           ghcx*)
19564             # Green Hills C++ Compiler
19565             lt_prog_compiler_pic_CXX='-pic'
19566             ;;
19567           *)
19568             ;;
19569         esac
19570         ;;
19571       freebsd* | kfreebsd*-gnu | dragonfly*)
19572         # FreeBSD uses GNU C++
19573         ;;
19574       hpux9* | hpux10* | hpux11*)
19575         case $cc_basename in
19576           CC*)
19577             lt_prog_compiler_wl_CXX='-Wl,'
19578             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19579             if test "$host_cpu" != ia64; then
19580               lt_prog_compiler_pic_CXX='+Z'
19581             fi
19582             ;;
19583           aCC*)
19584             lt_prog_compiler_wl_CXX='-Wl,'
19585             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19586             case $host_cpu in
19587             hppa*64*|ia64*)
19588               # +Z the default
19589               ;;
19590             *)
19591               lt_prog_compiler_pic_CXX='+Z'
19592               ;;
19593             esac
19594             ;;
19595           *)
19596             ;;
19597         esac
19598         ;;
19599       interix*)
19600         # This is c89, which is MS Visual C++ (no shared libs)
19601         # Anyone wants to do a port?
19602         ;;
19603       irix5* | irix6* | nonstopux*)
19604         case $cc_basename in
19605           CC*)
19606             lt_prog_compiler_wl_CXX='-Wl,'
19607             lt_prog_compiler_static_CXX='-non_shared'
19608             # CC pic flag -KPIC is the default.
19609             ;;
19610           *)
19611             ;;
19612         esac
19613         ;;
19614       linux*)
19615         case $cc_basename in
19616           KCC*)
19617             # KAI C++ Compiler
19618             lt_prog_compiler_wl_CXX='--backend -Wl,'
19619             lt_prog_compiler_pic_CXX='-fPIC'
19620             ;;
19621           icpc* | ecpc*)
19622             # Intel C++
19623             lt_prog_compiler_wl_CXX='-Wl,'
19624             lt_prog_compiler_pic_CXX='-KPIC'
19625             lt_prog_compiler_static_CXX='-static'
19626             ;;
19627           pgCC*)
19628             # Portland Group C++ compiler.
19629             lt_prog_compiler_wl_CXX='-Wl,'
19630             lt_prog_compiler_pic_CXX='-fpic'
19631             lt_prog_compiler_static_CXX='-Bstatic'
19632             ;;
19633           cxx*)
19634             # Compaq C++
19635             # Make sure the PIC flag is empty.  It appears that all Alpha
19636             # Linux and Compaq Tru64 Unix objects are PIC.
19637             lt_prog_compiler_pic_CXX=
19638             lt_prog_compiler_static_CXX='-non_shared'
19639             ;;
19640           *)
19641             ;;
19642         esac
19643         ;;
19644       lynxos*)
19645         ;;
19646       m88k*)
19647         ;;
19648       mvs*)
19649         case $cc_basename in
19650           cxx*)
19651             lt_prog_compiler_pic_CXX='-W c,exportall'
19652             ;;
19653           *)
19654             ;;
19655         esac
19656         ;;
19657       netbsd*)
19658         ;;
19659       osf3* | osf4* | osf5*)
19660         case $cc_basename in
19661           KCC*)
19662             lt_prog_compiler_wl_CXX='--backend -Wl,'
19663             ;;
19664           RCC*)
19665             # Rational C++ 2.4.1
19666             lt_prog_compiler_pic_CXX='-pic'
19667             ;;
19668           cxx*)
19669             # Digital/Compaq C++
19670             lt_prog_compiler_wl_CXX='-Wl,'
19671             # Make sure the PIC flag is empty.  It appears that all Alpha
19672             # Linux and Compaq Tru64 Unix objects are PIC.
19673             lt_prog_compiler_pic_CXX=
19674             lt_prog_compiler_static_CXX='-non_shared'
19675             ;;
19676           *)
19677             ;;
19678         esac
19679         ;;
19680       psos*)
19681         ;;
19682       solaris*)
19683         case $cc_basename in
19684           CC*)
19685             # Sun C++ 4.2, 5.x and Centerline C++
19686             lt_prog_compiler_pic_CXX='-KPIC'
19687             lt_prog_compiler_static_CXX='-Bstatic'
19688             lt_prog_compiler_wl_CXX='-Qoption ld '
19689             ;;
19690           gcx*)
19691             # Green Hills C++ Compiler
19692             lt_prog_compiler_pic_CXX='-PIC'
19693             ;;
19694           *)
19695             ;;
19696         esac
19697         ;;
19698       sunos4*)
19699         case $cc_basename in
19700           CC*)
19701             # Sun C++ 4.x
19702             lt_prog_compiler_pic_CXX='-pic'
19703             lt_prog_compiler_static_CXX='-Bstatic'
19704             ;;
19705           lcc*)
19706             # Lucid
19707             lt_prog_compiler_pic_CXX='-pic'
19708             ;;
19709           *)
19710             ;;
19711         esac
19712         ;;
19713       tandem*)
19714         case $cc_basename in
19715           NCC*)
19716             # NonStop-UX NCC 3.20
19717             lt_prog_compiler_pic_CXX='-KPIC'
19718             ;;
19719           *)
19720             ;;
19721         esac
19722         ;;
19723       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19724         case $cc_basename in
19725           CC*)
19726             lt_prog_compiler_wl_CXX='-Wl,'
19727             lt_prog_compiler_pic_CXX='-KPIC'
19728             lt_prog_compiler_static_CXX='-Bstatic'
19729             ;;
19730         esac
19731         ;;
19732       vxworks*)
19733         ;;
19734       *)
19735         lt_prog_compiler_can_build_shared_CXX=no
19736         ;;
19737     esac
19738   fi
19739
19740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19741 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19742
19743 #
19744 # Check to make sure the PIC flag actually works.
19745 #
19746 if test -n "$lt_prog_compiler_pic_CXX"; then
19747
19748 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19750 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   lt_prog_compiler_pic_works_CXX=no
19754   ac_outfile=conftest.$ac_objext
19755    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19756    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19757    # Insert the option either (1) after the last *FLAGS variable, or
19758    # (2) before a word containing "conftest.", or (3) at the end.
19759    # Note that $ac_compile itself does not contain backslashes and begins
19760    # with a dollar sign (not a hyphen), so the echo should work correctly.
19761    # The option is referenced via a variable to avoid confusing sed.
19762    lt_compile=`echo "$ac_compile" | $SED \
19763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19765    -e 's:$: $lt_compiler_flag:'`
19766    (eval echo "\"\$as_me:19766: $lt_compile\"" >&5)
19767    (eval "$lt_compile" 2>conftest.err)
19768    ac_status=$?
19769    cat conftest.err >&5
19770    echo "$as_me:19770: \$? = $ac_status" >&5
19771    if (exit $ac_status) && test -s "$ac_outfile"; then
19772      # The compiler can only warn and ignore the option if not recognized
19773      # So say no if there are warnings other than the usual output.
19774      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19775      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19776      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19777        lt_prog_compiler_pic_works_CXX=yes
19778      fi
19779    fi
19780    $rm conftest*
19781
19782 fi
19783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19784 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19785
19786 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19787     case $lt_prog_compiler_pic_CXX in
19788      "" | " "*) ;;
19789      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19790      esac
19791 else
19792     lt_prog_compiler_pic_CXX=
19793      lt_prog_compiler_can_build_shared_CXX=no
19794 fi
19795
19796 fi
19797 case $host_os in
19798   # For platforms which do not support PIC, -DPIC is meaningless:
19799   *djgpp*)
19800     lt_prog_compiler_pic_CXX=
19801     ;;
19802   *)
19803     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19804     ;;
19805 esac
19806
19807 #
19808 # Check to make sure the static flag actually works.
19809 #
19810 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19813 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   lt_prog_compiler_static_works_CXX=no
19817    save_LDFLAGS="$LDFLAGS"
19818    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19819    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19820    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19821      # The linker can only warn and ignore the option if not recognized
19822      # So say no if there are warnings
19823      if test -s conftest.err; then
19824        # Append any errors to the config.log.
19825        cat conftest.err 1>&5
19826        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19827        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19828        if diff conftest.exp conftest.er2 >/dev/null; then
19829          lt_prog_compiler_static_works_CXX=yes
19830        fi
19831      else
19832        lt_prog_compiler_static_works_CXX=yes
19833      fi
19834    fi
19835    $rm conftest*
19836    LDFLAGS="$save_LDFLAGS"
19837
19838 fi
19839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19840 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19841
19842 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19843     :
19844 else
19845     lt_prog_compiler_static_CXX=
19846 fi
19847
19848
19849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19851 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   lt_cv_prog_compiler_c_o_CXX=no
19855    $rm -r conftest 2>/dev/null
19856    mkdir conftest
19857    cd conftest
19858    mkdir out
19859    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19860
19861    lt_compiler_flag="-o out/conftest2.$ac_objext"
19862    # Insert the option either (1) after the last *FLAGS variable, or
19863    # (2) before a word containing "conftest.", or (3) at the end.
19864    # Note that $ac_compile itself does not contain backslashes and begins
19865    # with a dollar sign (not a hyphen), so the echo should work correctly.
19866    lt_compile=`echo "$ac_compile" | $SED \
19867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19869    -e 's:$: $lt_compiler_flag:'`
19870    (eval echo "\"\$as_me:19870: $lt_compile\"" >&5)
19871    (eval "$lt_compile" 2>out/conftest.err)
19872    ac_status=$?
19873    cat out/conftest.err >&5
19874    echo "$as_me:19874: \$? = $ac_status" >&5
19875    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19876    then
19877      # The compiler can only warn and ignore the option if not recognized
19878      # So say no if there are warnings
19879      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19880      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19881      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19882        lt_cv_prog_compiler_c_o_CXX=yes
19883      fi
19884    fi
19885    chmod u+w . 2>&5
19886    $rm conftest*
19887    # SGI C++ compiler will create directory out/ii_files/ for
19888    # template instantiation
19889    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19890    $rm out/* && rmdir out
19891    cd ..
19892    rmdir conftest
19893    $rm conftest*
19894
19895 fi
19896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19898
19899
19900 hard_links="nottested"
19901 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19902   # do not overwrite the value of need_locks provided by the user
19903   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19905   hard_links=yes
19906   $rm conftest*
19907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19908   touch conftest.a
19909   ln conftest.a conftest.b 2>&5 || hard_links=no
19910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19911   { echo "$as_me:$LINENO: result: $hard_links" >&5
19912 echo "${ECHO_T}$hard_links" >&6; }
19913   if test "$hard_links" = no; then
19914     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19916     need_locks=warn
19917   fi
19918 else
19919   need_locks=no
19920 fi
19921
19922 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19924
19925   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19926   case $host_os in
19927   aix4* | aix5*)
19928     # If we're using GNU nm, then we don't want the "-C" option.
19929     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19930     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19931       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'
19932     else
19933       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'
19934     fi
19935     ;;
19936   pw32*)
19937     export_symbols_cmds_CXX="$ltdll_cmds"
19938   ;;
19939   cygwin* | mingw*)
19940     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'
19941   ;;
19942   *)
19943     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19944   ;;
19945   esac
19946
19947 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19948 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19949 test "$ld_shlibs_CXX" = no && can_build_shared=no
19950
19951 #
19952 # Do we need to explicitly link libc?
19953 #
19954 case "x$archive_cmds_need_lc_CXX" in
19955 x|xyes)
19956   # Assume -lc should be added
19957   archive_cmds_need_lc_CXX=yes
19958
19959   if test "$enable_shared" = yes && test "$GCC" = yes; then
19960     case $archive_cmds_CXX in
19961     *'~'*)
19962       # FIXME: we may have to deal with multi-command sequences.
19963       ;;
19964     '$CC '*)
19965       # Test whether the compiler implicitly links with -lc since on some
19966       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19967       # to ld, don't add -lc before -lgcc.
19968       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19969 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19970       $rm conftest*
19971       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19972
19973       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974   (eval $ac_compile) 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); } 2>conftest.err; then
19978         soname=conftest
19979         lib=conftest
19980         libobjs=conftest.$ac_objext
19981         deplibs=
19982         wl=$lt_prog_compiler_wl_CXX
19983         pic_flag=$lt_prog_compiler_pic_CXX
19984         compiler_flags=-v
19985         linker_flags=-v
19986         verstring=
19987         output_objdir=.
19988         libname=conftest
19989         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19990         allow_undefined_flag_CXX=
19991         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19992   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }
19996         then
19997           archive_cmds_need_lc_CXX=no
19998         else
19999           archive_cmds_need_lc_CXX=yes
20000         fi
20001         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20002       else
20003         cat conftest.err 1>&5
20004       fi
20005       $rm conftest*
20006       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20007 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20008       ;;
20009     esac
20010   fi
20011   ;;
20012 esac
20013
20014 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20016 library_names_spec=
20017 libname_spec='lib$name'
20018 soname_spec=
20019 shrext_cmds=".so"
20020 postinstall_cmds=
20021 postuninstall_cmds=
20022 finish_cmds=
20023 finish_eval=
20024 shlibpath_var=
20025 shlibpath_overrides_runpath=unknown
20026 version_type=none
20027 dynamic_linker="$host_os ld.so"
20028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20029 if test "$GCC" = yes; then
20030   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20031   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20032     # if the path contains ";" then we assume it to be the separator
20033     # otherwise default to the standard path separator (i.e. ":") - it is
20034     # assumed that no part of a normal pathname contains ";" but that should
20035     # okay in the real world where ";" in dirpaths is itself problematic.
20036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20037   else
20038     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20039   fi
20040 else
20041   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20042 fi
20043 need_lib_prefix=unknown
20044 hardcode_into_libs=no
20045
20046 # when you set need_version to no, make sure it does not cause -set_version
20047 # flags to be left without arguments
20048 need_version=unknown
20049
20050 case $host_os in
20051 aix3*)
20052   version_type=linux
20053   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20054   shlibpath_var=LIBPATH
20055
20056   # AIX 3 has no versioning support, so we append a major version to the name.
20057   soname_spec='${libname}${release}${shared_ext}$major'
20058   ;;
20059
20060 aix4* | aix5*)
20061   version_type=linux
20062   need_lib_prefix=no
20063   need_version=no
20064   hardcode_into_libs=yes
20065   if test "$host_cpu" = ia64; then
20066     # AIX 5 supports IA64
20067     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20068     shlibpath_var=LD_LIBRARY_PATH
20069   else
20070     # With GCC up to 2.95.x, collect2 would create an import file
20071     # for dependence libraries.  The import file would start with
20072     # the line `#! .'.  This would cause the generated library to
20073     # depend on `.', always an invalid library.  This was fixed in
20074     # development snapshots of GCC prior to 3.0.
20075     case $host_os in
20076       aix4 | aix4.[01] | aix4.[01].*)
20077       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20078            echo ' yes '
20079            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20080         :
20081       else
20082         can_build_shared=no
20083       fi
20084       ;;
20085     esac
20086     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20087     # soname into executable. Probably we can add versioning support to
20088     # collect2, so additional links can be useful in future.
20089     if test "$aix_use_runtimelinking" = yes; then
20090       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20091       # instead of lib<name>.a to let people know that these are not
20092       # typical AIX shared libraries.
20093       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094     else
20095       # We preserve .a as extension for shared libraries through AIX4.2
20096       # and later when we are not doing run time linking.
20097       library_names_spec='${libname}${release}.a $libname.a'
20098       soname_spec='${libname}${release}${shared_ext}$major'
20099     fi
20100     shlibpath_var=LIBPATH
20101   fi
20102   ;;
20103
20104 amigaos*)
20105   library_names_spec='$libname.ixlibrary $libname.a'
20106   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20107   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'
20108   ;;
20109
20110 beos*)
20111   library_names_spec='${libname}${shared_ext}'
20112   dynamic_linker="$host_os ld.so"
20113   shlibpath_var=LIBRARY_PATH
20114   ;;
20115
20116 bsdi[45]*)
20117   version_type=linux
20118   need_version=no
20119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120   soname_spec='${libname}${release}${shared_ext}$major'
20121   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20122   shlibpath_var=LD_LIBRARY_PATH
20123   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20124   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20125   # the default ld.so.conf also contains /usr/contrib/lib and
20126   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20127   # libtool to hard-code these into programs
20128   ;;
20129
20130 cygwin* | mingw* | pw32*)
20131   version_type=windows
20132   shrext_cmds=".dll"
20133   need_version=no
20134   need_lib_prefix=no
20135
20136   case $GCC,$host_os in
20137   yes,cygwin* | yes,mingw* | yes,pw32*)
20138     library_names_spec='$libname.dll.a'
20139     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20140     postinstall_cmds='base_file=`basename \${file}`~
20141       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20142       dldir=$destdir/`dirname \$dlpath`~
20143       test -d \$dldir || mkdir -p \$dldir~
20144       $install_prog $dir/$dlname \$dldir/$dlname~
20145       chmod a+x \$dldir/$dlname'
20146     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20147       dlpath=$dir/\$dldll~
20148        $rm \$dlpath'
20149     shlibpath_overrides_runpath=yes
20150
20151     case $host_os in
20152     cygwin*)
20153       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20154       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20155       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20156       ;;
20157     mingw*)
20158       # MinGW DLLs use traditional 'lib' prefix
20159       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20160       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20161       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20162         # It is most probably a Windows format PATH printed by
20163         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20164         # path with ; separators, and with drive letters. We can handle the
20165         # drive letters (cygwin fileutils understands them), so leave them,
20166         # especially as we might pass files found there to a mingw objdump,
20167         # which wouldn't understand a cygwinified path. Ahh.
20168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20169       else
20170         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20171       fi
20172       ;;
20173     pw32*)
20174       # pw32 DLLs use 'pw' prefix rather than 'lib'
20175       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20176       ;;
20177     esac
20178     ;;
20179
20180   *)
20181     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20182     ;;
20183   esac
20184   dynamic_linker='Win32 ld.exe'
20185   # FIXME: first we should search . and the directory the executable is in
20186   shlibpath_var=PATH
20187   ;;
20188
20189 darwin* | rhapsody*)
20190   dynamic_linker="$host_os dyld"
20191   version_type=darwin
20192   need_lib_prefix=no
20193   need_version=no
20194   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20195   soname_spec='${libname}${release}${major}$shared_ext'
20196   shlibpath_overrides_runpath=yes
20197   shlibpath_var=DYLD_LIBRARY_PATH
20198   shrext_cmds='.dylib'
20199   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20200   if test "$GCC" = yes; then
20201     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"`
20202   else
20203     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20204   fi
20205   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20206   ;;
20207
20208 dgux*)
20209   version_type=linux
20210   need_lib_prefix=no
20211   need_version=no
20212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20213   soname_spec='${libname}${release}${shared_ext}$major'
20214   shlibpath_var=LD_LIBRARY_PATH
20215   ;;
20216
20217 freebsd1*)
20218   dynamic_linker=no
20219   ;;
20220
20221 kfreebsd*-gnu)
20222   version_type=linux
20223   need_lib_prefix=no
20224   need_version=no
20225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20226   soname_spec='${libname}${release}${shared_ext}$major'
20227   shlibpath_var=LD_LIBRARY_PATH
20228   shlibpath_overrides_runpath=no
20229   hardcode_into_libs=yes
20230   dynamic_linker='GNU ld.so'
20231   ;;
20232
20233 freebsd* | dragonfly*)
20234   # DragonFly does not have aout.  When/if they implement a new
20235   # versioning mechanism, adjust this.
20236   if test -x /usr/bin/objformat; then
20237     objformat=`/usr/bin/objformat`
20238   else
20239     case $host_os in
20240     freebsd[123]*) objformat=aout ;;
20241     *) objformat=elf ;;
20242     esac
20243   fi
20244   version_type=freebsd-$objformat
20245   case $version_type in
20246     freebsd-elf*)
20247       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20248       need_version=no
20249       need_lib_prefix=no
20250       ;;
20251     freebsd-*)
20252       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20253       need_version=yes
20254       ;;
20255   esac
20256   shlibpath_var=LD_LIBRARY_PATH
20257   case $host_os in
20258   freebsd2*)
20259     shlibpath_overrides_runpath=yes
20260     ;;
20261   freebsd3.[01]* | freebsdelf3.[01]*)
20262     shlibpath_overrides_runpath=yes
20263     hardcode_into_libs=yes
20264     ;;
20265   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20266   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20267     shlibpath_overrides_runpath=no
20268     hardcode_into_libs=yes
20269     ;;
20270   freebsd*) # from 4.6 on
20271     shlibpath_overrides_runpath=yes
20272     hardcode_into_libs=yes
20273     ;;
20274   esac
20275   ;;
20276
20277 gnu*)
20278   version_type=linux
20279   need_lib_prefix=no
20280   need_version=no
20281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20282   soname_spec='${libname}${release}${shared_ext}$major'
20283   shlibpath_var=LD_LIBRARY_PATH
20284   hardcode_into_libs=yes
20285   ;;
20286
20287 hpux9* | hpux10* | hpux11*)
20288   # Give a soname corresponding to the major version so that dld.sl refuses to
20289   # link against other versions.
20290   version_type=sunos
20291   need_lib_prefix=no
20292   need_version=no
20293   case $host_cpu in
20294   ia64*)
20295     shrext_cmds='.so'
20296     hardcode_into_libs=yes
20297     dynamic_linker="$host_os dld.so"
20298     shlibpath_var=LD_LIBRARY_PATH
20299     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301     soname_spec='${libname}${release}${shared_ext}$major'
20302     if test "X$HPUX_IA64_MODE" = X32; then
20303       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20304     else
20305       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20306     fi
20307     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20308     ;;
20309    hppa*64*)
20310      shrext_cmds='.sl'
20311      hardcode_into_libs=yes
20312      dynamic_linker="$host_os dld.sl"
20313      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20314      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316      soname_spec='${libname}${release}${shared_ext}$major'
20317      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20318      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20319      ;;
20320    *)
20321     shrext_cmds='.sl'
20322     dynamic_linker="$host_os dld.sl"
20323     shlibpath_var=SHLIB_PATH
20324     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326     soname_spec='${libname}${release}${shared_ext}$major'
20327     ;;
20328   esac
20329   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20330   postinstall_cmds='chmod 555 $lib'
20331   ;;
20332
20333 interix3*)
20334   version_type=linux
20335   need_lib_prefix=no
20336   need_version=no
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20338   soname_spec='${libname}${release}${shared_ext}$major'
20339   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20340   shlibpath_var=LD_LIBRARY_PATH
20341   shlibpath_overrides_runpath=no
20342   hardcode_into_libs=yes
20343   ;;
20344
20345 irix5* | irix6* | nonstopux*)
20346   case $host_os in
20347     nonstopux*) version_type=nonstopux ;;
20348     *)
20349         if test "$lt_cv_prog_gnu_ld" = yes; then
20350                 version_type=linux
20351         else
20352                 version_type=irix
20353         fi ;;
20354   esac
20355   need_lib_prefix=no
20356   need_version=no
20357   soname_spec='${libname}${release}${shared_ext}$major'
20358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20359   case $host_os in
20360   irix5* | nonstopux*)
20361     libsuff= shlibsuff=
20362     ;;
20363   *)
20364     case $LD in # libtool.m4 will add one of these switches to LD
20365     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20366       libsuff= shlibsuff= libmagic=32-bit;;
20367     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20368       libsuff=32 shlibsuff=N32 libmagic=N32;;
20369     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20370       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20371     *) libsuff= shlibsuff= libmagic=never-match;;
20372     esac
20373     ;;
20374   esac
20375   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20376   shlibpath_overrides_runpath=no
20377   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20378   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20379   hardcode_into_libs=yes
20380   ;;
20381
20382 # No shared lib support for Linux oldld, aout, or coff.
20383 linux*oldld* | linux*aout* | linux*coff*)
20384   dynamic_linker=no
20385   ;;
20386
20387 # This must be Linux ELF.
20388 linux*)
20389   version_type=linux
20390   need_lib_prefix=no
20391   need_version=no
20392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393   soname_spec='${libname}${release}${shared_ext}$major'
20394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20395   shlibpath_var=LD_LIBRARY_PATH
20396   shlibpath_overrides_runpath=no
20397   # This implies no fast_install, which is unacceptable.
20398   # Some rework will be needed to allow for fast_install
20399   # before this can be enabled.
20400   hardcode_into_libs=yes
20401
20402   # Append ld.so.conf contents to the search path
20403   if test -f /etc/ld.so.conf; then
20404     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' ' '`
20405     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20406   fi
20407
20408   # We used to test for /lib/ld.so.1 and disable shared libraries on
20409   # powerpc, because MkLinux only supported shared libraries with the
20410   # GNU dynamic linker.  Since this was broken with cross compilers,
20411   # most powerpc-linux boxes support dynamic linking these days and
20412   # people can always --disable-shared, the test was removed, and we
20413   # assume the GNU/Linux dynamic linker is in use.
20414   dynamic_linker='GNU/Linux ld.so'
20415   ;;
20416
20417 knetbsd*-gnu)
20418   version_type=linux
20419   need_lib_prefix=no
20420   need_version=no
20421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20422   soname_spec='${libname}${release}${shared_ext}$major'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   shlibpath_overrides_runpath=no
20425   hardcode_into_libs=yes
20426   dynamic_linker='GNU ld.so'
20427   ;;
20428
20429 netbsd*)
20430   version_type=sunos
20431   need_lib_prefix=no
20432   need_version=no
20433   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436     dynamic_linker='NetBSD (a.out) ld.so'
20437   else
20438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439     soname_spec='${libname}${release}${shared_ext}$major'
20440     dynamic_linker='NetBSD ld.elf_so'
20441   fi
20442   shlibpath_var=LD_LIBRARY_PATH
20443   shlibpath_overrides_runpath=yes
20444   hardcode_into_libs=yes
20445   ;;
20446
20447 newsos6)
20448   version_type=linux
20449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450   shlibpath_var=LD_LIBRARY_PATH
20451   shlibpath_overrides_runpath=yes
20452   ;;
20453
20454 nto-qnx*)
20455   version_type=linux
20456   need_lib_prefix=no
20457   need_version=no
20458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20459   soname_spec='${libname}${release}${shared_ext}$major'
20460   shlibpath_var=LD_LIBRARY_PATH
20461   shlibpath_overrides_runpath=yes
20462   ;;
20463
20464 openbsd*)
20465   version_type=sunos
20466   sys_lib_dlsearch_path_spec="/usr/lib"
20467   need_lib_prefix=no
20468   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20469   case $host_os in
20470     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20471     *)                         need_version=no  ;;
20472   esac
20473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20475   shlibpath_var=LD_LIBRARY_PATH
20476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20477     case $host_os in
20478       openbsd2.[89] | openbsd2.[89].*)
20479         shlibpath_overrides_runpath=no
20480         ;;
20481       *)
20482         shlibpath_overrides_runpath=yes
20483         ;;
20484       esac
20485   else
20486     shlibpath_overrides_runpath=yes
20487   fi
20488   ;;
20489
20490 os2*)
20491   libname_spec='$name'
20492   shrext_cmds=".dll"
20493   need_lib_prefix=no
20494   library_names_spec='$libname${shared_ext} $libname.a'
20495   dynamic_linker='OS/2 ld.exe'
20496   shlibpath_var=LIBPATH
20497   ;;
20498
20499 osf3* | osf4* | osf5*)
20500   version_type=osf
20501   need_lib_prefix=no
20502   need_version=no
20503   soname_spec='${libname}${release}${shared_ext}$major'
20504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505   shlibpath_var=LD_LIBRARY_PATH
20506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20508   ;;
20509
20510 solaris*)
20511   version_type=linux
20512   need_lib_prefix=no
20513   need_version=no
20514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515   soname_spec='${libname}${release}${shared_ext}$major'
20516   shlibpath_var=LD_LIBRARY_PATH
20517   shlibpath_overrides_runpath=yes
20518   hardcode_into_libs=yes
20519   # ldd complains unless libraries are executable
20520   postinstall_cmds='chmod +x $lib'
20521   ;;
20522
20523 sunos4*)
20524   version_type=sunos
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20526   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20527   shlibpath_var=LD_LIBRARY_PATH
20528   shlibpath_overrides_runpath=yes
20529   if test "$with_gnu_ld" = yes; then
20530     need_lib_prefix=no
20531   fi
20532   need_version=yes
20533   ;;
20534
20535 sysv4 | sysv4.3*)
20536   version_type=linux
20537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538   soname_spec='${libname}${release}${shared_ext}$major'
20539   shlibpath_var=LD_LIBRARY_PATH
20540   case $host_vendor in
20541     sni)
20542       shlibpath_overrides_runpath=no
20543       need_lib_prefix=no
20544       export_dynamic_flag_spec='${wl}-Blargedynsym'
20545       runpath_var=LD_RUN_PATH
20546       ;;
20547     siemens)
20548       need_lib_prefix=no
20549       ;;
20550     motorola)
20551       need_lib_prefix=no
20552       need_version=no
20553       shlibpath_overrides_runpath=no
20554       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20555       ;;
20556   esac
20557   ;;
20558
20559 sysv4*MP*)
20560   if test -d /usr/nec ;then
20561     version_type=linux
20562     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20563     soname_spec='$libname${shared_ext}.$major'
20564     shlibpath_var=LD_LIBRARY_PATH
20565   fi
20566   ;;
20567
20568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20569   version_type=freebsd-elf
20570   need_lib_prefix=no
20571   need_version=no
20572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20573   soname_spec='${libname}${release}${shared_ext}$major'
20574   shlibpath_var=LD_LIBRARY_PATH
20575   hardcode_into_libs=yes
20576   if test "$with_gnu_ld" = yes; then
20577     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20578     shlibpath_overrides_runpath=no
20579   else
20580     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20581     shlibpath_overrides_runpath=yes
20582     case $host_os in
20583       sco3.2v5*)
20584         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20585         ;;
20586     esac
20587   fi
20588   sys_lib_dlsearch_path_spec='/usr/lib'
20589   ;;
20590
20591 uts4*)
20592   version_type=linux
20593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594   soname_spec='${libname}${release}${shared_ext}$major'
20595   shlibpath_var=LD_LIBRARY_PATH
20596   ;;
20597
20598 *)
20599   dynamic_linker=no
20600   ;;
20601 esac
20602 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20603 echo "${ECHO_T}$dynamic_linker" >&6; }
20604 test "$dynamic_linker" = no && can_build_shared=no
20605
20606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20607 if test "$GCC" = yes; then
20608   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20609 fi
20610
20611 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20613 hardcode_action_CXX=
20614 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20615    test -n "$runpath_var_CXX" || \
20616    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20617
20618   # We can hardcode non-existant directories.
20619   if test "$hardcode_direct_CXX" != no &&
20620      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20621      # have to relink, otherwise we might link with an installed library
20622      # when we should be linking with a yet-to-be-installed one
20623      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20624      test "$hardcode_minus_L_CXX" != no; then
20625     # Linking always hardcodes the temporary library directory.
20626     hardcode_action_CXX=relink
20627   else
20628     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20629     hardcode_action_CXX=immediate
20630   fi
20631 else
20632   # We cannot hardcode anything, or else we can only hardcode existing
20633   # directories.
20634   hardcode_action_CXX=unsupported
20635 fi
20636 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20637 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20638
20639 if test "$hardcode_action_CXX" = relink; then
20640   # Fast installation is not supported
20641   enable_fast_install=no
20642 elif test "$shlibpath_overrides_runpath" = yes ||
20643      test "$enable_shared" = no; then
20644   # Fast installation is not necessary
20645   enable_fast_install=needless
20646 fi
20647
20648
20649 # The else clause should only fire when bootstrapping the
20650 # libtool distribution, otherwise you forgot to ship ltmain.sh
20651 # with your package, and you will get complaints that there are
20652 # no rules to generate ltmain.sh.
20653 if test -f "$ltmain"; then
20654   # See if we are running on zsh, and set the options which allow our commands through
20655   # without removal of \ escapes.
20656   if test -n "${ZSH_VERSION+set}" ; then
20657     setopt NO_GLOB_SUBST
20658   fi
20659   # Now quote all the things that may contain metacharacters while being
20660   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20661   # variables and quote the copies for generation of the libtool script.
20662   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20663     SED SHELL STRIP \
20664     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20665     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20666     deplibs_check_method reload_flag reload_cmds need_locks \
20667     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20668     lt_cv_sys_global_symbol_to_c_name_address \
20669     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20670     old_postinstall_cmds old_postuninstall_cmds \
20671     compiler_CXX \
20672     CC_CXX \
20673     LD_CXX \
20674     lt_prog_compiler_wl_CXX \
20675     lt_prog_compiler_pic_CXX \
20676     lt_prog_compiler_static_CXX \
20677     lt_prog_compiler_no_builtin_flag_CXX \
20678     export_dynamic_flag_spec_CXX \
20679     thread_safe_flag_spec_CXX \
20680     whole_archive_flag_spec_CXX \
20681     enable_shared_with_static_runtimes_CXX \
20682     old_archive_cmds_CXX \
20683     old_archive_from_new_cmds_CXX \
20684     predep_objects_CXX \
20685     postdep_objects_CXX \
20686     predeps_CXX \
20687     postdeps_CXX \
20688     compiler_lib_search_path_CXX \
20689     archive_cmds_CXX \
20690     archive_expsym_cmds_CXX \
20691     postinstall_cmds_CXX \
20692     postuninstall_cmds_CXX \
20693     old_archive_from_expsyms_cmds_CXX \
20694     allow_undefined_flag_CXX \
20695     no_undefined_flag_CXX \
20696     export_symbols_cmds_CXX \
20697     hardcode_libdir_flag_spec_CXX \
20698     hardcode_libdir_flag_spec_ld_CXX \
20699     hardcode_libdir_separator_CXX \
20700     hardcode_automatic_CXX \
20701     module_cmds_CXX \
20702     module_expsym_cmds_CXX \
20703     lt_cv_prog_compiler_c_o_CXX \
20704     exclude_expsyms_CXX \
20705     include_expsyms_CXX; do
20706
20707     case $var in
20708     old_archive_cmds_CXX | \
20709     old_archive_from_new_cmds_CXX | \
20710     archive_cmds_CXX | \
20711     archive_expsym_cmds_CXX | \
20712     module_cmds_CXX | \
20713     module_expsym_cmds_CXX | \
20714     old_archive_from_expsyms_cmds_CXX | \
20715     export_symbols_cmds_CXX | \
20716     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20717     postinstall_cmds | postuninstall_cmds | \
20718     old_postinstall_cmds | old_postuninstall_cmds | \
20719     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20720       # Double-quote double-evaled strings.
20721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20722       ;;
20723     *)
20724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20725       ;;
20726     esac
20727   done
20728
20729   case $lt_echo in
20730   *'\$0 --fallback-echo"')
20731     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20732     ;;
20733   esac
20734
20735 cfgfile="$ofile"
20736
20737   cat <<__EOF__ >> "$cfgfile"
20738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20739
20740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20741
20742 # Shell to use when invoking shell scripts.
20743 SHELL=$lt_SHELL
20744
20745 # Whether or not to build shared libraries.
20746 build_libtool_libs=$enable_shared
20747
20748 # Whether or not to build static libraries.
20749 build_old_libs=$enable_static
20750
20751 # Whether or not to add -lc for building shared libraries.
20752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20753
20754 # Whether or not to disallow shared libs when runtime libs are static
20755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20756
20757 # Whether or not to optimize for fast installation.
20758 fast_install=$enable_fast_install
20759
20760 # The host system.
20761 host_alias=$host_alias
20762 host=$host
20763 host_os=$host_os
20764
20765 # The build system.
20766 build_alias=$build_alias
20767 build=$build
20768 build_os=$build_os
20769
20770 # An echo program that does not interpret backslashes.
20771 echo=$lt_echo
20772
20773 # The archiver.
20774 AR=$lt_AR
20775 AR_FLAGS=$lt_AR_FLAGS
20776
20777 # A C compiler.
20778 LTCC=$lt_LTCC
20779
20780 # LTCC compiler flags.
20781 LTCFLAGS=$lt_LTCFLAGS
20782
20783 # A language-specific compiler.
20784 CC=$lt_compiler_CXX
20785
20786 # Is the compiler the GNU C compiler?
20787 with_gcc=$GCC_CXX
20788
20789 # An ERE matcher.
20790 EGREP=$lt_EGREP
20791
20792 # The linker used to build libraries.
20793 LD=$lt_LD_CXX
20794
20795 # Whether we need hard or soft links.
20796 LN_S=$lt_LN_S
20797
20798 # A BSD-compatible nm program.
20799 NM=$lt_NM
20800
20801 # A symbol stripping program
20802 STRIP=$lt_STRIP
20803
20804 # Used to examine libraries when file_magic_cmd begins "file"
20805 MAGIC_CMD=$MAGIC_CMD
20806
20807 # Used on cygwin: DLL creation program.
20808 DLLTOOL="$DLLTOOL"
20809
20810 # Used on cygwin: object dumper.
20811 OBJDUMP="$OBJDUMP"
20812
20813 # Used on cygwin: assembler.
20814 AS="$AS"
20815
20816 # The name of the directory that contains temporary libtool files.
20817 objdir=$objdir
20818
20819 # How to create reloadable object files.
20820 reload_flag=$lt_reload_flag
20821 reload_cmds=$lt_reload_cmds
20822
20823 # How to pass a linker flag through the compiler.
20824 wl=$lt_lt_prog_compiler_wl_CXX
20825
20826 # Object file suffix (normally "o").
20827 objext="$ac_objext"
20828
20829 # Old archive suffix (normally "a").
20830 libext="$libext"
20831
20832 # Shared library suffix (normally ".so").
20833 shrext_cmds='$shrext_cmds'
20834
20835 # Executable file suffix (normally "").
20836 exeext="$exeext"
20837
20838 # Additional compiler flags for building library objects.
20839 pic_flag=$lt_lt_prog_compiler_pic_CXX
20840 pic_mode=$pic_mode
20841
20842 # What is the maximum length of a command?
20843 max_cmd_len=$lt_cv_sys_max_cmd_len
20844
20845 # Does compiler simultaneously support -c and -o options?
20846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20847
20848 # Must we lock files when doing compilation?
20849 need_locks=$lt_need_locks
20850
20851 # Do we need the lib prefix for modules?
20852 need_lib_prefix=$need_lib_prefix
20853
20854 # Do we need a version for libraries?
20855 need_version=$need_version
20856
20857 # Whether dlopen is supported.
20858 dlopen_support=$enable_dlopen
20859
20860 # Whether dlopen of programs is supported.
20861 dlopen_self=$enable_dlopen_self
20862
20863 # Whether dlopen of statically linked programs is supported.
20864 dlopen_self_static=$enable_dlopen_self_static
20865
20866 # Compiler flag to prevent dynamic linking.
20867 link_static_flag=$lt_lt_prog_compiler_static_CXX
20868
20869 # Compiler flag to turn off builtin functions.
20870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20871
20872 # Compiler flag to allow reflexive dlopens.
20873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20874
20875 # Compiler flag to generate shared objects directly from archives.
20876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20877
20878 # Compiler flag to generate thread-safe objects.
20879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20880
20881 # Library versioning type.
20882 version_type=$version_type
20883
20884 # Format of library name prefix.
20885 libname_spec=$lt_libname_spec
20886
20887 # List of archive names.  First name is the real one, the rest are links.
20888 # The last name is the one that the linker finds with -lNAME.
20889 library_names_spec=$lt_library_names_spec
20890
20891 # The coded name of the library, if different from the real name.
20892 soname_spec=$lt_soname_spec
20893
20894 # Commands used to build and install an old-style archive.
20895 RANLIB=$lt_RANLIB
20896 old_archive_cmds=$lt_old_archive_cmds_CXX
20897 old_postinstall_cmds=$lt_old_postinstall_cmds
20898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20899
20900 # Create an old-style archive from a shared archive.
20901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20902
20903 # Create a temporary old-style archive to link instead of a shared archive.
20904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20905
20906 # Commands used to build and install a shared archive.
20907 archive_cmds=$lt_archive_cmds_CXX
20908 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20909 postinstall_cmds=$lt_postinstall_cmds
20910 postuninstall_cmds=$lt_postuninstall_cmds
20911
20912 # Commands used to build a loadable module (assumed same as above if empty)
20913 module_cmds=$lt_module_cmds_CXX
20914 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20915
20916 # Commands to strip libraries.
20917 old_striplib=$lt_old_striplib
20918 striplib=$lt_striplib
20919
20920 # Dependencies to place before the objects being linked to create a
20921 # shared library.
20922 predep_objects=$lt_predep_objects_CXX
20923
20924 # Dependencies to place after the objects being linked to create a
20925 # shared library.
20926 postdep_objects=$lt_postdep_objects_CXX
20927
20928 # Dependencies to place before the objects being linked to create a
20929 # shared library.
20930 predeps=$lt_predeps_CXX
20931
20932 # Dependencies to place after the objects being linked to create a
20933 # shared library.
20934 postdeps=$lt_postdeps_CXX
20935
20936 # The library search path used internally by the compiler when linking
20937 # a shared library.
20938 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20939
20940 # Method to check whether dependent libraries are shared objects.
20941 deplibs_check_method=$lt_deplibs_check_method
20942
20943 # Command to use when deplibs_check_method == file_magic.
20944 file_magic_cmd=$lt_file_magic_cmd
20945
20946 # Flag that allows shared libraries with undefined symbols to be built.
20947 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20948
20949 # Flag that forces no undefined symbols.
20950 no_undefined_flag=$lt_no_undefined_flag_CXX
20951
20952 # Commands used to finish a libtool library installation in a directory.
20953 finish_cmds=$lt_finish_cmds
20954
20955 # Same as above, but a single script fragment to be evaled but not shown.
20956 finish_eval=$lt_finish_eval
20957
20958 # Take the output of nm and produce a listing of raw symbols and C names.
20959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20960
20961 # Transform the output of nm in a proper C declaration
20962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20963
20964 # Transform the output of nm in a C name address pair
20965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20966
20967 # This is the shared library runtime path variable.
20968 runpath_var=$runpath_var
20969
20970 # This is the shared library path variable.
20971 shlibpath_var=$shlibpath_var
20972
20973 # Is shlibpath searched before the hard-coded library search path?
20974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20975
20976 # How to hardcode a shared library path into an executable.
20977 hardcode_action=$hardcode_action_CXX
20978
20979 # Whether we should hardcode library paths into libraries.
20980 hardcode_into_libs=$hardcode_into_libs
20981
20982 # Flag to hardcode \$libdir into a binary during linking.
20983 # This must work even if \$libdir does not exist.
20984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20985
20986 # If ld is used when linking, flag to hardcode \$libdir into
20987 # a binary during linking. This must work even if \$libdir does
20988 # not exist.
20989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20990
20991 # Whether we need a single -rpath flag with a separated argument.
20992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20993
20994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20995 # resulting binary.
20996 hardcode_direct=$hardcode_direct_CXX
20997
20998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20999 # resulting binary.
21000 hardcode_minus_L=$hardcode_minus_L_CXX
21001
21002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21003 # the resulting binary.
21004 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21005
21006 # Set to yes if building a shared library automatically hardcodes DIR into the library
21007 # and all subsequent libraries and executables linked against it.
21008 hardcode_automatic=$hardcode_automatic_CXX
21009
21010 # Variables whose values should be saved in libtool wrapper scripts and
21011 # restored at relink time.
21012 variables_saved_for_relink="$variables_saved_for_relink"
21013
21014 # Whether libtool must link a program against all its dependency libraries.
21015 link_all_deplibs=$link_all_deplibs_CXX
21016
21017 # Compile-time system search path for libraries
21018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21019
21020 # Run-time system search path for libraries
21021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21022
21023 # Fix the shell variable \$srcfile for the compiler.
21024 fix_srcfile_path="$fix_srcfile_path_CXX"
21025
21026 # Set to yes if exported symbols are required.
21027 always_export_symbols=$always_export_symbols_CXX
21028
21029 # The commands to list exported symbols.
21030 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21031
21032 # The commands to extract the exported symbol list from a shared archive.
21033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21034
21035 # Symbols that should not be listed in the preloaded symbols.
21036 exclude_expsyms=$lt_exclude_expsyms_CXX
21037
21038 # Symbols that must always be exported.
21039 include_expsyms=$lt_include_expsyms_CXX
21040
21041 # ### END LIBTOOL TAG CONFIG: $tagname
21042
21043 __EOF__
21044
21045
21046 else
21047   # If there is no Makefile yet, we rely on a make rule to execute
21048   # `config.status --recheck' to rerun these tests and create the
21049   # libtool script then.
21050   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21051   if test -f "$ltmain_in"; then
21052     test -f Makefile && make "$ltmain"
21053   fi
21054 fi
21055
21056
21057 ac_ext=c
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063 CC=$lt_save_CC
21064 LDCXX=$LD
21065 LD=$lt_save_LD
21066 GCC=$lt_save_GCC
21067 with_gnu_ldcxx=$with_gnu_ld
21068 with_gnu_ld=$lt_save_with_gnu_ld
21069 lt_cv_path_LDCXX=$lt_cv_path_LD
21070 lt_cv_path_LD=$lt_save_path_LD
21071 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21072 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21073
21074         else
21075           tagname=""
21076         fi
21077         ;;
21078
21079       F77)
21080         if test -n "$F77" && test "X$F77" != "Xno"; then
21081
21082 ac_ext=f
21083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21086
21087
21088 archive_cmds_need_lc_F77=no
21089 allow_undefined_flag_F77=
21090 always_export_symbols_F77=no
21091 archive_expsym_cmds_F77=
21092 export_dynamic_flag_spec_F77=
21093 hardcode_direct_F77=no
21094 hardcode_libdir_flag_spec_F77=
21095 hardcode_libdir_flag_spec_ld_F77=
21096 hardcode_libdir_separator_F77=
21097 hardcode_minus_L_F77=no
21098 hardcode_automatic_F77=no
21099 module_cmds_F77=
21100 module_expsym_cmds_F77=
21101 link_all_deplibs_F77=unknown
21102 old_archive_cmds_F77=$old_archive_cmds
21103 no_undefined_flag_F77=
21104 whole_archive_flag_spec_F77=
21105 enable_shared_with_static_runtimes_F77=no
21106
21107 # Source file extension for f77 test sources.
21108 ac_ext=f
21109
21110 # Object file extension for compiled f77 test sources.
21111 objext=o
21112 objext_F77=$objext
21113
21114 # Code to be used in simple compile tests
21115 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21116
21117 # Code to be used in simple link tests
21118 lt_simple_link_test_code="      program t\n      end\n"
21119
21120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21121
21122 # If no C compiler was specified, use CC.
21123 LTCC=${LTCC-"$CC"}
21124
21125 # If no C compiler flags were specified, use CFLAGS.
21126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21127
21128 # Allow CC to be a program name with arguments.
21129 compiler=$CC
21130
21131
21132 # save warnings/boilerplate of simple test code
21133 ac_outfile=conftest.$ac_objext
21134 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21136 _lt_compiler_boilerplate=`cat conftest.err`
21137 $rm conftest*
21138
21139 ac_outfile=conftest.$ac_objext
21140 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21142 _lt_linker_boilerplate=`cat conftest.err`
21143 $rm conftest*
21144
21145
21146 # Allow CC to be a program name with arguments.
21147 lt_save_CC="$CC"
21148 CC=${F77-"f77"}
21149 compiler=$CC
21150 compiler_F77=$CC
21151 for cc_temp in $compiler""; do
21152   case $cc_temp in
21153     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21154     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21155     \-*) ;;
21156     *) break;;
21157   esac
21158 done
21159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21160
21161
21162 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21163 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21164 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21165 echo "${ECHO_T}$can_build_shared" >&6; }
21166
21167 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21168 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21169 test "$can_build_shared" = "no" && enable_shared=no
21170
21171 # On AIX, shared libraries and static libraries use the same namespace, and
21172 # are all built from PIC.
21173 case $host_os in
21174 aix3*)
21175   test "$enable_shared" = yes && enable_static=no
21176   if test -n "$RANLIB"; then
21177     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21178     postinstall_cmds='$RANLIB $lib'
21179   fi
21180   ;;
21181 aix4* | aix5*)
21182   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21183     test "$enable_shared" = yes && enable_static=no
21184   fi
21185   ;;
21186 esac
21187 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21188 echo "${ECHO_T}$enable_shared" >&6; }
21189
21190 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21191 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21192 # Make sure either enable_shared or enable_static is yes.
21193 test "$enable_shared" = yes || enable_static=yes
21194 { echo "$as_me:$LINENO: result: $enable_static" >&5
21195 echo "${ECHO_T}$enable_static" >&6; }
21196
21197 GCC_F77="$G77"
21198 LD_F77="$LD"
21199
21200 lt_prog_compiler_wl_F77=
21201 lt_prog_compiler_pic_F77=
21202 lt_prog_compiler_static_F77=
21203
21204 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21205 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21206
21207   if test "$GCC" = yes; then
21208     lt_prog_compiler_wl_F77='-Wl,'
21209     lt_prog_compiler_static_F77='-static'
21210
21211     case $host_os in
21212       aix*)
21213       # All AIX code is PIC.
21214       if test "$host_cpu" = ia64; then
21215         # AIX 5 now supports IA64 processor
21216         lt_prog_compiler_static_F77='-Bstatic'
21217       fi
21218       ;;
21219
21220     amigaos*)
21221       # FIXME: we need at least 68020 code to build shared libraries, but
21222       # adding the `-m68020' flag to GCC prevents building anything better,
21223       # like `-m68040'.
21224       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21225       ;;
21226
21227     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21228       # PIC is the default for these OSes.
21229       ;;
21230
21231     mingw* | pw32* | os2*)
21232       # This hack is so that the source file can tell whether it is being
21233       # built for inclusion in a dll (and should export symbols for example).
21234       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21235       ;;
21236
21237     darwin* | rhapsody*)
21238       # PIC is the default on this platform
21239       # Common symbols not allowed in MH_DYLIB files
21240       lt_prog_compiler_pic_F77='-fno-common'
21241       ;;
21242
21243     interix3*)
21244       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21245       # Instead, we relocate shared libraries at runtime.
21246       ;;
21247
21248     msdosdjgpp*)
21249       # Just because we use GCC doesn't mean we suddenly get shared libraries
21250       # on systems that don't support them.
21251       lt_prog_compiler_can_build_shared_F77=no
21252       enable_shared=no
21253       ;;
21254
21255     sysv4*MP*)
21256       if test -d /usr/nec; then
21257         lt_prog_compiler_pic_F77=-Kconform_pic
21258       fi
21259       ;;
21260
21261     hpux*)
21262       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21263       # not for PA HP-UX.
21264       case $host_cpu in
21265       hppa*64*|ia64*)
21266         # +Z the default
21267         ;;
21268       *)
21269         lt_prog_compiler_pic_F77='-fPIC'
21270         ;;
21271       esac
21272       ;;
21273
21274     *)
21275       lt_prog_compiler_pic_F77='-fPIC'
21276       ;;
21277     esac
21278   else
21279     # PORTME Check for flag to pass linker flags through the system compiler.
21280     case $host_os in
21281     aix*)
21282       lt_prog_compiler_wl_F77='-Wl,'
21283       if test "$host_cpu" = ia64; then
21284         # AIX 5 now supports IA64 processor
21285         lt_prog_compiler_static_F77='-Bstatic'
21286       else
21287         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21288       fi
21289       ;;
21290       darwin*)
21291         # PIC is the default on this platform
21292         # Common symbols not allowed in MH_DYLIB files
21293        case $cc_basename in
21294          xlc*)
21295          lt_prog_compiler_pic_F77='-qnocommon'
21296          lt_prog_compiler_wl_F77='-Wl,'
21297          ;;
21298        esac
21299        ;;
21300
21301     mingw* | pw32* | os2*)
21302       # This hack is so that the source file can tell whether it is being
21303       # built for inclusion in a dll (and should export symbols for example).
21304       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21305       ;;
21306
21307     hpux9* | hpux10* | hpux11*)
21308       lt_prog_compiler_wl_F77='-Wl,'
21309       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21310       # not for PA HP-UX.
21311       case $host_cpu in
21312       hppa*64*|ia64*)
21313         # +Z the default
21314         ;;
21315       *)
21316         lt_prog_compiler_pic_F77='+Z'
21317         ;;
21318       esac
21319       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21320       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21321       ;;
21322
21323     irix5* | irix6* | nonstopux*)
21324       lt_prog_compiler_wl_F77='-Wl,'
21325       # PIC (with -KPIC) is the default.
21326       lt_prog_compiler_static_F77='-non_shared'
21327       ;;
21328
21329     newsos6)
21330       lt_prog_compiler_pic_F77='-KPIC'
21331       lt_prog_compiler_static_F77='-Bstatic'
21332       ;;
21333
21334     linux*)
21335       case $cc_basename in
21336       icc* | ecc*)
21337         lt_prog_compiler_wl_F77='-Wl,'
21338         lt_prog_compiler_pic_F77='-KPIC'
21339         lt_prog_compiler_static_F77='-static'
21340         ;;
21341       pgcc* | pgf77* | pgf90* | pgf95*)
21342         # Portland Group compilers (*not* the Pentium gcc compiler,
21343         # which looks to be a dead project)
21344         lt_prog_compiler_wl_F77='-Wl,'
21345         lt_prog_compiler_pic_F77='-fpic'
21346         lt_prog_compiler_static_F77='-Bstatic'
21347         ;;
21348       ccc*)
21349         lt_prog_compiler_wl_F77='-Wl,'
21350         # All Alpha code is PIC.
21351         lt_prog_compiler_static_F77='-non_shared'
21352         ;;
21353       esac
21354       ;;
21355
21356     osf3* | osf4* | osf5*)
21357       lt_prog_compiler_wl_F77='-Wl,'
21358       # All OSF/1 code is PIC.
21359       lt_prog_compiler_static_F77='-non_shared'
21360       ;;
21361
21362     solaris*)
21363       lt_prog_compiler_pic_F77='-KPIC'
21364       lt_prog_compiler_static_F77='-Bstatic'
21365       case $cc_basename in
21366       f77* | f90* | f95*)
21367         lt_prog_compiler_wl_F77='-Qoption ld ';;
21368       *)
21369         lt_prog_compiler_wl_F77='-Wl,';;
21370       esac
21371       ;;
21372
21373     sunos4*)
21374       lt_prog_compiler_wl_F77='-Qoption ld '
21375       lt_prog_compiler_pic_F77='-PIC'
21376       lt_prog_compiler_static_F77='-Bstatic'
21377       ;;
21378
21379     sysv4 | sysv4.2uw2* | sysv4.3*)
21380       lt_prog_compiler_wl_F77='-Wl,'
21381       lt_prog_compiler_pic_F77='-KPIC'
21382       lt_prog_compiler_static_F77='-Bstatic'
21383       ;;
21384
21385     sysv4*MP*)
21386       if test -d /usr/nec ;then
21387         lt_prog_compiler_pic_F77='-Kconform_pic'
21388         lt_prog_compiler_static_F77='-Bstatic'
21389       fi
21390       ;;
21391
21392     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21393       lt_prog_compiler_wl_F77='-Wl,'
21394       lt_prog_compiler_pic_F77='-KPIC'
21395       lt_prog_compiler_static_F77='-Bstatic'
21396       ;;
21397
21398     unicos*)
21399       lt_prog_compiler_wl_F77='-Wl,'
21400       lt_prog_compiler_can_build_shared_F77=no
21401       ;;
21402
21403     uts4*)
21404       lt_prog_compiler_pic_F77='-pic'
21405       lt_prog_compiler_static_F77='-Bstatic'
21406       ;;
21407
21408     *)
21409       lt_prog_compiler_can_build_shared_F77=no
21410       ;;
21411     esac
21412   fi
21413
21414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21415 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21416
21417 #
21418 # Check to make sure the PIC flag actually works.
21419 #
21420 if test -n "$lt_prog_compiler_pic_F77"; then
21421
21422 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21424 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427   lt_prog_compiler_pic_works_F77=no
21428   ac_outfile=conftest.$ac_objext
21429    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21430    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21431    # Insert the option either (1) after the last *FLAGS variable, or
21432    # (2) before a word containing "conftest.", or (3) at the end.
21433    # Note that $ac_compile itself does not contain backslashes and begins
21434    # with a dollar sign (not a hyphen), so the echo should work correctly.
21435    # The option is referenced via a variable to avoid confusing sed.
21436    lt_compile=`echo "$ac_compile" | $SED \
21437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21439    -e 's:$: $lt_compiler_flag:'`
21440    (eval echo "\"\$as_me:21440: $lt_compile\"" >&5)
21441    (eval "$lt_compile" 2>conftest.err)
21442    ac_status=$?
21443    cat conftest.err >&5
21444    echo "$as_me:21444: \$? = $ac_status" >&5
21445    if (exit $ac_status) && test -s "$ac_outfile"; then
21446      # The compiler can only warn and ignore the option if not recognized
21447      # So say no if there are warnings other than the usual output.
21448      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21451        lt_prog_compiler_pic_works_F77=yes
21452      fi
21453    fi
21454    $rm conftest*
21455
21456 fi
21457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21458 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21459
21460 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21461     case $lt_prog_compiler_pic_F77 in
21462      "" | " "*) ;;
21463      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21464      esac
21465 else
21466     lt_prog_compiler_pic_F77=
21467      lt_prog_compiler_can_build_shared_F77=no
21468 fi
21469
21470 fi
21471 case $host_os in
21472   # For platforms which do not support PIC, -DPIC is meaningless:
21473   *djgpp*)
21474     lt_prog_compiler_pic_F77=
21475     ;;
21476   *)
21477     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21478     ;;
21479 esac
21480
21481 #
21482 # Check to make sure the static flag actually works.
21483 #
21484 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21485 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21486 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21487 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21488   echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490   lt_prog_compiler_static_works_F77=no
21491    save_LDFLAGS="$LDFLAGS"
21492    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21493    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21494    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21495      # The linker can only warn and ignore the option if not recognized
21496      # So say no if there are warnings
21497      if test -s conftest.err; then
21498        # Append any errors to the config.log.
21499        cat conftest.err 1>&5
21500        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21501        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21502        if diff conftest.exp conftest.er2 >/dev/null; then
21503          lt_prog_compiler_static_works_F77=yes
21504        fi
21505      else
21506        lt_prog_compiler_static_works_F77=yes
21507      fi
21508    fi
21509    $rm conftest*
21510    LDFLAGS="$save_LDFLAGS"
21511
21512 fi
21513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21514 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21515
21516 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21517     :
21518 else
21519     lt_prog_compiler_static_F77=
21520 fi
21521
21522
21523 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21525 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21526   echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528   lt_cv_prog_compiler_c_o_F77=no
21529    $rm -r conftest 2>/dev/null
21530    mkdir conftest
21531    cd conftest
21532    mkdir out
21533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21534
21535    lt_compiler_flag="-o out/conftest2.$ac_objext"
21536    # Insert the option either (1) after the last *FLAGS variable, or
21537    # (2) before a word containing "conftest.", or (3) at the end.
21538    # Note that $ac_compile itself does not contain backslashes and begins
21539    # with a dollar sign (not a hyphen), so the echo should work correctly.
21540    lt_compile=`echo "$ac_compile" | $SED \
21541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21543    -e 's:$: $lt_compiler_flag:'`
21544    (eval echo "\"\$as_me:21544: $lt_compile\"" >&5)
21545    (eval "$lt_compile" 2>out/conftest.err)
21546    ac_status=$?
21547    cat out/conftest.err >&5
21548    echo "$as_me:21548: \$? = $ac_status" >&5
21549    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21550    then
21551      # The compiler can only warn and ignore the option if not recognized
21552      # So say no if there are warnings
21553      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21554      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21555      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21556        lt_cv_prog_compiler_c_o_F77=yes
21557      fi
21558    fi
21559    chmod u+w . 2>&5
21560    $rm conftest*
21561    # SGI C++ compiler will create directory out/ii_files/ for
21562    # template instantiation
21563    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21564    $rm out/* && rmdir out
21565    cd ..
21566    rmdir conftest
21567    $rm conftest*
21568
21569 fi
21570 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21571 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21572
21573
21574 hard_links="nottested"
21575 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21576   # do not overwrite the value of need_locks provided by the user
21577   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21578 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21579   hard_links=yes
21580   $rm conftest*
21581   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21582   touch conftest.a
21583   ln conftest.a conftest.b 2>&5 || hard_links=no
21584   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21585   { echo "$as_me:$LINENO: result: $hard_links" >&5
21586 echo "${ECHO_T}$hard_links" >&6; }
21587   if test "$hard_links" = no; then
21588     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21589 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21590     need_locks=warn
21591   fi
21592 else
21593   need_locks=no
21594 fi
21595
21596 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21597 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21598
21599   runpath_var=
21600   allow_undefined_flag_F77=
21601   enable_shared_with_static_runtimes_F77=no
21602   archive_cmds_F77=
21603   archive_expsym_cmds_F77=
21604   old_archive_From_new_cmds_F77=
21605   old_archive_from_expsyms_cmds_F77=
21606   export_dynamic_flag_spec_F77=
21607   whole_archive_flag_spec_F77=
21608   thread_safe_flag_spec_F77=
21609   hardcode_libdir_flag_spec_F77=
21610   hardcode_libdir_flag_spec_ld_F77=
21611   hardcode_libdir_separator_F77=
21612   hardcode_direct_F77=no
21613   hardcode_minus_L_F77=no
21614   hardcode_shlibpath_var_F77=unsupported
21615   link_all_deplibs_F77=unknown
21616   hardcode_automatic_F77=no
21617   module_cmds_F77=
21618   module_expsym_cmds_F77=
21619   always_export_symbols_F77=no
21620   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21621   # include_expsyms should be a list of space-separated symbols to be *always*
21622   # included in the symbol list
21623   include_expsyms_F77=
21624   # exclude_expsyms can be an extended regexp of symbols to exclude
21625   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21626   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21627   # as well as any symbol that contains `d'.
21628   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21629   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21630   # platforms (ab)use it in PIC code, but their linkers get confused if
21631   # the symbol is explicitly referenced.  Since portable code cannot
21632   # rely on this symbol name, it's probably fine to never include it in
21633   # preloaded symbol tables.
21634   extract_expsyms_cmds=
21635   # Just being paranoid about ensuring that cc_basename is set.
21636   for cc_temp in $compiler""; do
21637   case $cc_temp in
21638     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21639     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21640     \-*) ;;
21641     *) break;;
21642   esac
21643 done
21644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21645
21646   case $host_os in
21647   cygwin* | mingw* | pw32*)
21648     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21649     # When not using gcc, we currently assume that we are using
21650     # Microsoft Visual C++.
21651     if test "$GCC" != yes; then
21652       with_gnu_ld=no
21653     fi
21654     ;;
21655   interix*)
21656     # we just hope/assume this is gcc and not c89 (= MSVC++)
21657     with_gnu_ld=yes
21658     ;;
21659   openbsd*)
21660     with_gnu_ld=no
21661     ;;
21662   esac
21663
21664   ld_shlibs_F77=yes
21665   if test "$with_gnu_ld" = yes; then
21666     # If archive_cmds runs LD, not CC, wlarc should be empty
21667     wlarc='${wl}'
21668
21669     # Set some defaults for GNU ld with shared library support. These
21670     # are reset later if shared libraries are not supported. Putting them
21671     # here allows them to be overridden if necessary.
21672     runpath_var=LD_RUN_PATH
21673     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21674     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21675     # ancient GNU ld didn't support --whole-archive et. al.
21676     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21677         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21678       else
21679         whole_archive_flag_spec_F77=
21680     fi
21681     supports_anon_versioning=no
21682     case `$LD -v 2>/dev/null` in
21683       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21684       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21685       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21686       *\ 2.11.*) ;; # other 2.11 versions
21687       *) supports_anon_versioning=yes ;;
21688     esac
21689
21690     # See if GNU ld supports shared libraries.
21691     case $host_os in
21692     aix3* | aix4* | aix5*)
21693       # On AIX/PPC, the GNU linker is very broken
21694       if test "$host_cpu" != ia64; then
21695         ld_shlibs_F77=no
21696         cat <<EOF 1>&2
21697
21698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21699 *** to be unable to reliably create shared libraries on AIX.
21700 *** Therefore, libtool is disabling shared libraries support.  If you
21701 *** really care for shared libraries, you may want to modify your PATH
21702 *** so that a non-GNU linker is found, and then restart.
21703
21704 EOF
21705       fi
21706       ;;
21707
21708     amigaos*)
21709       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)'
21710       hardcode_libdir_flag_spec_F77='-L$libdir'
21711       hardcode_minus_L_F77=yes
21712
21713       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21714       # that the semantics of dynamic libraries on AmigaOS, at least up
21715       # to version 4, is to share data among multiple programs linked
21716       # with the same dynamic library.  Since this doesn't match the
21717       # behavior of shared libraries on other platforms, we can't use
21718       # them.
21719       ld_shlibs_F77=no
21720       ;;
21721
21722     beos*)
21723       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21724         allow_undefined_flag_F77=unsupported
21725         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21726         # support --undefined.  This deserves some investigation.  FIXME
21727         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21728       else
21729         ld_shlibs_F77=no
21730       fi
21731       ;;
21732
21733     cygwin* | mingw* | pw32*)
21734       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21735       # as there is no search path for DLLs.
21736       hardcode_libdir_flag_spec_F77='-L$libdir'
21737       allow_undefined_flag_F77=unsupported
21738       always_export_symbols_F77=no
21739       enable_shared_with_static_runtimes_F77=yes
21740       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21741
21742       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21743         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21744         # If the export-symbols file already is a .def file (1st line
21745         # is EXPORTS), use it as is; otherwise, prepend...
21746         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21747           cp $export_symbols $output_objdir/$soname.def;
21748         else
21749           echo EXPORTS > $output_objdir/$soname.def;
21750           cat $export_symbols >> $output_objdir/$soname.def;
21751         fi~
21752         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21753       else
21754         ld_shlibs_F77=no
21755       fi
21756       ;;
21757
21758     interix3*)
21759       hardcode_direct_F77=no
21760       hardcode_shlibpath_var_F77=no
21761       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21762       export_dynamic_flag_spec_F77='${wl}-E'
21763       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21764       # Instead, shared libraries are loaded at an image base (0x10000000 by
21765       # default) and relocated if they conflict, which is a slow very memory
21766       # consuming and fragmenting process.  To avoid this, we pick a random,
21767       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21768       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21769       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'
21770       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'
21771       ;;
21772
21773     linux*)
21774       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21775         tmp_addflag=
21776         case $cc_basename,$host_cpu in
21777         pgcc*)                          # Portland Group C compiler
21778           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'
21779           tmp_addflag=' $pic_flag'
21780           ;;
21781         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21782           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'
21783           tmp_addflag=' $pic_flag -Mnomain' ;;
21784         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21785           tmp_addflag=' -i_dynamic' ;;
21786         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21787           tmp_addflag=' -i_dynamic -nofor_main' ;;
21788         ifc* | ifort*)                  # Intel Fortran compiler
21789           tmp_addflag=' -nofor_main' ;;
21790         esac
21791         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21792
21793         if test $supports_anon_versioning = yes; then
21794           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21795   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21796   $echo "local: *; };" >> $output_objdir/$libname.ver~
21797           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21798         fi
21799       else
21800         ld_shlibs_F77=no
21801       fi
21802       ;;
21803
21804     netbsd*)
21805       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21806         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21807         wlarc=
21808       else
21809         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21810         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21811       fi
21812       ;;
21813
21814     solaris*)
21815       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21816         ld_shlibs_F77=no
21817         cat <<EOF 1>&2
21818
21819 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21820 *** create shared libraries on Solaris systems.  Therefore, libtool
21821 *** is disabling shared libraries support.  We urge you to upgrade GNU
21822 *** binutils to release 2.9.1 or newer.  Another option is to modify
21823 *** your PATH or compiler configuration so that the native linker is
21824 *** used, and then restart.
21825
21826 EOF
21827       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21828         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21830       else
21831         ld_shlibs_F77=no
21832       fi
21833       ;;
21834
21835     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21836       case `$LD -v 2>&1` in
21837         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21838         ld_shlibs_F77=no
21839         cat <<_LT_EOF 1>&2
21840
21841 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21842 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21843 *** is disabling shared libraries support.  We urge you to upgrade GNU
21844 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21845 *** your PATH or compiler configuration so that the native linker is
21846 *** used, and then restart.
21847
21848 _LT_EOF
21849         ;;
21850         *)
21851           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21853             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21854             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21855           else
21856             ld_shlibs_F77=no
21857           fi
21858         ;;
21859       esac
21860       ;;
21861
21862     sunos4*)
21863       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21864       wlarc=
21865       hardcode_direct_F77=yes
21866       hardcode_shlibpath_var_F77=no
21867       ;;
21868
21869     *)
21870       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21871         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21872         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21873       else
21874         ld_shlibs_F77=no
21875       fi
21876       ;;
21877     esac
21878
21879     if test "$ld_shlibs_F77" = no; then
21880       runpath_var=
21881       hardcode_libdir_flag_spec_F77=
21882       export_dynamic_flag_spec_F77=
21883       whole_archive_flag_spec_F77=
21884     fi
21885   else
21886     # PORTME fill in a description of your system's linker (not GNU ld)
21887     case $host_os in
21888     aix3*)
21889       allow_undefined_flag_F77=unsupported
21890       always_export_symbols_F77=yes
21891       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'
21892       # Note: this linker hardcodes the directories in LIBPATH if there
21893       # are no directories specified by -L.
21894       hardcode_minus_L_F77=yes
21895       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21896         # Neither direct hardcoding nor static linking is supported with a
21897         # broken collect2.
21898         hardcode_direct_F77=unsupported
21899       fi
21900       ;;
21901
21902     aix4* | aix5*)
21903       if test "$host_cpu" = ia64; then
21904         # On IA64, the linker does run time linking by default, so we don't
21905         # have to do anything special.
21906         aix_use_runtimelinking=no
21907         exp_sym_flag='-Bexport'
21908         no_entry_flag=""
21909       else
21910         # If we're using GNU nm, then we don't want the "-C" option.
21911         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21912         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21913           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'
21914         else
21915           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'
21916         fi
21917         aix_use_runtimelinking=no
21918
21919         # Test if we are trying to use run time linking or normal
21920         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21921         # need to do runtime linking.
21922         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21923           for ld_flag in $LDFLAGS; do
21924           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21925             aix_use_runtimelinking=yes
21926             break
21927           fi
21928           done
21929           ;;
21930         esac
21931
21932         exp_sym_flag='-bexport'
21933         no_entry_flag='-bnoentry'
21934       fi
21935
21936       # When large executables or shared objects are built, AIX ld can
21937       # have problems creating the table of contents.  If linking a library
21938       # or program results in "error TOC overflow" add -mminimal-toc to
21939       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21940       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21941
21942       archive_cmds_F77=''
21943       hardcode_direct_F77=yes
21944       hardcode_libdir_separator_F77=':'
21945       link_all_deplibs_F77=yes
21946
21947       if test "$GCC" = yes; then
21948         case $host_os in aix4.[012]|aix4.[012].*)
21949         # We only want to do this on AIX 4.2 and lower, the check
21950         # below for broken collect2 doesn't work under 4.3+
21951           collect2name=`${CC} -print-prog-name=collect2`
21952           if test -f "$collect2name" && \
21953            strings "$collect2name" | grep resolve_lib_name >/dev/null
21954           then
21955           # We have reworked collect2
21956           hardcode_direct_F77=yes
21957           else
21958           # We have old collect2
21959           hardcode_direct_F77=unsupported
21960           # It fails to find uninstalled libraries when the uninstalled
21961           # path is not listed in the libpath.  Setting hardcode_minus_L
21962           # to unsupported forces relinking
21963           hardcode_minus_L_F77=yes
21964           hardcode_libdir_flag_spec_F77='-L$libdir'
21965           hardcode_libdir_separator_F77=
21966           fi
21967           ;;
21968         esac
21969         shared_flag='-shared'
21970         if test "$aix_use_runtimelinking" = yes; then
21971           shared_flag="$shared_flag "'${wl}-G'
21972         fi
21973       else
21974         # not using gcc
21975         if test "$host_cpu" = ia64; then
21976         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21977         # chokes on -Wl,-G. The following line is correct:
21978           shared_flag='-G'
21979         else
21980           if test "$aix_use_runtimelinking" = yes; then
21981             shared_flag='${wl}-G'
21982           else
21983             shared_flag='${wl}-bM:SRE'
21984           fi
21985         fi
21986       fi
21987
21988       # It seems that -bexpall does not export symbols beginning with
21989       # underscore (_), so it is better to generate a list of symbols to export.
21990       always_export_symbols_F77=yes
21991       if test "$aix_use_runtimelinking" = yes; then
21992         # Warning - without using the other runtime loading flags (-brtl),
21993         # -berok will link without error, but may produce a broken library.
21994         allow_undefined_flag_F77='-berok'
21995        # Determine the default libpath from the value encoded in an empty executable.
21996        cat >conftest.$ac_ext <<_ACEOF
21997       program main
21998
21999       end
22000 _ACEOF
22001 rm -f conftest.$ac_objext conftest$ac_exeext
22002 if { (ac_try="$ac_link"
22003 case "(($ac_try" in
22004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005   *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008   (eval "$ac_link") 2>conftest.er1
22009   ac_status=$?
22010   grep -v '^ *+' conftest.er1 >conftest.err
22011   rm -f conftest.er1
22012   cat conftest.err >&5
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); } &&
22015          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22016   { (case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_try") 2>&5
22022   ac_status=$?
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); }; } &&
22025          { ac_try='test -s conftest$ac_exeext'
22026   { (case "(($ac_try" in
22027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028   *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031   (eval "$ac_try") 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; }; then
22035
22036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22037 }'`
22038 # Check for a 64-bit object if we didn't find anything.
22039 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; }
22040 }'`; fi
22041 else
22042   echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22044
22045
22046 fi
22047
22048 rm -f core conftest.err conftest.$ac_objext \
22049       conftest$ac_exeext conftest.$ac_ext
22050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22051
22052        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22053         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"
22054        else
22055         if test "$host_cpu" = ia64; then
22056           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22057           allow_undefined_flag_F77="-z nodefs"
22058           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"
22059         else
22060          # Determine the default libpath from the value encoded in an empty executable.
22061          cat >conftest.$ac_ext <<_ACEOF
22062       program main
22063
22064       end
22065 _ACEOF
22066 rm -f conftest.$ac_objext conftest$ac_exeext
22067 if { (ac_try="$ac_link"
22068 case "(($ac_try" in
22069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070   *) ac_try_echo=$ac_try;;
22071 esac
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073   (eval "$ac_link") 2>conftest.er1
22074   ac_status=$?
22075   grep -v '^ *+' conftest.er1 >conftest.err
22076   rm -f conftest.er1
22077   cat conftest.err >&5
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); } &&
22080          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22081   { (case "(($ac_try" in
22082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083   *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086   (eval "$ac_try") 2>&5
22087   ac_status=$?
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); }; } &&
22090          { ac_try='test -s conftest$ac_exeext'
22091   { (case "(($ac_try" in
22092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093   *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096   (eval "$ac_try") 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; }; then
22100
22101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22102 }'`
22103 # Check for a 64-bit object if we didn't find anything.
22104 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; }
22105 }'`; fi
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110
22111 fi
22112
22113 rm -f core conftest.err conftest.$ac_objext \
22114       conftest$ac_exeext conftest.$ac_ext
22115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22116
22117          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22118           # Warning - without using the other run time loading flags,
22119           # -berok will link without error, but may produce a broken library.
22120           no_undefined_flag_F77=' ${wl}-bernotok'
22121           allow_undefined_flag_F77=' ${wl}-berok'
22122           # Exported symbols can be pulled into shared objects from archives
22123           whole_archive_flag_spec_F77='$convenience'
22124           archive_cmds_need_lc_F77=yes
22125           # This is similar to how AIX traditionally builds its shared libraries.
22126           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'
22127         fi
22128       fi
22129       ;;
22130
22131     amigaos*)
22132       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)'
22133       hardcode_libdir_flag_spec_F77='-L$libdir'
22134       hardcode_minus_L_F77=yes
22135       # see comment about different semantics on the GNU ld section
22136       ld_shlibs_F77=no
22137       ;;
22138
22139     bsdi[45]*)
22140       export_dynamic_flag_spec_F77=-rdynamic
22141       ;;
22142
22143     cygwin* | mingw* | pw32*)
22144       # When not using gcc, we currently assume that we are using
22145       # Microsoft Visual C++.
22146       # hardcode_libdir_flag_spec is actually meaningless, as there is
22147       # no search path for DLLs.
22148       hardcode_libdir_flag_spec_F77=' '
22149       allow_undefined_flag_F77=unsupported
22150       # Tell ltmain to make .lib files, not .a files.
22151       libext=lib
22152       # Tell ltmain to make .dll files, not .so files.
22153       shrext_cmds=".dll"
22154       # FIXME: Setting linknames here is a bad hack.
22155       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22156       # The linker will automatically build a .lib file if we build a DLL.
22157       old_archive_From_new_cmds_F77='true'
22158       # FIXME: Should let the user specify the lib program.
22159       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22160       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22161       enable_shared_with_static_runtimes_F77=yes
22162       ;;
22163
22164     darwin* | rhapsody*)
22165       case $host_os in
22166         rhapsody* | darwin1.[012])
22167          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22168          ;;
22169        *) # Darwin 1.3 on
22170          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22171            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22172          else
22173            case ${MACOSX_DEPLOYMENT_TARGET} in
22174              10.[012])
22175                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22176                ;;
22177              10.*)
22178                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22179                ;;
22180            esac
22181          fi
22182          ;;
22183       esac
22184       archive_cmds_need_lc_F77=no
22185       hardcode_direct_F77=no
22186       hardcode_automatic_F77=yes
22187       hardcode_shlibpath_var_F77=unsupported
22188       whole_archive_flag_spec_F77=''
22189       link_all_deplibs_F77=yes
22190     if test "$GCC" = yes ; then
22191         output_verbose_link_cmd='echo'
22192         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22193       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22194       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22195       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}'
22196       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}'
22197     else
22198       case $cc_basename in
22199         xlc*)
22200          output_verbose_link_cmd='echo'
22201          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22202          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22203           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22204          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}'
22205           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}'
22206           ;;
22207        *)
22208          ld_shlibs_F77=no
22209           ;;
22210       esac
22211     fi
22212       ;;
22213
22214     dgux*)
22215       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22216       hardcode_libdir_flag_spec_F77='-L$libdir'
22217       hardcode_shlibpath_var_F77=no
22218       ;;
22219
22220     freebsd1*)
22221       ld_shlibs_F77=no
22222       ;;
22223
22224     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22225     # support.  Future versions do this automatically, but an explicit c++rt0.o
22226     # does not break anything, and helps significantly (at the cost of a little
22227     # extra space).
22228     freebsd2.2*)
22229       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22230       hardcode_libdir_flag_spec_F77='-R$libdir'
22231       hardcode_direct_F77=yes
22232       hardcode_shlibpath_var_F77=no
22233       ;;
22234
22235     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22236     freebsd2*)
22237       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22238       hardcode_direct_F77=yes
22239       hardcode_minus_L_F77=yes
22240       hardcode_shlibpath_var_F77=no
22241       ;;
22242
22243     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22244     freebsd* | kfreebsd*-gnu | dragonfly*)
22245       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22246       hardcode_libdir_flag_spec_F77='-R$libdir'
22247       hardcode_direct_F77=yes
22248       hardcode_shlibpath_var_F77=no
22249       ;;
22250
22251     hpux9*)
22252       if test "$GCC" = yes; then
22253         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'
22254       else
22255         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'
22256       fi
22257       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22258       hardcode_libdir_separator_F77=:
22259       hardcode_direct_F77=yes
22260
22261       # hardcode_minus_L: Not really in the search PATH,
22262       # but as the default location of the library.
22263       hardcode_minus_L_F77=yes
22264       export_dynamic_flag_spec_F77='${wl}-E'
22265       ;;
22266
22267     hpux10*)
22268       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22269         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22270       else
22271         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22272       fi
22273       if test "$with_gnu_ld" = no; then
22274         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275         hardcode_libdir_separator_F77=:
22276
22277         hardcode_direct_F77=yes
22278         export_dynamic_flag_spec_F77='${wl}-E'
22279
22280         # hardcode_minus_L: Not really in the search PATH,
22281         # but as the default location of the library.
22282         hardcode_minus_L_F77=yes
22283       fi
22284       ;;
22285
22286     hpux11*)
22287       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22288         case $host_cpu in
22289         hppa*64*)
22290           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22291           ;;
22292         ia64*)
22293           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22294           ;;
22295         *)
22296           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22297           ;;
22298         esac
22299       else
22300         case $host_cpu in
22301         hppa*64*)
22302           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303           ;;
22304         ia64*)
22305           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22306           ;;
22307         *)
22308           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22309           ;;
22310         esac
22311       fi
22312       if test "$with_gnu_ld" = no; then
22313         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22314         hardcode_libdir_separator_F77=:
22315
22316         case $host_cpu in
22317         hppa*64*|ia64*)
22318           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22319           hardcode_direct_F77=no
22320           hardcode_shlibpath_var_F77=no
22321           ;;
22322         *)
22323           hardcode_direct_F77=yes
22324           export_dynamic_flag_spec_F77='${wl}-E'
22325
22326           # hardcode_minus_L: Not really in the search PATH,
22327           # but as the default location of the library.
22328           hardcode_minus_L_F77=yes
22329           ;;
22330         esac
22331       fi
22332       ;;
22333
22334     irix5* | irix6* | nonstopux*)
22335       if test "$GCC" = yes; then
22336         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'
22337       else
22338         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'
22339         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22340       fi
22341       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22342       hardcode_libdir_separator_F77=:
22343       link_all_deplibs_F77=yes
22344       ;;
22345
22346     netbsd*)
22347       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22348         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22349       else
22350         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22351       fi
22352       hardcode_libdir_flag_spec_F77='-R$libdir'
22353       hardcode_direct_F77=yes
22354       hardcode_shlibpath_var_F77=no
22355       ;;
22356
22357     newsos6)
22358       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22359       hardcode_direct_F77=yes
22360       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22361       hardcode_libdir_separator_F77=:
22362       hardcode_shlibpath_var_F77=no
22363       ;;
22364
22365     openbsd*)
22366       hardcode_direct_F77=yes
22367       hardcode_shlibpath_var_F77=no
22368       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22369         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22370         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22371         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22372         export_dynamic_flag_spec_F77='${wl}-E'
22373       else
22374        case $host_os in
22375          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22376            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22377            hardcode_libdir_flag_spec_F77='-R$libdir'
22378            ;;
22379          *)
22380            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22381            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22382            ;;
22383        esac
22384       fi
22385       ;;
22386
22387     os2*)
22388       hardcode_libdir_flag_spec_F77='-L$libdir'
22389       hardcode_minus_L_F77=yes
22390       allow_undefined_flag_F77=unsupported
22391       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'
22392       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22393       ;;
22394
22395     osf3*)
22396       if test "$GCC" = yes; then
22397         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22398         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'
22399       else
22400         allow_undefined_flag_F77=' -expect_unresolved \*'
22401         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'
22402       fi
22403       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22404       hardcode_libdir_separator_F77=:
22405       ;;
22406
22407     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22408       if test "$GCC" = yes; then
22409         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22410         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'
22411         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22412       else
22413         allow_undefined_flag_F77=' -expect_unresolved \*'
22414         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'
22415         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~
22416         $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'
22417
22418         # Both c and cxx compiler support -rpath directly
22419         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22420       fi
22421       hardcode_libdir_separator_F77=:
22422       ;;
22423
22424     solaris*)
22425       no_undefined_flag_F77=' -z text'
22426       if test "$GCC" = yes; then
22427         wlarc='${wl}'
22428         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22429         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22430           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22431       else
22432         wlarc=''
22433         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22435         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22436       fi
22437       hardcode_libdir_flag_spec_F77='-R$libdir'
22438       hardcode_shlibpath_var_F77=no
22439       case $host_os in
22440       solaris2.[0-5] | solaris2.[0-5].*) ;;
22441       *)
22442         # The compiler driver will combine linker options so we
22443         # cannot just pass the convience library names through
22444         # without $wl, iff we do not link with $LD.
22445         # Luckily, gcc supports the same syntax we need for Sun Studio.
22446         # Supported since Solaris 2.6 (maybe 2.5.1?)
22447         case $wlarc in
22448         '')
22449           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22450         *)
22451           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' ;;
22452         esac ;;
22453       esac
22454       link_all_deplibs_F77=yes
22455       ;;
22456
22457     sunos4*)
22458       if test "x$host_vendor" = xsequent; then
22459         # Use $CC to link under sequent, because it throws in some extra .o
22460         # files that make .init and .fini sections work.
22461         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22462       else
22463         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22464       fi
22465       hardcode_libdir_flag_spec_F77='-L$libdir'
22466       hardcode_direct_F77=yes
22467       hardcode_minus_L_F77=yes
22468       hardcode_shlibpath_var_F77=no
22469       ;;
22470
22471     sysv4)
22472       case $host_vendor in
22473         sni)
22474           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22475           hardcode_direct_F77=yes # is this really true???
22476         ;;
22477         siemens)
22478           ## LD is ld it makes a PLAMLIB
22479           ## CC just makes a GrossModule.
22480           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22481           reload_cmds_F77='$CC -r -o $output$reload_objs'
22482           hardcode_direct_F77=no
22483         ;;
22484         motorola)
22485           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22486           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22487         ;;
22488       esac
22489       runpath_var='LD_RUN_PATH'
22490       hardcode_shlibpath_var_F77=no
22491       ;;
22492
22493     sysv4.3*)
22494       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22495       hardcode_shlibpath_var_F77=no
22496       export_dynamic_flag_spec_F77='-Bexport'
22497       ;;
22498
22499     sysv4*MP*)
22500       if test -d /usr/nec; then
22501         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22502         hardcode_shlibpath_var_F77=no
22503         runpath_var=LD_RUN_PATH
22504         hardcode_runpath_var=yes
22505         ld_shlibs_F77=yes
22506       fi
22507       ;;
22508
22509     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22510       no_undefined_flag_F77='${wl}-z,text'
22511       archive_cmds_need_lc_F77=no
22512       hardcode_shlibpath_var_F77=no
22513       runpath_var='LD_RUN_PATH'
22514
22515       if test "$GCC" = yes; then
22516         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22517         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22518       else
22519         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22520         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22521       fi
22522       ;;
22523
22524     sysv5* | sco3.2v5* | sco5v6*)
22525       # Note: We can NOT use -z defs as we might desire, because we do not
22526       # link with -lc, and that would cause any symbols used from libc to
22527       # always be unresolved, which means just about no library would
22528       # ever link correctly.  If we're not using GNU ld we use -z text
22529       # though, which does catch some bad symbols but isn't as heavy-handed
22530       # as -z defs.
22531       no_undefined_flag_F77='${wl}-z,text'
22532       allow_undefined_flag_F77='${wl}-z,nodefs'
22533       archive_cmds_need_lc_F77=no
22534       hardcode_shlibpath_var_F77=no
22535       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22536       hardcode_libdir_separator_F77=':'
22537       link_all_deplibs_F77=yes
22538       export_dynamic_flag_spec_F77='${wl}-Bexport'
22539       runpath_var='LD_RUN_PATH'
22540
22541       if test "$GCC" = yes; then
22542         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22543         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22544       else
22545         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22546         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22547       fi
22548       ;;
22549
22550     uts4*)
22551       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22552       hardcode_libdir_flag_spec_F77='-L$libdir'
22553       hardcode_shlibpath_var_F77=no
22554       ;;
22555
22556     *)
22557       ld_shlibs_F77=no
22558       ;;
22559     esac
22560   fi
22561
22562 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22563 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22564 test "$ld_shlibs_F77" = no && can_build_shared=no
22565
22566 #
22567 # Do we need to explicitly link libc?
22568 #
22569 case "x$archive_cmds_need_lc_F77" in
22570 x|xyes)
22571   # Assume -lc should be added
22572   archive_cmds_need_lc_F77=yes
22573
22574   if test "$enable_shared" = yes && test "$GCC" = yes; then
22575     case $archive_cmds_F77 in
22576     *'~'*)
22577       # FIXME: we may have to deal with multi-command sequences.
22578       ;;
22579     '$CC '*)
22580       # Test whether the compiler implicitly links with -lc since on some
22581       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22582       # to ld, don't add -lc before -lgcc.
22583       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22584 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22585       $rm conftest*
22586       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22587
22588       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22589   (eval $ac_compile) 2>&5
22590   ac_status=$?
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); } 2>conftest.err; then
22593         soname=conftest
22594         lib=conftest
22595         libobjs=conftest.$ac_objext
22596         deplibs=
22597         wl=$lt_prog_compiler_wl_F77
22598         pic_flag=$lt_prog_compiler_pic_F77
22599         compiler_flags=-v
22600         linker_flags=-v
22601         verstring=
22602         output_objdir=.
22603         libname=conftest
22604         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22605         allow_undefined_flag_F77=
22606         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22607   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }
22611         then
22612           archive_cmds_need_lc_F77=no
22613         else
22614           archive_cmds_need_lc_F77=yes
22615         fi
22616         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22617       else
22618         cat conftest.err 1>&5
22619       fi
22620       $rm conftest*
22621       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22622 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22623       ;;
22624     esac
22625   fi
22626   ;;
22627 esac
22628
22629 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22631 library_names_spec=
22632 libname_spec='lib$name'
22633 soname_spec=
22634 shrext_cmds=".so"
22635 postinstall_cmds=
22636 postuninstall_cmds=
22637 finish_cmds=
22638 finish_eval=
22639 shlibpath_var=
22640 shlibpath_overrides_runpath=unknown
22641 version_type=none
22642 dynamic_linker="$host_os ld.so"
22643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22644 if test "$GCC" = yes; then
22645   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22646   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22647     # if the path contains ";" then we assume it to be the separator
22648     # otherwise default to the standard path separator (i.e. ":") - it is
22649     # assumed that no part of a normal pathname contains ";" but that should
22650     # okay in the real world where ";" in dirpaths is itself problematic.
22651     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22652   else
22653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22654   fi
22655 else
22656   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22657 fi
22658 need_lib_prefix=unknown
22659 hardcode_into_libs=no
22660
22661 # when you set need_version to no, make sure it does not cause -set_version
22662 # flags to be left without arguments
22663 need_version=unknown
22664
22665 case $host_os in
22666 aix3*)
22667   version_type=linux
22668   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22669   shlibpath_var=LIBPATH
22670
22671   # AIX 3 has no versioning support, so we append a major version to the name.
22672   soname_spec='${libname}${release}${shared_ext}$major'
22673   ;;
22674
22675 aix4* | aix5*)
22676   version_type=linux
22677   need_lib_prefix=no
22678   need_version=no
22679   hardcode_into_libs=yes
22680   if test "$host_cpu" = ia64; then
22681     # AIX 5 supports IA64
22682     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22683     shlibpath_var=LD_LIBRARY_PATH
22684   else
22685     # With GCC up to 2.95.x, collect2 would create an import file
22686     # for dependence libraries.  The import file would start with
22687     # the line `#! .'.  This would cause the generated library to
22688     # depend on `.', always an invalid library.  This was fixed in
22689     # development snapshots of GCC prior to 3.0.
22690     case $host_os in
22691       aix4 | aix4.[01] | aix4.[01].*)
22692       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22693            echo ' yes '
22694            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22695         :
22696       else
22697         can_build_shared=no
22698       fi
22699       ;;
22700     esac
22701     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22702     # soname into executable. Probably we can add versioning support to
22703     # collect2, so additional links can be useful in future.
22704     if test "$aix_use_runtimelinking" = yes; then
22705       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22706       # instead of lib<name>.a to let people know that these are not
22707       # typical AIX shared libraries.
22708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709     else
22710       # We preserve .a as extension for shared libraries through AIX4.2
22711       # and later when we are not doing run time linking.
22712       library_names_spec='${libname}${release}.a $libname.a'
22713       soname_spec='${libname}${release}${shared_ext}$major'
22714     fi
22715     shlibpath_var=LIBPATH
22716   fi
22717   ;;
22718
22719 amigaos*)
22720   library_names_spec='$libname.ixlibrary $libname.a'
22721   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22722   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'
22723   ;;
22724
22725 beos*)
22726   library_names_spec='${libname}${shared_ext}'
22727   dynamic_linker="$host_os ld.so"
22728   shlibpath_var=LIBRARY_PATH
22729   ;;
22730
22731 bsdi[45]*)
22732   version_type=linux
22733   need_version=no
22734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735   soname_spec='${libname}${release}${shared_ext}$major'
22736   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22737   shlibpath_var=LD_LIBRARY_PATH
22738   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22739   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22740   # the default ld.so.conf also contains /usr/contrib/lib and
22741   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22742   # libtool to hard-code these into programs
22743   ;;
22744
22745 cygwin* | mingw* | pw32*)
22746   version_type=windows
22747   shrext_cmds=".dll"
22748   need_version=no
22749   need_lib_prefix=no
22750
22751   case $GCC,$host_os in
22752   yes,cygwin* | yes,mingw* | yes,pw32*)
22753     library_names_spec='$libname.dll.a'
22754     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22755     postinstall_cmds='base_file=`basename \${file}`~
22756       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22757       dldir=$destdir/`dirname \$dlpath`~
22758       test -d \$dldir || mkdir -p \$dldir~
22759       $install_prog $dir/$dlname \$dldir/$dlname~
22760       chmod a+x \$dldir/$dlname'
22761     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22762       dlpath=$dir/\$dldll~
22763        $rm \$dlpath'
22764     shlibpath_overrides_runpath=yes
22765
22766     case $host_os in
22767     cygwin*)
22768       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22769       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22770       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22771       ;;
22772     mingw*)
22773       # MinGW DLLs use traditional 'lib' prefix
22774       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22775       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22776       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22777         # It is most probably a Windows format PATH printed by
22778         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22779         # path with ; separators, and with drive letters. We can handle the
22780         # drive letters (cygwin fileutils understands them), so leave them,
22781         # especially as we might pass files found there to a mingw objdump,
22782         # which wouldn't understand a cygwinified path. Ahh.
22783         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22784       else
22785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22786       fi
22787       ;;
22788     pw32*)
22789       # pw32 DLLs use 'pw' prefix rather than 'lib'
22790       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22791       ;;
22792     esac
22793     ;;
22794
22795   *)
22796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22797     ;;
22798   esac
22799   dynamic_linker='Win32 ld.exe'
22800   # FIXME: first we should search . and the directory the executable is in
22801   shlibpath_var=PATH
22802   ;;
22803
22804 darwin* | rhapsody*)
22805   dynamic_linker="$host_os dyld"
22806   version_type=darwin
22807   need_lib_prefix=no
22808   need_version=no
22809   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22810   soname_spec='${libname}${release}${major}$shared_ext'
22811   shlibpath_overrides_runpath=yes
22812   shlibpath_var=DYLD_LIBRARY_PATH
22813   shrext_cmds='.dylib'
22814   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22815   if test "$GCC" = yes; then
22816     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"`
22817   else
22818     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22819   fi
22820   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22821   ;;
22822
22823 dgux*)
22824   version_type=linux
22825   need_lib_prefix=no
22826   need_version=no
22827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22828   soname_spec='${libname}${release}${shared_ext}$major'
22829   shlibpath_var=LD_LIBRARY_PATH
22830   ;;
22831
22832 freebsd1*)
22833   dynamic_linker=no
22834   ;;
22835
22836 kfreebsd*-gnu)
22837   version_type=linux
22838   need_lib_prefix=no
22839   need_version=no
22840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22841   soname_spec='${libname}${release}${shared_ext}$major'
22842   shlibpath_var=LD_LIBRARY_PATH
22843   shlibpath_overrides_runpath=no
22844   hardcode_into_libs=yes
22845   dynamic_linker='GNU ld.so'
22846   ;;
22847
22848 freebsd* | dragonfly*)
22849   # DragonFly does not have aout.  When/if they implement a new
22850   # versioning mechanism, adjust this.
22851   if test -x /usr/bin/objformat; then
22852     objformat=`/usr/bin/objformat`
22853   else
22854     case $host_os in
22855     freebsd[123]*) objformat=aout ;;
22856     *) objformat=elf ;;
22857     esac
22858   fi
22859   version_type=freebsd-$objformat
22860   case $version_type in
22861     freebsd-elf*)
22862       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22863       need_version=no
22864       need_lib_prefix=no
22865       ;;
22866     freebsd-*)
22867       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22868       need_version=yes
22869       ;;
22870   esac
22871   shlibpath_var=LD_LIBRARY_PATH
22872   case $host_os in
22873   freebsd2*)
22874     shlibpath_overrides_runpath=yes
22875     ;;
22876   freebsd3.[01]* | freebsdelf3.[01]*)
22877     shlibpath_overrides_runpath=yes
22878     hardcode_into_libs=yes
22879     ;;
22880   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22881   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22882     shlibpath_overrides_runpath=no
22883     hardcode_into_libs=yes
22884     ;;
22885   freebsd*) # from 4.6 on
22886     shlibpath_overrides_runpath=yes
22887     hardcode_into_libs=yes
22888     ;;
22889   esac
22890   ;;
22891
22892 gnu*)
22893   version_type=linux
22894   need_lib_prefix=no
22895   need_version=no
22896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22897   soname_spec='${libname}${release}${shared_ext}$major'
22898   shlibpath_var=LD_LIBRARY_PATH
22899   hardcode_into_libs=yes
22900   ;;
22901
22902 hpux9* | hpux10* | hpux11*)
22903   # Give a soname corresponding to the major version so that dld.sl refuses to
22904   # link against other versions.
22905   version_type=sunos
22906   need_lib_prefix=no
22907   need_version=no
22908   case $host_cpu in
22909   ia64*)
22910     shrext_cmds='.so'
22911     hardcode_into_libs=yes
22912     dynamic_linker="$host_os dld.so"
22913     shlibpath_var=LD_LIBRARY_PATH
22914     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916     soname_spec='${libname}${release}${shared_ext}$major'
22917     if test "X$HPUX_IA64_MODE" = X32; then
22918       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22919     else
22920       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22921     fi
22922     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22923     ;;
22924    hppa*64*)
22925      shrext_cmds='.sl'
22926      hardcode_into_libs=yes
22927      dynamic_linker="$host_os dld.sl"
22928      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22929      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22931      soname_spec='${libname}${release}${shared_ext}$major'
22932      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22933      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22934      ;;
22935    *)
22936     shrext_cmds='.sl'
22937     dynamic_linker="$host_os dld.sl"
22938     shlibpath_var=SHLIB_PATH
22939     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941     soname_spec='${libname}${release}${shared_ext}$major'
22942     ;;
22943   esac
22944   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22945   postinstall_cmds='chmod 555 $lib'
22946   ;;
22947
22948 interix3*)
22949   version_type=linux
22950   need_lib_prefix=no
22951   need_version=no
22952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22953   soname_spec='${libname}${release}${shared_ext}$major'
22954   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22955   shlibpath_var=LD_LIBRARY_PATH
22956   shlibpath_overrides_runpath=no
22957   hardcode_into_libs=yes
22958   ;;
22959
22960 irix5* | irix6* | nonstopux*)
22961   case $host_os in
22962     nonstopux*) version_type=nonstopux ;;
22963     *)
22964         if test "$lt_cv_prog_gnu_ld" = yes; then
22965                 version_type=linux
22966         else
22967                 version_type=irix
22968         fi ;;
22969   esac
22970   need_lib_prefix=no
22971   need_version=no
22972   soname_spec='${libname}${release}${shared_ext}$major'
22973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22974   case $host_os in
22975   irix5* | nonstopux*)
22976     libsuff= shlibsuff=
22977     ;;
22978   *)
22979     case $LD in # libtool.m4 will add one of these switches to LD
22980     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22981       libsuff= shlibsuff= libmagic=32-bit;;
22982     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22983       libsuff=32 shlibsuff=N32 libmagic=N32;;
22984     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22985       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22986     *) libsuff= shlibsuff= libmagic=never-match;;
22987     esac
22988     ;;
22989   esac
22990   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22991   shlibpath_overrides_runpath=no
22992   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22993   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22994   hardcode_into_libs=yes
22995   ;;
22996
22997 # No shared lib support for Linux oldld, aout, or coff.
22998 linux*oldld* | linux*aout* | linux*coff*)
22999   dynamic_linker=no
23000   ;;
23001
23002 # This must be Linux ELF.
23003 linux*)
23004   version_type=linux
23005   need_lib_prefix=no
23006   need_version=no
23007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008   soname_spec='${libname}${release}${shared_ext}$major'
23009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23010   shlibpath_var=LD_LIBRARY_PATH
23011   shlibpath_overrides_runpath=no
23012   # This implies no fast_install, which is unacceptable.
23013   # Some rework will be needed to allow for fast_install
23014   # before this can be enabled.
23015   hardcode_into_libs=yes
23016
23017   # Append ld.so.conf contents to the search path
23018   if test -f /etc/ld.so.conf; then
23019     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' ' '`
23020     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23021   fi
23022
23023   # We used to test for /lib/ld.so.1 and disable shared libraries on
23024   # powerpc, because MkLinux only supported shared libraries with the
23025   # GNU dynamic linker.  Since this was broken with cross compilers,
23026   # most powerpc-linux boxes support dynamic linking these days and
23027   # people can always --disable-shared, the test was removed, and we
23028   # assume the GNU/Linux dynamic linker is in use.
23029   dynamic_linker='GNU/Linux ld.so'
23030   ;;
23031
23032 knetbsd*-gnu)
23033   version_type=linux
23034   need_lib_prefix=no
23035   need_version=no
23036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23037   soname_spec='${libname}${release}${shared_ext}$major'
23038   shlibpath_var=LD_LIBRARY_PATH
23039   shlibpath_overrides_runpath=no
23040   hardcode_into_libs=yes
23041   dynamic_linker='GNU ld.so'
23042   ;;
23043
23044 netbsd*)
23045   version_type=sunos
23046   need_lib_prefix=no
23047   need_version=no
23048   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051     dynamic_linker='NetBSD (a.out) ld.so'
23052   else
23053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23054     soname_spec='${libname}${release}${shared_ext}$major'
23055     dynamic_linker='NetBSD ld.elf_so'
23056   fi
23057   shlibpath_var=LD_LIBRARY_PATH
23058   shlibpath_overrides_runpath=yes
23059   hardcode_into_libs=yes
23060   ;;
23061
23062 newsos6)
23063   version_type=linux
23064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23065   shlibpath_var=LD_LIBRARY_PATH
23066   shlibpath_overrides_runpath=yes
23067   ;;
23068
23069 nto-qnx*)
23070   version_type=linux
23071   need_lib_prefix=no
23072   need_version=no
23073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074   soname_spec='${libname}${release}${shared_ext}$major'
23075   shlibpath_var=LD_LIBRARY_PATH
23076   shlibpath_overrides_runpath=yes
23077   ;;
23078
23079 openbsd*)
23080   version_type=sunos
23081   sys_lib_dlsearch_path_spec="/usr/lib"
23082   need_lib_prefix=no
23083   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23084   case $host_os in
23085     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23086     *)                         need_version=no  ;;
23087   esac
23088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23090   shlibpath_var=LD_LIBRARY_PATH
23091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23092     case $host_os in
23093       openbsd2.[89] | openbsd2.[89].*)
23094         shlibpath_overrides_runpath=no
23095         ;;
23096       *)
23097         shlibpath_overrides_runpath=yes
23098         ;;
23099       esac
23100   else
23101     shlibpath_overrides_runpath=yes
23102   fi
23103   ;;
23104
23105 os2*)
23106   libname_spec='$name'
23107   shrext_cmds=".dll"
23108   need_lib_prefix=no
23109   library_names_spec='$libname${shared_ext} $libname.a'
23110   dynamic_linker='OS/2 ld.exe'
23111   shlibpath_var=LIBPATH
23112   ;;
23113
23114 osf3* | osf4* | osf5*)
23115   version_type=osf
23116   need_lib_prefix=no
23117   need_version=no
23118   soname_spec='${libname}${release}${shared_ext}$major'
23119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120   shlibpath_var=LD_LIBRARY_PATH
23121   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23122   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23123   ;;
23124
23125 solaris*)
23126   version_type=linux
23127   need_lib_prefix=no
23128   need_version=no
23129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130   soname_spec='${libname}${release}${shared_ext}$major'
23131   shlibpath_var=LD_LIBRARY_PATH
23132   shlibpath_overrides_runpath=yes
23133   hardcode_into_libs=yes
23134   # ldd complains unless libraries are executable
23135   postinstall_cmds='chmod +x $lib'
23136   ;;
23137
23138 sunos4*)
23139   version_type=sunos
23140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23141   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23142   shlibpath_var=LD_LIBRARY_PATH
23143   shlibpath_overrides_runpath=yes
23144   if test "$with_gnu_ld" = yes; then
23145     need_lib_prefix=no
23146   fi
23147   need_version=yes
23148   ;;
23149
23150 sysv4 | sysv4.3*)
23151   version_type=linux
23152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23153   soname_spec='${libname}${release}${shared_ext}$major'
23154   shlibpath_var=LD_LIBRARY_PATH
23155   case $host_vendor in
23156     sni)
23157       shlibpath_overrides_runpath=no
23158       need_lib_prefix=no
23159       export_dynamic_flag_spec='${wl}-Blargedynsym'
23160       runpath_var=LD_RUN_PATH
23161       ;;
23162     siemens)
23163       need_lib_prefix=no
23164       ;;
23165     motorola)
23166       need_lib_prefix=no
23167       need_version=no
23168       shlibpath_overrides_runpath=no
23169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23170       ;;
23171   esac
23172   ;;
23173
23174 sysv4*MP*)
23175   if test -d /usr/nec ;then
23176     version_type=linux
23177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23178     soname_spec='$libname${shared_ext}.$major'
23179     shlibpath_var=LD_LIBRARY_PATH
23180   fi
23181   ;;
23182
23183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23184   version_type=freebsd-elf
23185   need_lib_prefix=no
23186   need_version=no
23187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23188   soname_spec='${libname}${release}${shared_ext}$major'
23189   shlibpath_var=LD_LIBRARY_PATH
23190   hardcode_into_libs=yes
23191   if test "$with_gnu_ld" = yes; then
23192     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23193     shlibpath_overrides_runpath=no
23194   else
23195     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23196     shlibpath_overrides_runpath=yes
23197     case $host_os in
23198       sco3.2v5*)
23199         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23200         ;;
23201     esac
23202   fi
23203   sys_lib_dlsearch_path_spec='/usr/lib'
23204   ;;
23205
23206 uts4*)
23207   version_type=linux
23208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209   soname_spec='${libname}${release}${shared_ext}$major'
23210   shlibpath_var=LD_LIBRARY_PATH
23211   ;;
23212
23213 *)
23214   dynamic_linker=no
23215   ;;
23216 esac
23217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23218 echo "${ECHO_T}$dynamic_linker" >&6; }
23219 test "$dynamic_linker" = no && can_build_shared=no
23220
23221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23222 if test "$GCC" = yes; then
23223   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23224 fi
23225
23226 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23227 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23228 hardcode_action_F77=
23229 if test -n "$hardcode_libdir_flag_spec_F77" || \
23230    test -n "$runpath_var_F77" || \
23231    test "X$hardcode_automatic_F77" = "Xyes" ; then
23232
23233   # We can hardcode non-existant directories.
23234   if test "$hardcode_direct_F77" != no &&
23235      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23236      # have to relink, otherwise we might link with an installed library
23237      # when we should be linking with a yet-to-be-installed one
23238      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23239      test "$hardcode_minus_L_F77" != no; then
23240     # Linking always hardcodes the temporary library directory.
23241     hardcode_action_F77=relink
23242   else
23243     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23244     hardcode_action_F77=immediate
23245   fi
23246 else
23247   # We cannot hardcode anything, or else we can only hardcode existing
23248   # directories.
23249   hardcode_action_F77=unsupported
23250 fi
23251 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23252 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23253
23254 if test "$hardcode_action_F77" = relink; then
23255   # Fast installation is not supported
23256   enable_fast_install=no
23257 elif test "$shlibpath_overrides_runpath" = yes ||
23258      test "$enable_shared" = no; then
23259   # Fast installation is not necessary
23260   enable_fast_install=needless
23261 fi
23262
23263
23264 # The else clause should only fire when bootstrapping the
23265 # libtool distribution, otherwise you forgot to ship ltmain.sh
23266 # with your package, and you will get complaints that there are
23267 # no rules to generate ltmain.sh.
23268 if test -f "$ltmain"; then
23269   # See if we are running on zsh, and set the options which allow our commands through
23270   # without removal of \ escapes.
23271   if test -n "${ZSH_VERSION+set}" ; then
23272     setopt NO_GLOB_SUBST
23273   fi
23274   # Now quote all the things that may contain metacharacters while being
23275   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23276   # variables and quote the copies for generation of the libtool script.
23277   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23278     SED SHELL STRIP \
23279     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23280     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23281     deplibs_check_method reload_flag reload_cmds need_locks \
23282     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23283     lt_cv_sys_global_symbol_to_c_name_address \
23284     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23285     old_postinstall_cmds old_postuninstall_cmds \
23286     compiler_F77 \
23287     CC_F77 \
23288     LD_F77 \
23289     lt_prog_compiler_wl_F77 \
23290     lt_prog_compiler_pic_F77 \
23291     lt_prog_compiler_static_F77 \
23292     lt_prog_compiler_no_builtin_flag_F77 \
23293     export_dynamic_flag_spec_F77 \
23294     thread_safe_flag_spec_F77 \
23295     whole_archive_flag_spec_F77 \
23296     enable_shared_with_static_runtimes_F77 \
23297     old_archive_cmds_F77 \
23298     old_archive_from_new_cmds_F77 \
23299     predep_objects_F77 \
23300     postdep_objects_F77 \
23301     predeps_F77 \
23302     postdeps_F77 \
23303     compiler_lib_search_path_F77 \
23304     archive_cmds_F77 \
23305     archive_expsym_cmds_F77 \
23306     postinstall_cmds_F77 \
23307     postuninstall_cmds_F77 \
23308     old_archive_from_expsyms_cmds_F77 \
23309     allow_undefined_flag_F77 \
23310     no_undefined_flag_F77 \
23311     export_symbols_cmds_F77 \
23312     hardcode_libdir_flag_spec_F77 \
23313     hardcode_libdir_flag_spec_ld_F77 \
23314     hardcode_libdir_separator_F77 \
23315     hardcode_automatic_F77 \
23316     module_cmds_F77 \
23317     module_expsym_cmds_F77 \
23318     lt_cv_prog_compiler_c_o_F77 \
23319     exclude_expsyms_F77 \
23320     include_expsyms_F77; do
23321
23322     case $var in
23323     old_archive_cmds_F77 | \
23324     old_archive_from_new_cmds_F77 | \
23325     archive_cmds_F77 | \
23326     archive_expsym_cmds_F77 | \
23327     module_cmds_F77 | \
23328     module_expsym_cmds_F77 | \
23329     old_archive_from_expsyms_cmds_F77 | \
23330     export_symbols_cmds_F77 | \
23331     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23332     postinstall_cmds | postuninstall_cmds | \
23333     old_postinstall_cmds | old_postuninstall_cmds | \
23334     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23335       # Double-quote double-evaled strings.
23336       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23337       ;;
23338     *)
23339       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23340       ;;
23341     esac
23342   done
23343
23344   case $lt_echo in
23345   *'\$0 --fallback-echo"')
23346     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23347     ;;
23348   esac
23349
23350 cfgfile="$ofile"
23351
23352   cat <<__EOF__ >> "$cfgfile"
23353 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23354
23355 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23356
23357 # Shell to use when invoking shell scripts.
23358 SHELL=$lt_SHELL
23359
23360 # Whether or not to build shared libraries.
23361 build_libtool_libs=$enable_shared
23362
23363 # Whether or not to build static libraries.
23364 build_old_libs=$enable_static
23365
23366 # Whether or not to add -lc for building shared libraries.
23367 build_libtool_need_lc=$archive_cmds_need_lc_F77
23368
23369 # Whether or not to disallow shared libs when runtime libs are static
23370 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23371
23372 # Whether or not to optimize for fast installation.
23373 fast_install=$enable_fast_install
23374
23375 # The host system.
23376 host_alias=$host_alias
23377 host=$host
23378 host_os=$host_os
23379
23380 # The build system.
23381 build_alias=$build_alias
23382 build=$build
23383 build_os=$build_os
23384
23385 # An echo program that does not interpret backslashes.
23386 echo=$lt_echo
23387
23388 # The archiver.
23389 AR=$lt_AR
23390 AR_FLAGS=$lt_AR_FLAGS
23391
23392 # A C compiler.
23393 LTCC=$lt_LTCC
23394
23395 # LTCC compiler flags.
23396 LTCFLAGS=$lt_LTCFLAGS
23397
23398 # A language-specific compiler.
23399 CC=$lt_compiler_F77
23400
23401 # Is the compiler the GNU C compiler?
23402 with_gcc=$GCC_F77
23403
23404 # An ERE matcher.
23405 EGREP=$lt_EGREP
23406
23407 # The linker used to build libraries.
23408 LD=$lt_LD_F77
23409
23410 # Whether we need hard or soft links.
23411 LN_S=$lt_LN_S
23412
23413 # A BSD-compatible nm program.
23414 NM=$lt_NM
23415
23416 # A symbol stripping program
23417 STRIP=$lt_STRIP
23418
23419 # Used to examine libraries when file_magic_cmd begins "file"
23420 MAGIC_CMD=$MAGIC_CMD
23421
23422 # Used on cygwin: DLL creation program.
23423 DLLTOOL="$DLLTOOL"
23424
23425 # Used on cygwin: object dumper.
23426 OBJDUMP="$OBJDUMP"
23427
23428 # Used on cygwin: assembler.
23429 AS="$AS"
23430
23431 # The name of the directory that contains temporary libtool files.
23432 objdir=$objdir
23433
23434 # How to create reloadable object files.
23435 reload_flag=$lt_reload_flag
23436 reload_cmds=$lt_reload_cmds
23437
23438 # How to pass a linker flag through the compiler.
23439 wl=$lt_lt_prog_compiler_wl_F77
23440
23441 # Object file suffix (normally "o").
23442 objext="$ac_objext"
23443
23444 # Old archive suffix (normally "a").
23445 libext="$libext"
23446
23447 # Shared library suffix (normally ".so").
23448 shrext_cmds='$shrext_cmds'
23449
23450 # Executable file suffix (normally "").
23451 exeext="$exeext"
23452
23453 # Additional compiler flags for building library objects.
23454 pic_flag=$lt_lt_prog_compiler_pic_F77
23455 pic_mode=$pic_mode
23456
23457 # What is the maximum length of a command?
23458 max_cmd_len=$lt_cv_sys_max_cmd_len
23459
23460 # Does compiler simultaneously support -c and -o options?
23461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23462
23463 # Must we lock files when doing compilation?
23464 need_locks=$lt_need_locks
23465
23466 # Do we need the lib prefix for modules?
23467 need_lib_prefix=$need_lib_prefix
23468
23469 # Do we need a version for libraries?
23470 need_version=$need_version
23471
23472 # Whether dlopen is supported.
23473 dlopen_support=$enable_dlopen
23474
23475 # Whether dlopen of programs is supported.
23476 dlopen_self=$enable_dlopen_self
23477
23478 # Whether dlopen of statically linked programs is supported.
23479 dlopen_self_static=$enable_dlopen_self_static
23480
23481 # Compiler flag to prevent dynamic linking.
23482 link_static_flag=$lt_lt_prog_compiler_static_F77
23483
23484 # Compiler flag to turn off builtin functions.
23485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23486
23487 # Compiler flag to allow reflexive dlopens.
23488 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23489
23490 # Compiler flag to generate shared objects directly from archives.
23491 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23492
23493 # Compiler flag to generate thread-safe objects.
23494 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23495
23496 # Library versioning type.
23497 version_type=$version_type
23498
23499 # Format of library name prefix.
23500 libname_spec=$lt_libname_spec
23501
23502 # List of archive names.  First name is the real one, the rest are links.
23503 # The last name is the one that the linker finds with -lNAME.
23504 library_names_spec=$lt_library_names_spec
23505
23506 # The coded name of the library, if different from the real name.
23507 soname_spec=$lt_soname_spec
23508
23509 # Commands used to build and install an old-style archive.
23510 RANLIB=$lt_RANLIB
23511 old_archive_cmds=$lt_old_archive_cmds_F77
23512 old_postinstall_cmds=$lt_old_postinstall_cmds
23513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23514
23515 # Create an old-style archive from a shared archive.
23516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23517
23518 # Create a temporary old-style archive to link instead of a shared archive.
23519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23520
23521 # Commands used to build and install a shared archive.
23522 archive_cmds=$lt_archive_cmds_F77
23523 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23524 postinstall_cmds=$lt_postinstall_cmds
23525 postuninstall_cmds=$lt_postuninstall_cmds
23526
23527 # Commands used to build a loadable module (assumed same as above if empty)
23528 module_cmds=$lt_module_cmds_F77
23529 module_expsym_cmds=$lt_module_expsym_cmds_F77
23530
23531 # Commands to strip libraries.
23532 old_striplib=$lt_old_striplib
23533 striplib=$lt_striplib
23534
23535 # Dependencies to place before the objects being linked to create a
23536 # shared library.
23537 predep_objects=$lt_predep_objects_F77
23538
23539 # Dependencies to place after the objects being linked to create a
23540 # shared library.
23541 postdep_objects=$lt_postdep_objects_F77
23542
23543 # Dependencies to place before the objects being linked to create a
23544 # shared library.
23545 predeps=$lt_predeps_F77
23546
23547 # Dependencies to place after the objects being linked to create a
23548 # shared library.
23549 postdeps=$lt_postdeps_F77
23550
23551 # The library search path used internally by the compiler when linking
23552 # a shared library.
23553 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23554
23555 # Method to check whether dependent libraries are shared objects.
23556 deplibs_check_method=$lt_deplibs_check_method
23557
23558 # Command to use when deplibs_check_method == file_magic.
23559 file_magic_cmd=$lt_file_magic_cmd
23560
23561 # Flag that allows shared libraries with undefined symbols to be built.
23562 allow_undefined_flag=$lt_allow_undefined_flag_F77
23563
23564 # Flag that forces no undefined symbols.
23565 no_undefined_flag=$lt_no_undefined_flag_F77
23566
23567 # Commands used to finish a libtool library installation in a directory.
23568 finish_cmds=$lt_finish_cmds
23569
23570 # Same as above, but a single script fragment to be evaled but not shown.
23571 finish_eval=$lt_finish_eval
23572
23573 # Take the output of nm and produce a listing of raw symbols and C names.
23574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23575
23576 # Transform the output of nm in a proper C declaration
23577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23578
23579 # Transform the output of nm in a C name address pair
23580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23581
23582 # This is the shared library runtime path variable.
23583 runpath_var=$runpath_var
23584
23585 # This is the shared library path variable.
23586 shlibpath_var=$shlibpath_var
23587
23588 # Is shlibpath searched before the hard-coded library search path?
23589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23590
23591 # How to hardcode a shared library path into an executable.
23592 hardcode_action=$hardcode_action_F77
23593
23594 # Whether we should hardcode library paths into libraries.
23595 hardcode_into_libs=$hardcode_into_libs
23596
23597 # Flag to hardcode \$libdir into a binary during linking.
23598 # This must work even if \$libdir does not exist.
23599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23600
23601 # If ld is used when linking, flag to hardcode \$libdir into
23602 # a binary during linking. This must work even if \$libdir does
23603 # not exist.
23604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23605
23606 # Whether we need a single -rpath flag with a separated argument.
23607 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23608
23609 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23610 # resulting binary.
23611 hardcode_direct=$hardcode_direct_F77
23612
23613 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23614 # resulting binary.
23615 hardcode_minus_L=$hardcode_minus_L_F77
23616
23617 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23618 # the resulting binary.
23619 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23620
23621 # Set to yes if building a shared library automatically hardcodes DIR into the library
23622 # and all subsequent libraries and executables linked against it.
23623 hardcode_automatic=$hardcode_automatic_F77
23624
23625 # Variables whose values should be saved in libtool wrapper scripts and
23626 # restored at relink time.
23627 variables_saved_for_relink="$variables_saved_for_relink"
23628
23629 # Whether libtool must link a program against all its dependency libraries.
23630 link_all_deplibs=$link_all_deplibs_F77
23631
23632 # Compile-time system search path for libraries
23633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23634
23635 # Run-time system search path for libraries
23636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23637
23638 # Fix the shell variable \$srcfile for the compiler.
23639 fix_srcfile_path="$fix_srcfile_path_F77"
23640
23641 # Set to yes if exported symbols are required.
23642 always_export_symbols=$always_export_symbols_F77
23643
23644 # The commands to list exported symbols.
23645 export_symbols_cmds=$lt_export_symbols_cmds_F77
23646
23647 # The commands to extract the exported symbol list from a shared archive.
23648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23649
23650 # Symbols that should not be listed in the preloaded symbols.
23651 exclude_expsyms=$lt_exclude_expsyms_F77
23652
23653 # Symbols that must always be exported.
23654 include_expsyms=$lt_include_expsyms_F77
23655
23656 # ### END LIBTOOL TAG CONFIG: $tagname
23657
23658 __EOF__
23659
23660
23661 else
23662   # If there is no Makefile yet, we rely on a make rule to execute
23663   # `config.status --recheck' to rerun these tests and create the
23664   # libtool script then.
23665   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23666   if test -f "$ltmain_in"; then
23667     test -f Makefile && make "$ltmain"
23668   fi
23669 fi
23670
23671
23672 ac_ext=c
23673 ac_cpp='$CPP $CPPFLAGS'
23674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23677
23678 CC="$lt_save_CC"
23679
23680         else
23681           tagname=""
23682         fi
23683         ;;
23684
23685       GCJ)
23686         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23687           ac_ext=c
23688 ac_cpp='$CPP $CPPFLAGS'
23689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23692
23693
23694 # Source file extension for Java test sources.
23695 ac_ext=java
23696
23697 # Object file extension for compiled Java test sources.
23698 objext=o
23699 objext_GCJ=$objext
23700
23701 # Code to be used in simple compile tests
23702 lt_simple_compile_test_code="class foo {}\n"
23703
23704 # Code to be used in simple link tests
23705 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23706
23707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23708
23709 # If no C compiler was specified, use CC.
23710 LTCC=${LTCC-"$CC"}
23711
23712 # If no C compiler flags were specified, use CFLAGS.
23713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23714
23715 # Allow CC to be a program name with arguments.
23716 compiler=$CC
23717
23718
23719 # save warnings/boilerplate of simple test code
23720 ac_outfile=conftest.$ac_objext
23721 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23722 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23723 _lt_compiler_boilerplate=`cat conftest.err`
23724 $rm conftest*
23725
23726 ac_outfile=conftest.$ac_objext
23727 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23728 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23729 _lt_linker_boilerplate=`cat conftest.err`
23730 $rm conftest*
23731
23732
23733 # Allow CC to be a program name with arguments.
23734 lt_save_CC="$CC"
23735 CC=${GCJ-"gcj"}
23736 compiler=$CC
23737 compiler_GCJ=$CC
23738 for cc_temp in $compiler""; do
23739   case $cc_temp in
23740     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23741     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23742     \-*) ;;
23743     *) break;;
23744   esac
23745 done
23746 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23747
23748
23749 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23750 archive_cmds_need_lc_GCJ=no
23751
23752 old_archive_cmds_GCJ=$old_archive_cmds
23753
23754
23755 lt_prog_compiler_no_builtin_flag_GCJ=
23756
23757 if test "$GCC" = yes; then
23758   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23759
23760
23761 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23762 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23763 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23764   echo $ECHO_N "(cached) $ECHO_C" >&6
23765 else
23766   lt_cv_prog_compiler_rtti_exceptions=no
23767   ac_outfile=conftest.$ac_objext
23768    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23769    lt_compiler_flag="-fno-rtti -fno-exceptions"
23770    # Insert the option either (1) after the last *FLAGS variable, or
23771    # (2) before a word containing "conftest.", or (3) at the end.
23772    # Note that $ac_compile itself does not contain backslashes and begins
23773    # with a dollar sign (not a hyphen), so the echo should work correctly.
23774    # The option is referenced via a variable to avoid confusing sed.
23775    lt_compile=`echo "$ac_compile" | $SED \
23776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23778    -e 's:$: $lt_compiler_flag:'`
23779    (eval echo "\"\$as_me:23779: $lt_compile\"" >&5)
23780    (eval "$lt_compile" 2>conftest.err)
23781    ac_status=$?
23782    cat conftest.err >&5
23783    echo "$as_me:23783: \$? = $ac_status" >&5
23784    if (exit $ac_status) && test -s "$ac_outfile"; then
23785      # The compiler can only warn and ignore the option if not recognized
23786      # So say no if there are warnings other than the usual output.
23787      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23790        lt_cv_prog_compiler_rtti_exceptions=yes
23791      fi
23792    fi
23793    $rm conftest*
23794
23795 fi
23796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23797 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23798
23799 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23800     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23801 else
23802     :
23803 fi
23804
23805 fi
23806
23807 lt_prog_compiler_wl_GCJ=
23808 lt_prog_compiler_pic_GCJ=
23809 lt_prog_compiler_static_GCJ=
23810
23811 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23812 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23813
23814   if test "$GCC" = yes; then
23815     lt_prog_compiler_wl_GCJ='-Wl,'
23816     lt_prog_compiler_static_GCJ='-static'
23817
23818     case $host_os in
23819       aix*)
23820       # All AIX code is PIC.
23821       if test "$host_cpu" = ia64; then
23822         # AIX 5 now supports IA64 processor
23823         lt_prog_compiler_static_GCJ='-Bstatic'
23824       fi
23825       ;;
23826
23827     amigaos*)
23828       # FIXME: we need at least 68020 code to build shared libraries, but
23829       # adding the `-m68020' flag to GCC prevents building anything better,
23830       # like `-m68040'.
23831       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23832       ;;
23833
23834     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23835       # PIC is the default for these OSes.
23836       ;;
23837
23838     mingw* | pw32* | os2*)
23839       # This hack is so that the source file can tell whether it is being
23840       # built for inclusion in a dll (and should export symbols for example).
23841       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23842       ;;
23843
23844     darwin* | rhapsody*)
23845       # PIC is the default on this platform
23846       # Common symbols not allowed in MH_DYLIB files
23847       lt_prog_compiler_pic_GCJ='-fno-common'
23848       ;;
23849
23850     interix3*)
23851       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23852       # Instead, we relocate shared libraries at runtime.
23853       ;;
23854
23855     msdosdjgpp*)
23856       # Just because we use GCC doesn't mean we suddenly get shared libraries
23857       # on systems that don't support them.
23858       lt_prog_compiler_can_build_shared_GCJ=no
23859       enable_shared=no
23860       ;;
23861
23862     sysv4*MP*)
23863       if test -d /usr/nec; then
23864         lt_prog_compiler_pic_GCJ=-Kconform_pic
23865       fi
23866       ;;
23867
23868     hpux*)
23869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23870       # not for PA HP-UX.
23871       case $host_cpu in
23872       hppa*64*|ia64*)
23873         # +Z the default
23874         ;;
23875       *)
23876         lt_prog_compiler_pic_GCJ='-fPIC'
23877         ;;
23878       esac
23879       ;;
23880
23881     *)
23882       lt_prog_compiler_pic_GCJ='-fPIC'
23883       ;;
23884     esac
23885   else
23886     # PORTME Check for flag to pass linker flags through the system compiler.
23887     case $host_os in
23888     aix*)
23889       lt_prog_compiler_wl_GCJ='-Wl,'
23890       if test "$host_cpu" = ia64; then
23891         # AIX 5 now supports IA64 processor
23892         lt_prog_compiler_static_GCJ='-Bstatic'
23893       else
23894         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23895       fi
23896       ;;
23897       darwin*)
23898         # PIC is the default on this platform
23899         # Common symbols not allowed in MH_DYLIB files
23900        case $cc_basename in
23901          xlc*)
23902          lt_prog_compiler_pic_GCJ='-qnocommon'
23903          lt_prog_compiler_wl_GCJ='-Wl,'
23904          ;;
23905        esac
23906        ;;
23907
23908     mingw* | pw32* | os2*)
23909       # This hack is so that the source file can tell whether it is being
23910       # built for inclusion in a dll (and should export symbols for example).
23911       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23912       ;;
23913
23914     hpux9* | hpux10* | hpux11*)
23915       lt_prog_compiler_wl_GCJ='-Wl,'
23916       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23917       # not for PA HP-UX.
23918       case $host_cpu in
23919       hppa*64*|ia64*)
23920         # +Z the default
23921         ;;
23922       *)
23923         lt_prog_compiler_pic_GCJ='+Z'
23924         ;;
23925       esac
23926       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23927       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23928       ;;
23929
23930     irix5* | irix6* | nonstopux*)
23931       lt_prog_compiler_wl_GCJ='-Wl,'
23932       # PIC (with -KPIC) is the default.
23933       lt_prog_compiler_static_GCJ='-non_shared'
23934       ;;
23935
23936     newsos6)
23937       lt_prog_compiler_pic_GCJ='-KPIC'
23938       lt_prog_compiler_static_GCJ='-Bstatic'
23939       ;;
23940
23941     linux*)
23942       case $cc_basename in
23943       icc* | ecc*)
23944         lt_prog_compiler_wl_GCJ='-Wl,'
23945         lt_prog_compiler_pic_GCJ='-KPIC'
23946         lt_prog_compiler_static_GCJ='-static'
23947         ;;
23948       pgcc* | pgf77* | pgf90* | pgf95*)
23949         # Portland Group compilers (*not* the Pentium gcc compiler,
23950         # which looks to be a dead project)
23951         lt_prog_compiler_wl_GCJ='-Wl,'
23952         lt_prog_compiler_pic_GCJ='-fpic'
23953         lt_prog_compiler_static_GCJ='-Bstatic'
23954         ;;
23955       ccc*)
23956         lt_prog_compiler_wl_GCJ='-Wl,'
23957         # All Alpha code is PIC.
23958         lt_prog_compiler_static_GCJ='-non_shared'
23959         ;;
23960       esac
23961       ;;
23962
23963     osf3* | osf4* | osf5*)
23964       lt_prog_compiler_wl_GCJ='-Wl,'
23965       # All OSF/1 code is PIC.
23966       lt_prog_compiler_static_GCJ='-non_shared'
23967       ;;
23968
23969     solaris*)
23970       lt_prog_compiler_pic_GCJ='-KPIC'
23971       lt_prog_compiler_static_GCJ='-Bstatic'
23972       case $cc_basename in
23973       f77* | f90* | f95*)
23974         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23975       *)
23976         lt_prog_compiler_wl_GCJ='-Wl,';;
23977       esac
23978       ;;
23979
23980     sunos4*)
23981       lt_prog_compiler_wl_GCJ='-Qoption ld '
23982       lt_prog_compiler_pic_GCJ='-PIC'
23983       lt_prog_compiler_static_GCJ='-Bstatic'
23984       ;;
23985
23986     sysv4 | sysv4.2uw2* | sysv4.3*)
23987       lt_prog_compiler_wl_GCJ='-Wl,'
23988       lt_prog_compiler_pic_GCJ='-KPIC'
23989       lt_prog_compiler_static_GCJ='-Bstatic'
23990       ;;
23991
23992     sysv4*MP*)
23993       if test -d /usr/nec ;then
23994         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23995         lt_prog_compiler_static_GCJ='-Bstatic'
23996       fi
23997       ;;
23998
23999     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24000       lt_prog_compiler_wl_GCJ='-Wl,'
24001       lt_prog_compiler_pic_GCJ='-KPIC'
24002       lt_prog_compiler_static_GCJ='-Bstatic'
24003       ;;
24004
24005     unicos*)
24006       lt_prog_compiler_wl_GCJ='-Wl,'
24007       lt_prog_compiler_can_build_shared_GCJ=no
24008       ;;
24009
24010     uts4*)
24011       lt_prog_compiler_pic_GCJ='-pic'
24012       lt_prog_compiler_static_GCJ='-Bstatic'
24013       ;;
24014
24015     *)
24016       lt_prog_compiler_can_build_shared_GCJ=no
24017       ;;
24018     esac
24019   fi
24020
24021 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24022 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24023
24024 #
24025 # Check to make sure the PIC flag actually works.
24026 #
24027 if test -n "$lt_prog_compiler_pic_GCJ"; then
24028
24029 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24030 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24031 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034   lt_prog_compiler_pic_works_GCJ=no
24035   ac_outfile=conftest.$ac_objext
24036    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24037    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24038    # Insert the option either (1) after the last *FLAGS variable, or
24039    # (2) before a word containing "conftest.", or (3) at the end.
24040    # Note that $ac_compile itself does not contain backslashes and begins
24041    # with a dollar sign (not a hyphen), so the echo should work correctly.
24042    # The option is referenced via a variable to avoid confusing sed.
24043    lt_compile=`echo "$ac_compile" | $SED \
24044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24046    -e 's:$: $lt_compiler_flag:'`
24047    (eval echo "\"\$as_me:24047: $lt_compile\"" >&5)
24048    (eval "$lt_compile" 2>conftest.err)
24049    ac_status=$?
24050    cat conftest.err >&5
24051    echo "$as_me:24051: \$? = $ac_status" >&5
24052    if (exit $ac_status) && test -s "$ac_outfile"; then
24053      # The compiler can only warn and ignore the option if not recognized
24054      # So say no if there are warnings other than the usual output.
24055      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24056      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24057      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24058        lt_prog_compiler_pic_works_GCJ=yes
24059      fi
24060    fi
24061    $rm conftest*
24062
24063 fi
24064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24065 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24066
24067 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24068     case $lt_prog_compiler_pic_GCJ in
24069      "" | " "*) ;;
24070      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24071      esac
24072 else
24073     lt_prog_compiler_pic_GCJ=
24074      lt_prog_compiler_can_build_shared_GCJ=no
24075 fi
24076
24077 fi
24078 case $host_os in
24079   # For platforms which do not support PIC, -DPIC is meaningless:
24080   *djgpp*)
24081     lt_prog_compiler_pic_GCJ=
24082     ;;
24083   *)
24084     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24085     ;;
24086 esac
24087
24088 #
24089 # Check to make sure the static flag actually works.
24090 #
24091 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24092 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24093 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24094 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24095   echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24097   lt_prog_compiler_static_works_GCJ=no
24098    save_LDFLAGS="$LDFLAGS"
24099    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24100    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24101    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24102      # The linker can only warn and ignore the option if not recognized
24103      # So say no if there are warnings
24104      if test -s conftest.err; then
24105        # Append any errors to the config.log.
24106        cat conftest.err 1>&5
24107        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24108        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24109        if diff conftest.exp conftest.er2 >/dev/null; then
24110          lt_prog_compiler_static_works_GCJ=yes
24111        fi
24112      else
24113        lt_prog_compiler_static_works_GCJ=yes
24114      fi
24115    fi
24116    $rm conftest*
24117    LDFLAGS="$save_LDFLAGS"
24118
24119 fi
24120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24121 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24122
24123 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24124     :
24125 else
24126     lt_prog_compiler_static_GCJ=
24127 fi
24128
24129
24130 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24131 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24132 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24133   echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135   lt_cv_prog_compiler_c_o_GCJ=no
24136    $rm -r conftest 2>/dev/null
24137    mkdir conftest
24138    cd conftest
24139    mkdir out
24140    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24141
24142    lt_compiler_flag="-o out/conftest2.$ac_objext"
24143    # Insert the option either (1) after the last *FLAGS variable, or
24144    # (2) before a word containing "conftest.", or (3) at the end.
24145    # Note that $ac_compile itself does not contain backslashes and begins
24146    # with a dollar sign (not a hyphen), so the echo should work correctly.
24147    lt_compile=`echo "$ac_compile" | $SED \
24148    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24149    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24150    -e 's:$: $lt_compiler_flag:'`
24151    (eval echo "\"\$as_me:24151: $lt_compile\"" >&5)
24152    (eval "$lt_compile" 2>out/conftest.err)
24153    ac_status=$?
24154    cat out/conftest.err >&5
24155    echo "$as_me:24155: \$? = $ac_status" >&5
24156    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24157    then
24158      # The compiler can only warn and ignore the option if not recognized
24159      # So say no if there are warnings
24160      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24161      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24162      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24163        lt_cv_prog_compiler_c_o_GCJ=yes
24164      fi
24165    fi
24166    chmod u+w . 2>&5
24167    $rm conftest*
24168    # SGI C++ compiler will create directory out/ii_files/ for
24169    # template instantiation
24170    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24171    $rm out/* && rmdir out
24172    cd ..
24173    rmdir conftest
24174    $rm conftest*
24175
24176 fi
24177 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24178 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24179
24180
24181 hard_links="nottested"
24182 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24183   # do not overwrite the value of need_locks provided by the user
24184   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24185 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24186   hard_links=yes
24187   $rm conftest*
24188   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24189   touch conftest.a
24190   ln conftest.a conftest.b 2>&5 || hard_links=no
24191   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24192   { echo "$as_me:$LINENO: result: $hard_links" >&5
24193 echo "${ECHO_T}$hard_links" >&6; }
24194   if test "$hard_links" = no; then
24195     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24196 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24197     need_locks=warn
24198   fi
24199 else
24200   need_locks=no
24201 fi
24202
24203 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24204 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24205
24206   runpath_var=
24207   allow_undefined_flag_GCJ=
24208   enable_shared_with_static_runtimes_GCJ=no
24209   archive_cmds_GCJ=
24210   archive_expsym_cmds_GCJ=
24211   old_archive_From_new_cmds_GCJ=
24212   old_archive_from_expsyms_cmds_GCJ=
24213   export_dynamic_flag_spec_GCJ=
24214   whole_archive_flag_spec_GCJ=
24215   thread_safe_flag_spec_GCJ=
24216   hardcode_libdir_flag_spec_GCJ=
24217   hardcode_libdir_flag_spec_ld_GCJ=
24218   hardcode_libdir_separator_GCJ=
24219   hardcode_direct_GCJ=no
24220   hardcode_minus_L_GCJ=no
24221   hardcode_shlibpath_var_GCJ=unsupported
24222   link_all_deplibs_GCJ=unknown
24223   hardcode_automatic_GCJ=no
24224   module_cmds_GCJ=
24225   module_expsym_cmds_GCJ=
24226   always_export_symbols_GCJ=no
24227   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24228   # include_expsyms should be a list of space-separated symbols to be *always*
24229   # included in the symbol list
24230   include_expsyms_GCJ=
24231   # exclude_expsyms can be an extended regexp of symbols to exclude
24232   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24233   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24234   # as well as any symbol that contains `d'.
24235   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24236   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24237   # platforms (ab)use it in PIC code, but their linkers get confused if
24238   # the symbol is explicitly referenced.  Since portable code cannot
24239   # rely on this symbol name, it's probably fine to never include it in
24240   # preloaded symbol tables.
24241   extract_expsyms_cmds=
24242   # Just being paranoid about ensuring that cc_basename is set.
24243   for cc_temp in $compiler""; do
24244   case $cc_temp in
24245     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24246     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24247     \-*) ;;
24248     *) break;;
24249   esac
24250 done
24251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24252
24253   case $host_os in
24254   cygwin* | mingw* | pw32*)
24255     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24256     # When not using gcc, we currently assume that we are using
24257     # Microsoft Visual C++.
24258     if test "$GCC" != yes; then
24259       with_gnu_ld=no
24260     fi
24261     ;;
24262   interix*)
24263     # we just hope/assume this is gcc and not c89 (= MSVC++)
24264     with_gnu_ld=yes
24265     ;;
24266   openbsd*)
24267     with_gnu_ld=no
24268     ;;
24269   esac
24270
24271   ld_shlibs_GCJ=yes
24272   if test "$with_gnu_ld" = yes; then
24273     # If archive_cmds runs LD, not CC, wlarc should be empty
24274     wlarc='${wl}'
24275
24276     # Set some defaults for GNU ld with shared library support. These
24277     # are reset later if shared libraries are not supported. Putting them
24278     # here allows them to be overridden if necessary.
24279     runpath_var=LD_RUN_PATH
24280     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24281     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24282     # ancient GNU ld didn't support --whole-archive et. al.
24283     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24284         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24285       else
24286         whole_archive_flag_spec_GCJ=
24287     fi
24288     supports_anon_versioning=no
24289     case `$LD -v 2>/dev/null` in
24290       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24291       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24292       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24293       *\ 2.11.*) ;; # other 2.11 versions
24294       *) supports_anon_versioning=yes ;;
24295     esac
24296
24297     # See if GNU ld supports shared libraries.
24298     case $host_os in
24299     aix3* | aix4* | aix5*)
24300       # On AIX/PPC, the GNU linker is very broken
24301       if test "$host_cpu" != ia64; then
24302         ld_shlibs_GCJ=no
24303         cat <<EOF 1>&2
24304
24305 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24306 *** to be unable to reliably create shared libraries on AIX.
24307 *** Therefore, libtool is disabling shared libraries support.  If you
24308 *** really care for shared libraries, you may want to modify your PATH
24309 *** so that a non-GNU linker is found, and then restart.
24310
24311 EOF
24312       fi
24313       ;;
24314
24315     amigaos*)
24316       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)'
24317       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24318       hardcode_minus_L_GCJ=yes
24319
24320       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24321       # that the semantics of dynamic libraries on AmigaOS, at least up
24322       # to version 4, is to share data among multiple programs linked
24323       # with the same dynamic library.  Since this doesn't match the
24324       # behavior of shared libraries on other platforms, we can't use
24325       # them.
24326       ld_shlibs_GCJ=no
24327       ;;
24328
24329     beos*)
24330       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24331         allow_undefined_flag_GCJ=unsupported
24332         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24333         # support --undefined.  This deserves some investigation.  FIXME
24334         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24335       else
24336         ld_shlibs_GCJ=no
24337       fi
24338       ;;
24339
24340     cygwin* | mingw* | pw32*)
24341       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24342       # as there is no search path for DLLs.
24343       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24344       allow_undefined_flag_GCJ=unsupported
24345       always_export_symbols_GCJ=no
24346       enable_shared_with_static_runtimes_GCJ=yes
24347       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24348
24349       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24350         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24351         # If the export-symbols file already is a .def file (1st line
24352         # is EXPORTS), use it as is; otherwise, prepend...
24353         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24354           cp $export_symbols $output_objdir/$soname.def;
24355         else
24356           echo EXPORTS > $output_objdir/$soname.def;
24357           cat $export_symbols >> $output_objdir/$soname.def;
24358         fi~
24359         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24360       else
24361         ld_shlibs_GCJ=no
24362       fi
24363       ;;
24364
24365     interix3*)
24366       hardcode_direct_GCJ=no
24367       hardcode_shlibpath_var_GCJ=no
24368       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24369       export_dynamic_flag_spec_GCJ='${wl}-E'
24370       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24371       # Instead, shared libraries are loaded at an image base (0x10000000 by
24372       # default) and relocated if they conflict, which is a slow very memory
24373       # consuming and fragmenting process.  To avoid this, we pick a random,
24374       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24375       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24376       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'
24377       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'
24378       ;;
24379
24380     linux*)
24381       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24382         tmp_addflag=
24383         case $cc_basename,$host_cpu in
24384         pgcc*)                          # Portland Group C compiler
24385           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'
24386           tmp_addflag=' $pic_flag'
24387           ;;
24388         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24389           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'
24390           tmp_addflag=' $pic_flag -Mnomain' ;;
24391         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24392           tmp_addflag=' -i_dynamic' ;;
24393         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24394           tmp_addflag=' -i_dynamic -nofor_main' ;;
24395         ifc* | ifort*)                  # Intel Fortran compiler
24396           tmp_addflag=' -nofor_main' ;;
24397         esac
24398         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24399
24400         if test $supports_anon_versioning = yes; then
24401           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24402   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24403   $echo "local: *; };" >> $output_objdir/$libname.ver~
24404           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24405         fi
24406       else
24407         ld_shlibs_GCJ=no
24408       fi
24409       ;;
24410
24411     netbsd*)
24412       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24413         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24414         wlarc=
24415       else
24416         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24417         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24418       fi
24419       ;;
24420
24421     solaris*)
24422       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24423         ld_shlibs_GCJ=no
24424         cat <<EOF 1>&2
24425
24426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24427 *** create shared libraries on Solaris systems.  Therefore, libtool
24428 *** is disabling shared libraries support.  We urge you to upgrade GNU
24429 *** binutils to release 2.9.1 or newer.  Another option is to modify
24430 *** your PATH or compiler configuration so that the native linker is
24431 *** used, and then restart.
24432
24433 EOF
24434       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24435         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24437       else
24438         ld_shlibs_GCJ=no
24439       fi
24440       ;;
24441
24442     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24443       case `$LD -v 2>&1` in
24444         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24445         ld_shlibs_GCJ=no
24446         cat <<_LT_EOF 1>&2
24447
24448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24449 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24450 *** is disabling shared libraries support.  We urge you to upgrade GNU
24451 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24452 *** your PATH or compiler configuration so that the native linker is
24453 *** used, and then restart.
24454
24455 _LT_EOF
24456         ;;
24457         *)
24458           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24460             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24461             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24462           else
24463             ld_shlibs_GCJ=no
24464           fi
24465         ;;
24466       esac
24467       ;;
24468
24469     sunos4*)
24470       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24471       wlarc=
24472       hardcode_direct_GCJ=yes
24473       hardcode_shlibpath_var_GCJ=no
24474       ;;
24475
24476     *)
24477       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24478         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24479         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24480       else
24481         ld_shlibs_GCJ=no
24482       fi
24483       ;;
24484     esac
24485
24486     if test "$ld_shlibs_GCJ" = no; then
24487       runpath_var=
24488       hardcode_libdir_flag_spec_GCJ=
24489       export_dynamic_flag_spec_GCJ=
24490       whole_archive_flag_spec_GCJ=
24491     fi
24492   else
24493     # PORTME fill in a description of your system's linker (not GNU ld)
24494     case $host_os in
24495     aix3*)
24496       allow_undefined_flag_GCJ=unsupported
24497       always_export_symbols_GCJ=yes
24498       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'
24499       # Note: this linker hardcodes the directories in LIBPATH if there
24500       # are no directories specified by -L.
24501       hardcode_minus_L_GCJ=yes
24502       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24503         # Neither direct hardcoding nor static linking is supported with a
24504         # broken collect2.
24505         hardcode_direct_GCJ=unsupported
24506       fi
24507       ;;
24508
24509     aix4* | aix5*)
24510       if test "$host_cpu" = ia64; then
24511         # On IA64, the linker does run time linking by default, so we don't
24512         # have to do anything special.
24513         aix_use_runtimelinking=no
24514         exp_sym_flag='-Bexport'
24515         no_entry_flag=""
24516       else
24517         # If we're using GNU nm, then we don't want the "-C" option.
24518         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24519         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24520           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'
24521         else
24522           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'
24523         fi
24524         aix_use_runtimelinking=no
24525
24526         # Test if we are trying to use run time linking or normal
24527         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24528         # need to do runtime linking.
24529         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24530           for ld_flag in $LDFLAGS; do
24531           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24532             aix_use_runtimelinking=yes
24533             break
24534           fi
24535           done
24536           ;;
24537         esac
24538
24539         exp_sym_flag='-bexport'
24540         no_entry_flag='-bnoentry'
24541       fi
24542
24543       # When large executables or shared objects are built, AIX ld can
24544       # have problems creating the table of contents.  If linking a library
24545       # or program results in "error TOC overflow" add -mminimal-toc to
24546       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24547       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24548
24549       archive_cmds_GCJ=''
24550       hardcode_direct_GCJ=yes
24551       hardcode_libdir_separator_GCJ=':'
24552       link_all_deplibs_GCJ=yes
24553
24554       if test "$GCC" = yes; then
24555         case $host_os in aix4.[012]|aix4.[012].*)
24556         # We only want to do this on AIX 4.2 and lower, the check
24557         # below for broken collect2 doesn't work under 4.3+
24558           collect2name=`${CC} -print-prog-name=collect2`
24559           if test -f "$collect2name" && \
24560            strings "$collect2name" | grep resolve_lib_name >/dev/null
24561           then
24562           # We have reworked collect2
24563           hardcode_direct_GCJ=yes
24564           else
24565           # We have old collect2
24566           hardcode_direct_GCJ=unsupported
24567           # It fails to find uninstalled libraries when the uninstalled
24568           # path is not listed in the libpath.  Setting hardcode_minus_L
24569           # to unsupported forces relinking
24570           hardcode_minus_L_GCJ=yes
24571           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24572           hardcode_libdir_separator_GCJ=
24573           fi
24574           ;;
24575         esac
24576         shared_flag='-shared'
24577         if test "$aix_use_runtimelinking" = yes; then
24578           shared_flag="$shared_flag "'${wl}-G'
24579         fi
24580       else
24581         # not using gcc
24582         if test "$host_cpu" = ia64; then
24583         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24584         # chokes on -Wl,-G. The following line is correct:
24585           shared_flag='-G'
24586         else
24587           if test "$aix_use_runtimelinking" = yes; then
24588             shared_flag='${wl}-G'
24589           else
24590             shared_flag='${wl}-bM:SRE'
24591           fi
24592         fi
24593       fi
24594
24595       # It seems that -bexpall does not export symbols beginning with
24596       # underscore (_), so it is better to generate a list of symbols to export.
24597       always_export_symbols_GCJ=yes
24598       if test "$aix_use_runtimelinking" = yes; then
24599         # Warning - without using the other runtime loading flags (-brtl),
24600         # -berok will link without error, but may produce a broken library.
24601         allow_undefined_flag_GCJ='-berok'
24602        # Determine the default libpath from the value encoded in an empty executable.
24603        cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609
24610 int
24611 main ()
24612 {
24613
24614   ;
24615   return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (ac_try="$ac_link"
24620 case "(($ac_try" in
24621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622   *) ac_try_echo=$ac_try;;
24623 esac
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625   (eval "$ac_link") 2>conftest.er1
24626   ac_status=$?
24627   grep -v '^ *+' conftest.er1 >conftest.err
24628   rm -f conftest.er1
24629   cat conftest.err >&5
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); } &&
24632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24633   { (case "(($ac_try" in
24634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635   *) ac_try_echo=$ac_try;;
24636 esac
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638   (eval "$ac_try") 2>&5
24639   ac_status=$?
24640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641   (exit $ac_status); }; } &&
24642          { ac_try='test -s conftest$ac_exeext'
24643   { (case "(($ac_try" in
24644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645   *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648   (eval "$ac_try") 2>&5
24649   ac_status=$?
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); }; }; then
24652
24653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24654 }'`
24655 # Check for a 64-bit object if we didn't find anything.
24656 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; }
24657 }'`; fi
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662
24663 fi
24664
24665 rm -f core conftest.err conftest.$ac_objext \
24666       conftest$ac_exeext conftest.$ac_ext
24667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24668
24669        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24670         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"
24671        else
24672         if test "$host_cpu" = ia64; then
24673           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24674           allow_undefined_flag_GCJ="-z nodefs"
24675           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"
24676         else
24677          # Determine the default libpath from the value encoded in an empty executable.
24678          cat >conftest.$ac_ext <<_ACEOF
24679 /* confdefs.h.  */
24680 _ACEOF
24681 cat confdefs.h >>conftest.$ac_ext
24682 cat >>conftest.$ac_ext <<_ACEOF
24683 /* end confdefs.h.  */
24684
24685 int
24686 main ()
24687 {
24688
24689   ;
24690   return 0;
24691 }
24692 _ACEOF
24693 rm -f conftest.$ac_objext conftest$ac_exeext
24694 if { (ac_try="$ac_link"
24695 case "(($ac_try" in
24696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697   *) ac_try_echo=$ac_try;;
24698 esac
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700   (eval "$ac_link") 2>conftest.er1
24701   ac_status=$?
24702   grep -v '^ *+' conftest.er1 >conftest.err
24703   rm -f conftest.er1
24704   cat conftest.err >&5
24705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706   (exit $ac_status); } &&
24707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24708   { (case "(($ac_try" in
24709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710   *) ac_try_echo=$ac_try;;
24711 esac
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713   (eval "$ac_try") 2>&5
24714   ac_status=$?
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); }; } &&
24717          { ac_try='test -s conftest$ac_exeext'
24718   { (case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723   (eval "$ac_try") 2>&5
24724   ac_status=$?
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); }; }; then
24727
24728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24729 }'`
24730 # Check for a 64-bit object if we didn't find anything.
24731 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; }
24732 }'`; fi
24733 else
24734   echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24736
24737
24738 fi
24739
24740 rm -f core conftest.err conftest.$ac_objext \
24741       conftest$ac_exeext conftest.$ac_ext
24742 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24743
24744          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24745           # Warning - without using the other run time loading flags,
24746           # -berok will link without error, but may produce a broken library.
24747           no_undefined_flag_GCJ=' ${wl}-bernotok'
24748           allow_undefined_flag_GCJ=' ${wl}-berok'
24749           # Exported symbols can be pulled into shared objects from archives
24750           whole_archive_flag_spec_GCJ='$convenience'
24751           archive_cmds_need_lc_GCJ=yes
24752           # This is similar to how AIX traditionally builds its shared libraries.
24753           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'
24754         fi
24755       fi
24756       ;;
24757
24758     amigaos*)
24759       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761       hardcode_minus_L_GCJ=yes
24762       # see comment about different semantics on the GNU ld section
24763       ld_shlibs_GCJ=no
24764       ;;
24765
24766     bsdi[45]*)
24767       export_dynamic_flag_spec_GCJ=-rdynamic
24768       ;;
24769
24770     cygwin* | mingw* | pw32*)
24771       # When not using gcc, we currently assume that we are using
24772       # Microsoft Visual C++.
24773       # hardcode_libdir_flag_spec is actually meaningless, as there is
24774       # no search path for DLLs.
24775       hardcode_libdir_flag_spec_GCJ=' '
24776       allow_undefined_flag_GCJ=unsupported
24777       # Tell ltmain to make .lib files, not .a files.
24778       libext=lib
24779       # Tell ltmain to make .dll files, not .so files.
24780       shrext_cmds=".dll"
24781       # FIXME: Setting linknames here is a bad hack.
24782       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24783       # The linker will automatically build a .lib file if we build a DLL.
24784       old_archive_From_new_cmds_GCJ='true'
24785       # FIXME: Should let the user specify the lib program.
24786       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24787       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24788       enable_shared_with_static_runtimes_GCJ=yes
24789       ;;
24790
24791     darwin* | rhapsody*)
24792       case $host_os in
24793         rhapsody* | darwin1.[012])
24794          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24795          ;;
24796        *) # Darwin 1.3 on
24797          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24798            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24799          else
24800            case ${MACOSX_DEPLOYMENT_TARGET} in
24801              10.[012])
24802                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24803                ;;
24804              10.*)
24805                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24806                ;;
24807            esac
24808          fi
24809          ;;
24810       esac
24811       archive_cmds_need_lc_GCJ=no
24812       hardcode_direct_GCJ=no
24813       hardcode_automatic_GCJ=yes
24814       hardcode_shlibpath_var_GCJ=unsupported
24815       whole_archive_flag_spec_GCJ=''
24816       link_all_deplibs_GCJ=yes
24817     if test "$GCC" = yes ; then
24818         output_verbose_link_cmd='echo'
24819         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24820       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24821       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24822       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}'
24823       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}'
24824     else
24825       case $cc_basename in
24826         xlc*)
24827          output_verbose_link_cmd='echo'
24828          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24829          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24830           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24831          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}'
24832           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}'
24833           ;;
24834        *)
24835          ld_shlibs_GCJ=no
24836           ;;
24837       esac
24838     fi
24839       ;;
24840
24841     dgux*)
24842       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24843       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24844       hardcode_shlibpath_var_GCJ=no
24845       ;;
24846
24847     freebsd1*)
24848       ld_shlibs_GCJ=no
24849       ;;
24850
24851     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24852     # support.  Future versions do this automatically, but an explicit c++rt0.o
24853     # does not break anything, and helps significantly (at the cost of a little
24854     # extra space).
24855     freebsd2.2*)
24856       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24857       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24858       hardcode_direct_GCJ=yes
24859       hardcode_shlibpath_var_GCJ=no
24860       ;;
24861
24862     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24863     freebsd2*)
24864       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24865       hardcode_direct_GCJ=yes
24866       hardcode_minus_L_GCJ=yes
24867       hardcode_shlibpath_var_GCJ=no
24868       ;;
24869
24870     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24871     freebsd* | kfreebsd*-gnu | dragonfly*)
24872       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24873       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24874       hardcode_direct_GCJ=yes
24875       hardcode_shlibpath_var_GCJ=no
24876       ;;
24877
24878     hpux9*)
24879       if test "$GCC" = yes; then
24880         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'
24881       else
24882         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'
24883       fi
24884       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24885       hardcode_libdir_separator_GCJ=:
24886       hardcode_direct_GCJ=yes
24887
24888       # hardcode_minus_L: Not really in the search PATH,
24889       # but as the default location of the library.
24890       hardcode_minus_L_GCJ=yes
24891       export_dynamic_flag_spec_GCJ='${wl}-E'
24892       ;;
24893
24894     hpux10*)
24895       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24896         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24897       else
24898         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24899       fi
24900       if test "$with_gnu_ld" = no; then
24901         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902         hardcode_libdir_separator_GCJ=:
24903
24904         hardcode_direct_GCJ=yes
24905         export_dynamic_flag_spec_GCJ='${wl}-E'
24906
24907         # hardcode_minus_L: Not really in the search PATH,
24908         # but as the default location of the library.
24909         hardcode_minus_L_GCJ=yes
24910       fi
24911       ;;
24912
24913     hpux11*)
24914       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24915         case $host_cpu in
24916         hppa*64*)
24917           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24918           ;;
24919         ia64*)
24920           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24921           ;;
24922         *)
24923           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24924           ;;
24925         esac
24926       else
24927         case $host_cpu in
24928         hppa*64*)
24929           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930           ;;
24931         ia64*)
24932           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24933           ;;
24934         *)
24935           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24936           ;;
24937         esac
24938       fi
24939       if test "$with_gnu_ld" = no; then
24940         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24941         hardcode_libdir_separator_GCJ=:
24942
24943         case $host_cpu in
24944         hppa*64*|ia64*)
24945           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24946           hardcode_direct_GCJ=no
24947           hardcode_shlibpath_var_GCJ=no
24948           ;;
24949         *)
24950           hardcode_direct_GCJ=yes
24951           export_dynamic_flag_spec_GCJ='${wl}-E'
24952
24953           # hardcode_minus_L: Not really in the search PATH,
24954           # but as the default location of the library.
24955           hardcode_minus_L_GCJ=yes
24956           ;;
24957         esac
24958       fi
24959       ;;
24960
24961     irix5* | irix6* | nonstopux*)
24962       if test "$GCC" = yes; then
24963         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'
24964       else
24965         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'
24966         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24967       fi
24968       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24969       hardcode_libdir_separator_GCJ=:
24970       link_all_deplibs_GCJ=yes
24971       ;;
24972
24973     netbsd*)
24974       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24975         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24976       else
24977         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24978       fi
24979       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24980       hardcode_direct_GCJ=yes
24981       hardcode_shlibpath_var_GCJ=no
24982       ;;
24983
24984     newsos6)
24985       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24986       hardcode_direct_GCJ=yes
24987       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24988       hardcode_libdir_separator_GCJ=:
24989       hardcode_shlibpath_var_GCJ=no
24990       ;;
24991
24992     openbsd*)
24993       hardcode_direct_GCJ=yes
24994       hardcode_shlibpath_var_GCJ=no
24995       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24996         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24997         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24998         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24999         export_dynamic_flag_spec_GCJ='${wl}-E'
25000       else
25001        case $host_os in
25002          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25003            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25004            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25005            ;;
25006          *)
25007            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25008            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25009            ;;
25010        esac
25011       fi
25012       ;;
25013
25014     os2*)
25015       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25016       hardcode_minus_L_GCJ=yes
25017       allow_undefined_flag_GCJ=unsupported
25018       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'
25019       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25020       ;;
25021
25022     osf3*)
25023       if test "$GCC" = yes; then
25024         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25025         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'
25026       else
25027         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25028         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'
25029       fi
25030       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25031       hardcode_libdir_separator_GCJ=:
25032       ;;
25033
25034     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25035       if test "$GCC" = yes; then
25036         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25037         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'
25038         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25039       else
25040         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25041         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'
25042         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~
25043         $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'
25044
25045         # Both c and cxx compiler support -rpath directly
25046         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25047       fi
25048       hardcode_libdir_separator_GCJ=:
25049       ;;
25050
25051     solaris*)
25052       no_undefined_flag_GCJ=' -z text'
25053       if test "$GCC" = yes; then
25054         wlarc='${wl}'
25055         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25056         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25057           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25058       else
25059         wlarc=''
25060         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25061         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25062         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25063       fi
25064       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25065       hardcode_shlibpath_var_GCJ=no
25066       case $host_os in
25067       solaris2.[0-5] | solaris2.[0-5].*) ;;
25068       *)
25069         # The compiler driver will combine linker options so we
25070         # cannot just pass the convience library names through
25071         # without $wl, iff we do not link with $LD.
25072         # Luckily, gcc supports the same syntax we need for Sun Studio.
25073         # Supported since Solaris 2.6 (maybe 2.5.1?)
25074         case $wlarc in
25075         '')
25076           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25077         *)
25078           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' ;;
25079         esac ;;
25080       esac
25081       link_all_deplibs_GCJ=yes
25082       ;;
25083
25084     sunos4*)
25085       if test "x$host_vendor" = xsequent; then
25086         # Use $CC to link under sequent, because it throws in some extra .o
25087         # files that make .init and .fini sections work.
25088         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25089       else
25090         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25091       fi
25092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25093       hardcode_direct_GCJ=yes
25094       hardcode_minus_L_GCJ=yes
25095       hardcode_shlibpath_var_GCJ=no
25096       ;;
25097
25098     sysv4)
25099       case $host_vendor in
25100         sni)
25101           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25102           hardcode_direct_GCJ=yes # is this really true???
25103         ;;
25104         siemens)
25105           ## LD is ld it makes a PLAMLIB
25106           ## CC just makes a GrossModule.
25107           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25108           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25109           hardcode_direct_GCJ=no
25110         ;;
25111         motorola)
25112           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25113           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25114         ;;
25115       esac
25116       runpath_var='LD_RUN_PATH'
25117       hardcode_shlibpath_var_GCJ=no
25118       ;;
25119
25120     sysv4.3*)
25121       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25122       hardcode_shlibpath_var_GCJ=no
25123       export_dynamic_flag_spec_GCJ='-Bexport'
25124       ;;
25125
25126     sysv4*MP*)
25127       if test -d /usr/nec; then
25128         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25129         hardcode_shlibpath_var_GCJ=no
25130         runpath_var=LD_RUN_PATH
25131         hardcode_runpath_var=yes
25132         ld_shlibs_GCJ=yes
25133       fi
25134       ;;
25135
25136     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25137       no_undefined_flag_GCJ='${wl}-z,text'
25138       archive_cmds_need_lc_GCJ=no
25139       hardcode_shlibpath_var_GCJ=no
25140       runpath_var='LD_RUN_PATH'
25141
25142       if test "$GCC" = yes; then
25143         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25144         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25145       else
25146         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25147         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25148       fi
25149       ;;
25150
25151     sysv5* | sco3.2v5* | sco5v6*)
25152       # Note: We can NOT use -z defs as we might desire, because we do not
25153       # link with -lc, and that would cause any symbols used from libc to
25154       # always be unresolved, which means just about no library would
25155       # ever link correctly.  If we're not using GNU ld we use -z text
25156       # though, which does catch some bad symbols but isn't as heavy-handed
25157       # as -z defs.
25158       no_undefined_flag_GCJ='${wl}-z,text'
25159       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25160       archive_cmds_need_lc_GCJ=no
25161       hardcode_shlibpath_var_GCJ=no
25162       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25163       hardcode_libdir_separator_GCJ=':'
25164       link_all_deplibs_GCJ=yes
25165       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25166       runpath_var='LD_RUN_PATH'
25167
25168       if test "$GCC" = yes; then
25169         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25170         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25171       else
25172         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25173         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25174       fi
25175       ;;
25176
25177     uts4*)
25178       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25179       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25180       hardcode_shlibpath_var_GCJ=no
25181       ;;
25182
25183     *)
25184       ld_shlibs_GCJ=no
25185       ;;
25186     esac
25187   fi
25188
25189 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25190 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25191 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25192
25193 #
25194 # Do we need to explicitly link libc?
25195 #
25196 case "x$archive_cmds_need_lc_GCJ" in
25197 x|xyes)
25198   # Assume -lc should be added
25199   archive_cmds_need_lc_GCJ=yes
25200
25201   if test "$enable_shared" = yes && test "$GCC" = yes; then
25202     case $archive_cmds_GCJ in
25203     *'~'*)
25204       # FIXME: we may have to deal with multi-command sequences.
25205       ;;
25206     '$CC '*)
25207       # Test whether the compiler implicitly links with -lc since on some
25208       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25209       # to ld, don't add -lc before -lgcc.
25210       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25211 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25212       $rm conftest*
25213       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25214
25215       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25216   (eval $ac_compile) 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } 2>conftest.err; then
25220         soname=conftest
25221         lib=conftest
25222         libobjs=conftest.$ac_objext
25223         deplibs=
25224         wl=$lt_prog_compiler_wl_GCJ
25225         pic_flag=$lt_prog_compiler_pic_GCJ
25226         compiler_flags=-v
25227         linker_flags=-v
25228         verstring=
25229         output_objdir=.
25230         libname=conftest
25231         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25232         allow_undefined_flag_GCJ=
25233         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25234   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25235   ac_status=$?
25236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); }
25238         then
25239           archive_cmds_need_lc_GCJ=no
25240         else
25241           archive_cmds_need_lc_GCJ=yes
25242         fi
25243         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25244       else
25245         cat conftest.err 1>&5
25246       fi
25247       $rm conftest*
25248       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25249 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25250       ;;
25251     esac
25252   fi
25253   ;;
25254 esac
25255
25256 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25257 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25258 library_names_spec=
25259 libname_spec='lib$name'
25260 soname_spec=
25261 shrext_cmds=".so"
25262 postinstall_cmds=
25263 postuninstall_cmds=
25264 finish_cmds=
25265 finish_eval=
25266 shlibpath_var=
25267 shlibpath_overrides_runpath=unknown
25268 version_type=none
25269 dynamic_linker="$host_os ld.so"
25270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25271 if test "$GCC" = yes; then
25272   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25273   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25274     # if the path contains ";" then we assume it to be the separator
25275     # otherwise default to the standard path separator (i.e. ":") - it is
25276     # assumed that no part of a normal pathname contains ";" but that should
25277     # okay in the real world where ";" in dirpaths is itself problematic.
25278     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25279   else
25280     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25281   fi
25282 else
25283   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25284 fi
25285 need_lib_prefix=unknown
25286 hardcode_into_libs=no
25287
25288 # when you set need_version to no, make sure it does not cause -set_version
25289 # flags to be left without arguments
25290 need_version=unknown
25291
25292 case $host_os in
25293 aix3*)
25294   version_type=linux
25295   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25296   shlibpath_var=LIBPATH
25297
25298   # AIX 3 has no versioning support, so we append a major version to the name.
25299   soname_spec='${libname}${release}${shared_ext}$major'
25300   ;;
25301
25302 aix4* | aix5*)
25303   version_type=linux
25304   need_lib_prefix=no
25305   need_version=no
25306   hardcode_into_libs=yes
25307   if test "$host_cpu" = ia64; then
25308     # AIX 5 supports IA64
25309     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25310     shlibpath_var=LD_LIBRARY_PATH
25311   else
25312     # With GCC up to 2.95.x, collect2 would create an import file
25313     # for dependence libraries.  The import file would start with
25314     # the line `#! .'.  This would cause the generated library to
25315     # depend on `.', always an invalid library.  This was fixed in
25316     # development snapshots of GCC prior to 3.0.
25317     case $host_os in
25318       aix4 | aix4.[01] | aix4.[01].*)
25319       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25320            echo ' yes '
25321            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25322         :
25323       else
25324         can_build_shared=no
25325       fi
25326       ;;
25327     esac
25328     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25329     # soname into executable. Probably we can add versioning support to
25330     # collect2, so additional links can be useful in future.
25331     if test "$aix_use_runtimelinking" = yes; then
25332       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25333       # instead of lib<name>.a to let people know that these are not
25334       # typical AIX shared libraries.
25335       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25336     else
25337       # We preserve .a as extension for shared libraries through AIX4.2
25338       # and later when we are not doing run time linking.
25339       library_names_spec='${libname}${release}.a $libname.a'
25340       soname_spec='${libname}${release}${shared_ext}$major'
25341     fi
25342     shlibpath_var=LIBPATH
25343   fi
25344   ;;
25345
25346 amigaos*)
25347   library_names_spec='$libname.ixlibrary $libname.a'
25348   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25349   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'
25350   ;;
25351
25352 beos*)
25353   library_names_spec='${libname}${shared_ext}'
25354   dynamic_linker="$host_os ld.so"
25355   shlibpath_var=LIBRARY_PATH
25356   ;;
25357
25358 bsdi[45]*)
25359   version_type=linux
25360   need_version=no
25361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25362   soname_spec='${libname}${release}${shared_ext}$major'
25363   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25364   shlibpath_var=LD_LIBRARY_PATH
25365   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25366   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25367   # the default ld.so.conf also contains /usr/contrib/lib and
25368   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25369   # libtool to hard-code these into programs
25370   ;;
25371
25372 cygwin* | mingw* | pw32*)
25373   version_type=windows
25374   shrext_cmds=".dll"
25375   need_version=no
25376   need_lib_prefix=no
25377
25378   case $GCC,$host_os in
25379   yes,cygwin* | yes,mingw* | yes,pw32*)
25380     library_names_spec='$libname.dll.a'
25381     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25382     postinstall_cmds='base_file=`basename \${file}`~
25383       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25384       dldir=$destdir/`dirname \$dlpath`~
25385       test -d \$dldir || mkdir -p \$dldir~
25386       $install_prog $dir/$dlname \$dldir/$dlname~
25387       chmod a+x \$dldir/$dlname'
25388     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25389       dlpath=$dir/\$dldll~
25390        $rm \$dlpath'
25391     shlibpath_overrides_runpath=yes
25392
25393     case $host_os in
25394     cygwin*)
25395       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25396       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25397       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25398       ;;
25399     mingw*)
25400       # MinGW DLLs use traditional 'lib' prefix
25401       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25402       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25403       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25404         # It is most probably a Windows format PATH printed by
25405         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25406         # path with ; separators, and with drive letters. We can handle the
25407         # drive letters (cygwin fileutils understands them), so leave them,
25408         # especially as we might pass files found there to a mingw objdump,
25409         # which wouldn't understand a cygwinified path. Ahh.
25410         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25411       else
25412         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25413       fi
25414       ;;
25415     pw32*)
25416       # pw32 DLLs use 'pw' prefix rather than 'lib'
25417       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25418       ;;
25419     esac
25420     ;;
25421
25422   *)
25423     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25424     ;;
25425   esac
25426   dynamic_linker='Win32 ld.exe'
25427   # FIXME: first we should search . and the directory the executable is in
25428   shlibpath_var=PATH
25429   ;;
25430
25431 darwin* | rhapsody*)
25432   dynamic_linker="$host_os dyld"
25433   version_type=darwin
25434   need_lib_prefix=no
25435   need_version=no
25436   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25437   soname_spec='${libname}${release}${major}$shared_ext'
25438   shlibpath_overrides_runpath=yes
25439   shlibpath_var=DYLD_LIBRARY_PATH
25440   shrext_cmds='.dylib'
25441   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25442   if test "$GCC" = yes; then
25443     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"`
25444   else
25445     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25446   fi
25447   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25448   ;;
25449
25450 dgux*)
25451   version_type=linux
25452   need_lib_prefix=no
25453   need_version=no
25454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25455   soname_spec='${libname}${release}${shared_ext}$major'
25456   shlibpath_var=LD_LIBRARY_PATH
25457   ;;
25458
25459 freebsd1*)
25460   dynamic_linker=no
25461   ;;
25462
25463 kfreebsd*-gnu)
25464   version_type=linux
25465   need_lib_prefix=no
25466   need_version=no
25467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25468   soname_spec='${libname}${release}${shared_ext}$major'
25469   shlibpath_var=LD_LIBRARY_PATH
25470   shlibpath_overrides_runpath=no
25471   hardcode_into_libs=yes
25472   dynamic_linker='GNU ld.so'
25473   ;;
25474
25475 freebsd* | dragonfly*)
25476   # DragonFly does not have aout.  When/if they implement a new
25477   # versioning mechanism, adjust this.
25478   if test -x /usr/bin/objformat; then
25479     objformat=`/usr/bin/objformat`
25480   else
25481     case $host_os in
25482     freebsd[123]*) objformat=aout ;;
25483     *) objformat=elf ;;
25484     esac
25485   fi
25486   version_type=freebsd-$objformat
25487   case $version_type in
25488     freebsd-elf*)
25489       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25490       need_version=no
25491       need_lib_prefix=no
25492       ;;
25493     freebsd-*)
25494       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25495       need_version=yes
25496       ;;
25497   esac
25498   shlibpath_var=LD_LIBRARY_PATH
25499   case $host_os in
25500   freebsd2*)
25501     shlibpath_overrides_runpath=yes
25502     ;;
25503   freebsd3.[01]* | freebsdelf3.[01]*)
25504     shlibpath_overrides_runpath=yes
25505     hardcode_into_libs=yes
25506     ;;
25507   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25508   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25509     shlibpath_overrides_runpath=no
25510     hardcode_into_libs=yes
25511     ;;
25512   freebsd*) # from 4.6 on
25513     shlibpath_overrides_runpath=yes
25514     hardcode_into_libs=yes
25515     ;;
25516   esac
25517   ;;
25518
25519 gnu*)
25520   version_type=linux
25521   need_lib_prefix=no
25522   need_version=no
25523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25524   soname_spec='${libname}${release}${shared_ext}$major'
25525   shlibpath_var=LD_LIBRARY_PATH
25526   hardcode_into_libs=yes
25527   ;;
25528
25529 hpux9* | hpux10* | hpux11*)
25530   # Give a soname corresponding to the major version so that dld.sl refuses to
25531   # link against other versions.
25532   version_type=sunos
25533   need_lib_prefix=no
25534   need_version=no
25535   case $host_cpu in
25536   ia64*)
25537     shrext_cmds='.so'
25538     hardcode_into_libs=yes
25539     dynamic_linker="$host_os dld.so"
25540     shlibpath_var=LD_LIBRARY_PATH
25541     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543     soname_spec='${libname}${release}${shared_ext}$major'
25544     if test "X$HPUX_IA64_MODE" = X32; then
25545       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25546     else
25547       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25548     fi
25549     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25550     ;;
25551    hppa*64*)
25552      shrext_cmds='.sl'
25553      hardcode_into_libs=yes
25554      dynamic_linker="$host_os dld.sl"
25555      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25556      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25557      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25558      soname_spec='${libname}${release}${shared_ext}$major'
25559      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25560      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25561      ;;
25562    *)
25563     shrext_cmds='.sl'
25564     dynamic_linker="$host_os dld.sl"
25565     shlibpath_var=SHLIB_PATH
25566     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25568     soname_spec='${libname}${release}${shared_ext}$major'
25569     ;;
25570   esac
25571   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25572   postinstall_cmds='chmod 555 $lib'
25573   ;;
25574
25575 interix3*)
25576   version_type=linux
25577   need_lib_prefix=no
25578   need_version=no
25579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25580   soname_spec='${libname}${release}${shared_ext}$major'
25581   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25582   shlibpath_var=LD_LIBRARY_PATH
25583   shlibpath_overrides_runpath=no
25584   hardcode_into_libs=yes
25585   ;;
25586
25587 irix5* | irix6* | nonstopux*)
25588   case $host_os in
25589     nonstopux*) version_type=nonstopux ;;
25590     *)
25591         if test "$lt_cv_prog_gnu_ld" = yes; then
25592                 version_type=linux
25593         else
25594                 version_type=irix
25595         fi ;;
25596   esac
25597   need_lib_prefix=no
25598   need_version=no
25599   soname_spec='${libname}${release}${shared_ext}$major'
25600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25601   case $host_os in
25602   irix5* | nonstopux*)
25603     libsuff= shlibsuff=
25604     ;;
25605   *)
25606     case $LD in # libtool.m4 will add one of these switches to LD
25607     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25608       libsuff= shlibsuff= libmagic=32-bit;;
25609     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25610       libsuff=32 shlibsuff=N32 libmagic=N32;;
25611     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25612       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25613     *) libsuff= shlibsuff= libmagic=never-match;;
25614     esac
25615     ;;
25616   esac
25617   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25618   shlibpath_overrides_runpath=no
25619   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25620   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25621   hardcode_into_libs=yes
25622   ;;
25623
25624 # No shared lib support for Linux oldld, aout, or coff.
25625 linux*oldld* | linux*aout* | linux*coff*)
25626   dynamic_linker=no
25627   ;;
25628
25629 # This must be Linux ELF.
25630 linux*)
25631   version_type=linux
25632   need_lib_prefix=no
25633   need_version=no
25634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635   soname_spec='${libname}${release}${shared_ext}$major'
25636   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25637   shlibpath_var=LD_LIBRARY_PATH
25638   shlibpath_overrides_runpath=no
25639   # This implies no fast_install, which is unacceptable.
25640   # Some rework will be needed to allow for fast_install
25641   # before this can be enabled.
25642   hardcode_into_libs=yes
25643
25644   # Append ld.so.conf contents to the search path
25645   if test -f /etc/ld.so.conf; then
25646     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' ' '`
25647     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25648   fi
25649
25650   # We used to test for /lib/ld.so.1 and disable shared libraries on
25651   # powerpc, because MkLinux only supported shared libraries with the
25652   # GNU dynamic linker.  Since this was broken with cross compilers,
25653   # most powerpc-linux boxes support dynamic linking these days and
25654   # people can always --disable-shared, the test was removed, and we
25655   # assume the GNU/Linux dynamic linker is in use.
25656   dynamic_linker='GNU/Linux ld.so'
25657   ;;
25658
25659 knetbsd*-gnu)
25660   version_type=linux
25661   need_lib_prefix=no
25662   need_version=no
25663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25664   soname_spec='${libname}${release}${shared_ext}$major'
25665   shlibpath_var=LD_LIBRARY_PATH
25666   shlibpath_overrides_runpath=no
25667   hardcode_into_libs=yes
25668   dynamic_linker='GNU ld.so'
25669   ;;
25670
25671 netbsd*)
25672   version_type=sunos
25673   need_lib_prefix=no
25674   need_version=no
25675   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678     dynamic_linker='NetBSD (a.out) ld.so'
25679   else
25680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25681     soname_spec='${libname}${release}${shared_ext}$major'
25682     dynamic_linker='NetBSD ld.elf_so'
25683   fi
25684   shlibpath_var=LD_LIBRARY_PATH
25685   shlibpath_overrides_runpath=yes
25686   hardcode_into_libs=yes
25687   ;;
25688
25689 newsos6)
25690   version_type=linux
25691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25692   shlibpath_var=LD_LIBRARY_PATH
25693   shlibpath_overrides_runpath=yes
25694   ;;
25695
25696 nto-qnx*)
25697   version_type=linux
25698   need_lib_prefix=no
25699   need_version=no
25700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25701   soname_spec='${libname}${release}${shared_ext}$major'
25702   shlibpath_var=LD_LIBRARY_PATH
25703   shlibpath_overrides_runpath=yes
25704   ;;
25705
25706 openbsd*)
25707   version_type=sunos
25708   sys_lib_dlsearch_path_spec="/usr/lib"
25709   need_lib_prefix=no
25710   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25711   case $host_os in
25712     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25713     *)                         need_version=no  ;;
25714   esac
25715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25716   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25717   shlibpath_var=LD_LIBRARY_PATH
25718   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25719     case $host_os in
25720       openbsd2.[89] | openbsd2.[89].*)
25721         shlibpath_overrides_runpath=no
25722         ;;
25723       *)
25724         shlibpath_overrides_runpath=yes
25725         ;;
25726       esac
25727   else
25728     shlibpath_overrides_runpath=yes
25729   fi
25730   ;;
25731
25732 os2*)
25733   libname_spec='$name'
25734   shrext_cmds=".dll"
25735   need_lib_prefix=no
25736   library_names_spec='$libname${shared_ext} $libname.a'
25737   dynamic_linker='OS/2 ld.exe'
25738   shlibpath_var=LIBPATH
25739   ;;
25740
25741 osf3* | osf4* | osf5*)
25742   version_type=osf
25743   need_lib_prefix=no
25744   need_version=no
25745   soname_spec='${libname}${release}${shared_ext}$major'
25746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747   shlibpath_var=LD_LIBRARY_PATH
25748   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25749   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25750   ;;
25751
25752 solaris*)
25753   version_type=linux
25754   need_lib_prefix=no
25755   need_version=no
25756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25757   soname_spec='${libname}${release}${shared_ext}$major'
25758   shlibpath_var=LD_LIBRARY_PATH
25759   shlibpath_overrides_runpath=yes
25760   hardcode_into_libs=yes
25761   # ldd complains unless libraries are executable
25762   postinstall_cmds='chmod +x $lib'
25763   ;;
25764
25765 sunos4*)
25766   version_type=sunos
25767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25768   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25769   shlibpath_var=LD_LIBRARY_PATH
25770   shlibpath_overrides_runpath=yes
25771   if test "$with_gnu_ld" = yes; then
25772     need_lib_prefix=no
25773   fi
25774   need_version=yes
25775   ;;
25776
25777 sysv4 | sysv4.3*)
25778   version_type=linux
25779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25780   soname_spec='${libname}${release}${shared_ext}$major'
25781   shlibpath_var=LD_LIBRARY_PATH
25782   case $host_vendor in
25783     sni)
25784       shlibpath_overrides_runpath=no
25785       need_lib_prefix=no
25786       export_dynamic_flag_spec='${wl}-Blargedynsym'
25787       runpath_var=LD_RUN_PATH
25788       ;;
25789     siemens)
25790       need_lib_prefix=no
25791       ;;
25792     motorola)
25793       need_lib_prefix=no
25794       need_version=no
25795       shlibpath_overrides_runpath=no
25796       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25797       ;;
25798   esac
25799   ;;
25800
25801 sysv4*MP*)
25802   if test -d /usr/nec ;then
25803     version_type=linux
25804     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25805     soname_spec='$libname${shared_ext}.$major'
25806     shlibpath_var=LD_LIBRARY_PATH
25807   fi
25808   ;;
25809
25810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25811   version_type=freebsd-elf
25812   need_lib_prefix=no
25813   need_version=no
25814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25815   soname_spec='${libname}${release}${shared_ext}$major'
25816   shlibpath_var=LD_LIBRARY_PATH
25817   hardcode_into_libs=yes
25818   if test "$with_gnu_ld" = yes; then
25819     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25820     shlibpath_overrides_runpath=no
25821   else
25822     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25823     shlibpath_overrides_runpath=yes
25824     case $host_os in
25825       sco3.2v5*)
25826         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25827         ;;
25828     esac
25829   fi
25830   sys_lib_dlsearch_path_spec='/usr/lib'
25831   ;;
25832
25833 uts4*)
25834   version_type=linux
25835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836   soname_spec='${libname}${release}${shared_ext}$major'
25837   shlibpath_var=LD_LIBRARY_PATH
25838   ;;
25839
25840 *)
25841   dynamic_linker=no
25842   ;;
25843 esac
25844 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25845 echo "${ECHO_T}$dynamic_linker" >&6; }
25846 test "$dynamic_linker" = no && can_build_shared=no
25847
25848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25849 if test "$GCC" = yes; then
25850   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25851 fi
25852
25853 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25854 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25855 hardcode_action_GCJ=
25856 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25857    test -n "$runpath_var_GCJ" || \
25858    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25859
25860   # We can hardcode non-existant directories.
25861   if test "$hardcode_direct_GCJ" != no &&
25862      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25863      # have to relink, otherwise we might link with an installed library
25864      # when we should be linking with a yet-to-be-installed one
25865      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25866      test "$hardcode_minus_L_GCJ" != no; then
25867     # Linking always hardcodes the temporary library directory.
25868     hardcode_action_GCJ=relink
25869   else
25870     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25871     hardcode_action_GCJ=immediate
25872   fi
25873 else
25874   # We cannot hardcode anything, or else we can only hardcode existing
25875   # directories.
25876   hardcode_action_GCJ=unsupported
25877 fi
25878 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25879 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25880
25881 if test "$hardcode_action_GCJ" = relink; then
25882   # Fast installation is not supported
25883   enable_fast_install=no
25884 elif test "$shlibpath_overrides_runpath" = yes ||
25885      test "$enable_shared" = no; then
25886   # Fast installation is not necessary
25887   enable_fast_install=needless
25888 fi
25889
25890
25891 # The else clause should only fire when bootstrapping the
25892 # libtool distribution, otherwise you forgot to ship ltmain.sh
25893 # with your package, and you will get complaints that there are
25894 # no rules to generate ltmain.sh.
25895 if test -f "$ltmain"; then
25896   # See if we are running on zsh, and set the options which allow our commands through
25897   # without removal of \ escapes.
25898   if test -n "${ZSH_VERSION+set}" ; then
25899     setopt NO_GLOB_SUBST
25900   fi
25901   # Now quote all the things that may contain metacharacters while being
25902   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25903   # variables and quote the copies for generation of the libtool script.
25904   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25905     SED SHELL STRIP \
25906     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25907     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25908     deplibs_check_method reload_flag reload_cmds need_locks \
25909     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25910     lt_cv_sys_global_symbol_to_c_name_address \
25911     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25912     old_postinstall_cmds old_postuninstall_cmds \
25913     compiler_GCJ \
25914     CC_GCJ \
25915     LD_GCJ \
25916     lt_prog_compiler_wl_GCJ \
25917     lt_prog_compiler_pic_GCJ \
25918     lt_prog_compiler_static_GCJ \
25919     lt_prog_compiler_no_builtin_flag_GCJ \
25920     export_dynamic_flag_spec_GCJ \
25921     thread_safe_flag_spec_GCJ \
25922     whole_archive_flag_spec_GCJ \
25923     enable_shared_with_static_runtimes_GCJ \
25924     old_archive_cmds_GCJ \
25925     old_archive_from_new_cmds_GCJ \
25926     predep_objects_GCJ \
25927     postdep_objects_GCJ \
25928     predeps_GCJ \
25929     postdeps_GCJ \
25930     compiler_lib_search_path_GCJ \
25931     archive_cmds_GCJ \
25932     archive_expsym_cmds_GCJ \
25933     postinstall_cmds_GCJ \
25934     postuninstall_cmds_GCJ \
25935     old_archive_from_expsyms_cmds_GCJ \
25936     allow_undefined_flag_GCJ \
25937     no_undefined_flag_GCJ \
25938     export_symbols_cmds_GCJ \
25939     hardcode_libdir_flag_spec_GCJ \
25940     hardcode_libdir_flag_spec_ld_GCJ \
25941     hardcode_libdir_separator_GCJ \
25942     hardcode_automatic_GCJ \
25943     module_cmds_GCJ \
25944     module_expsym_cmds_GCJ \
25945     lt_cv_prog_compiler_c_o_GCJ \
25946     exclude_expsyms_GCJ \
25947     include_expsyms_GCJ; do
25948
25949     case $var in
25950     old_archive_cmds_GCJ | \
25951     old_archive_from_new_cmds_GCJ | \
25952     archive_cmds_GCJ | \
25953     archive_expsym_cmds_GCJ | \
25954     module_cmds_GCJ | \
25955     module_expsym_cmds_GCJ | \
25956     old_archive_from_expsyms_cmds_GCJ | \
25957     export_symbols_cmds_GCJ | \
25958     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25959     postinstall_cmds | postuninstall_cmds | \
25960     old_postinstall_cmds | old_postuninstall_cmds | \
25961     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25962       # Double-quote double-evaled strings.
25963       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25964       ;;
25965     *)
25966       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25967       ;;
25968     esac
25969   done
25970
25971   case $lt_echo in
25972   *'\$0 --fallback-echo"')
25973     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25974     ;;
25975   esac
25976
25977 cfgfile="$ofile"
25978
25979   cat <<__EOF__ >> "$cfgfile"
25980 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25981
25982 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25983
25984 # Shell to use when invoking shell scripts.
25985 SHELL=$lt_SHELL
25986
25987 # Whether or not to build shared libraries.
25988 build_libtool_libs=$enable_shared
25989
25990 # Whether or not to build static libraries.
25991 build_old_libs=$enable_static
25992
25993 # Whether or not to add -lc for building shared libraries.
25994 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25995
25996 # Whether or not to disallow shared libs when runtime libs are static
25997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25998
25999 # Whether or not to optimize for fast installation.
26000 fast_install=$enable_fast_install
26001
26002 # The host system.
26003 host_alias=$host_alias
26004 host=$host
26005 host_os=$host_os
26006
26007 # The build system.
26008 build_alias=$build_alias
26009 build=$build
26010 build_os=$build_os
26011
26012 # An echo program that does not interpret backslashes.
26013 echo=$lt_echo
26014
26015 # The archiver.
26016 AR=$lt_AR
26017 AR_FLAGS=$lt_AR_FLAGS
26018
26019 # A C compiler.
26020 LTCC=$lt_LTCC
26021
26022 # LTCC compiler flags.
26023 LTCFLAGS=$lt_LTCFLAGS
26024
26025 # A language-specific compiler.
26026 CC=$lt_compiler_GCJ
26027
26028 # Is the compiler the GNU C compiler?
26029 with_gcc=$GCC_GCJ
26030
26031 # An ERE matcher.
26032 EGREP=$lt_EGREP
26033
26034 # The linker used to build libraries.
26035 LD=$lt_LD_GCJ
26036
26037 # Whether we need hard or soft links.
26038 LN_S=$lt_LN_S
26039
26040 # A BSD-compatible nm program.
26041 NM=$lt_NM
26042
26043 # A symbol stripping program
26044 STRIP=$lt_STRIP
26045
26046 # Used to examine libraries when file_magic_cmd begins "file"
26047 MAGIC_CMD=$MAGIC_CMD
26048
26049 # Used on cygwin: DLL creation program.
26050 DLLTOOL="$DLLTOOL"
26051
26052 # Used on cygwin: object dumper.
26053 OBJDUMP="$OBJDUMP"
26054
26055 # Used on cygwin: assembler.
26056 AS="$AS"
26057
26058 # The name of the directory that contains temporary libtool files.
26059 objdir=$objdir
26060
26061 # How to create reloadable object files.
26062 reload_flag=$lt_reload_flag
26063 reload_cmds=$lt_reload_cmds
26064
26065 # How to pass a linker flag through the compiler.
26066 wl=$lt_lt_prog_compiler_wl_GCJ
26067
26068 # Object file suffix (normally "o").
26069 objext="$ac_objext"
26070
26071 # Old archive suffix (normally "a").
26072 libext="$libext"
26073
26074 # Shared library suffix (normally ".so").
26075 shrext_cmds='$shrext_cmds'
26076
26077 # Executable file suffix (normally "").
26078 exeext="$exeext"
26079
26080 # Additional compiler flags for building library objects.
26081 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26082 pic_mode=$pic_mode
26083
26084 # What is the maximum length of a command?
26085 max_cmd_len=$lt_cv_sys_max_cmd_len
26086
26087 # Does compiler simultaneously support -c and -o options?
26088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26089
26090 # Must we lock files when doing compilation?
26091 need_locks=$lt_need_locks
26092
26093 # Do we need the lib prefix for modules?
26094 need_lib_prefix=$need_lib_prefix
26095
26096 # Do we need a version for libraries?
26097 need_version=$need_version
26098
26099 # Whether dlopen is supported.
26100 dlopen_support=$enable_dlopen
26101
26102 # Whether dlopen of programs is supported.
26103 dlopen_self=$enable_dlopen_self
26104
26105 # Whether dlopen of statically linked programs is supported.
26106 dlopen_self_static=$enable_dlopen_self_static
26107
26108 # Compiler flag to prevent dynamic linking.
26109 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26110
26111 # Compiler flag to turn off builtin functions.
26112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26113
26114 # Compiler flag to allow reflexive dlopens.
26115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26116
26117 # Compiler flag to generate shared objects directly from archives.
26118 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26119
26120 # Compiler flag to generate thread-safe objects.
26121 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26122
26123 # Library versioning type.
26124 version_type=$version_type
26125
26126 # Format of library name prefix.
26127 libname_spec=$lt_libname_spec
26128
26129 # List of archive names.  First name is the real one, the rest are links.
26130 # The last name is the one that the linker finds with -lNAME.
26131 library_names_spec=$lt_library_names_spec
26132
26133 # The coded name of the library, if different from the real name.
26134 soname_spec=$lt_soname_spec
26135
26136 # Commands used to build and install an old-style archive.
26137 RANLIB=$lt_RANLIB
26138 old_archive_cmds=$lt_old_archive_cmds_GCJ
26139 old_postinstall_cmds=$lt_old_postinstall_cmds
26140 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26141
26142 # Create an old-style archive from a shared archive.
26143 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26144
26145 # Create a temporary old-style archive to link instead of a shared archive.
26146 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26147
26148 # Commands used to build and install a shared archive.
26149 archive_cmds=$lt_archive_cmds_GCJ
26150 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26151 postinstall_cmds=$lt_postinstall_cmds
26152 postuninstall_cmds=$lt_postuninstall_cmds
26153
26154 # Commands used to build a loadable module (assumed same as above if empty)
26155 module_cmds=$lt_module_cmds_GCJ
26156 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26157
26158 # Commands to strip libraries.
26159 old_striplib=$lt_old_striplib
26160 striplib=$lt_striplib
26161
26162 # Dependencies to place before the objects being linked to create a
26163 # shared library.
26164 predep_objects=$lt_predep_objects_GCJ
26165
26166 # Dependencies to place after the objects being linked to create a
26167 # shared library.
26168 postdep_objects=$lt_postdep_objects_GCJ
26169
26170 # Dependencies to place before the objects being linked to create a
26171 # shared library.
26172 predeps=$lt_predeps_GCJ
26173
26174 # Dependencies to place after the objects being linked to create a
26175 # shared library.
26176 postdeps=$lt_postdeps_GCJ
26177
26178 # The library search path used internally by the compiler when linking
26179 # a shared library.
26180 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26181
26182 # Method to check whether dependent libraries are shared objects.
26183 deplibs_check_method=$lt_deplibs_check_method
26184
26185 # Command to use when deplibs_check_method == file_magic.
26186 file_magic_cmd=$lt_file_magic_cmd
26187
26188 # Flag that allows shared libraries with undefined symbols to be built.
26189 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26190
26191 # Flag that forces no undefined symbols.
26192 no_undefined_flag=$lt_no_undefined_flag_GCJ
26193
26194 # Commands used to finish a libtool library installation in a directory.
26195 finish_cmds=$lt_finish_cmds
26196
26197 # Same as above, but a single script fragment to be evaled but not shown.
26198 finish_eval=$lt_finish_eval
26199
26200 # Take the output of nm and produce a listing of raw symbols and C names.
26201 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26202
26203 # Transform the output of nm in a proper C declaration
26204 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26205
26206 # Transform the output of nm in a C name address pair
26207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26208
26209 # This is the shared library runtime path variable.
26210 runpath_var=$runpath_var
26211
26212 # This is the shared library path variable.
26213 shlibpath_var=$shlibpath_var
26214
26215 # Is shlibpath searched before the hard-coded library search path?
26216 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26217
26218 # How to hardcode a shared library path into an executable.
26219 hardcode_action=$hardcode_action_GCJ
26220
26221 # Whether we should hardcode library paths into libraries.
26222 hardcode_into_libs=$hardcode_into_libs
26223
26224 # Flag to hardcode \$libdir into a binary during linking.
26225 # This must work even if \$libdir does not exist.
26226 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26227
26228 # If ld is used when linking, flag to hardcode \$libdir into
26229 # a binary during linking. This must work even if \$libdir does
26230 # not exist.
26231 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26232
26233 # Whether we need a single -rpath flag with a separated argument.
26234 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26235
26236 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26237 # resulting binary.
26238 hardcode_direct=$hardcode_direct_GCJ
26239
26240 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26241 # resulting binary.
26242 hardcode_minus_L=$hardcode_minus_L_GCJ
26243
26244 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26245 # the resulting binary.
26246 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26247
26248 # Set to yes if building a shared library automatically hardcodes DIR into the library
26249 # and all subsequent libraries and executables linked against it.
26250 hardcode_automatic=$hardcode_automatic_GCJ
26251
26252 # Variables whose values should be saved in libtool wrapper scripts and
26253 # restored at relink time.
26254 variables_saved_for_relink="$variables_saved_for_relink"
26255
26256 # Whether libtool must link a program against all its dependency libraries.
26257 link_all_deplibs=$link_all_deplibs_GCJ
26258
26259 # Compile-time system search path for libraries
26260 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26261
26262 # Run-time system search path for libraries
26263 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26264
26265 # Fix the shell variable \$srcfile for the compiler.
26266 fix_srcfile_path="$fix_srcfile_path_GCJ"
26267
26268 # Set to yes if exported symbols are required.
26269 always_export_symbols=$always_export_symbols_GCJ
26270
26271 # The commands to list exported symbols.
26272 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26273
26274 # The commands to extract the exported symbol list from a shared archive.
26275 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26276
26277 # Symbols that should not be listed in the preloaded symbols.
26278 exclude_expsyms=$lt_exclude_expsyms_GCJ
26279
26280 # Symbols that must always be exported.
26281 include_expsyms=$lt_include_expsyms_GCJ
26282
26283 # ### END LIBTOOL TAG CONFIG: $tagname
26284
26285 __EOF__
26286
26287
26288 else
26289   # If there is no Makefile yet, we rely on a make rule to execute
26290   # `config.status --recheck' to rerun these tests and create the
26291   # libtool script then.
26292   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26293   if test -f "$ltmain_in"; then
26294     test -f Makefile && make "$ltmain"
26295   fi
26296 fi
26297
26298
26299 ac_ext=c
26300 ac_cpp='$CPP $CPPFLAGS'
26301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26304
26305 CC="$lt_save_CC"
26306
26307         else
26308           tagname=""
26309         fi
26310         ;;
26311
26312       RC)
26313         ac_ext=c
26314 ac_cpp='$CPP $CPPFLAGS'
26315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26318
26319
26320 # Source file extension for RC test sources.
26321 ac_ext=rc
26322
26323 # Object file extension for compiled RC test sources.
26324 objext=o
26325 objext_RC=$objext
26326
26327 # Code to be used in simple compile tests
26328 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26329
26330 # Code to be used in simple link tests
26331 lt_simple_link_test_code="$lt_simple_compile_test_code"
26332
26333 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26334
26335 # If no C compiler was specified, use CC.
26336 LTCC=${LTCC-"$CC"}
26337
26338 # If no C compiler flags were specified, use CFLAGS.
26339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26340
26341 # Allow CC to be a program name with arguments.
26342 compiler=$CC
26343
26344
26345 # save warnings/boilerplate of simple test code
26346 ac_outfile=conftest.$ac_objext
26347 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26349 _lt_compiler_boilerplate=`cat conftest.err`
26350 $rm conftest*
26351
26352 ac_outfile=conftest.$ac_objext
26353 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26355 _lt_linker_boilerplate=`cat conftest.err`
26356 $rm conftest*
26357
26358
26359 # Allow CC to be a program name with arguments.
26360 lt_save_CC="$CC"
26361 CC=${RC-"windres"}
26362 compiler=$CC
26363 compiler_RC=$CC
26364 for cc_temp in $compiler""; do
26365   case $cc_temp in
26366     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26367     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26368     \-*) ;;
26369     *) break;;
26370   esac
26371 done
26372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26373
26374 lt_cv_prog_compiler_c_o_RC=yes
26375
26376 # The else clause should only fire when bootstrapping the
26377 # libtool distribution, otherwise you forgot to ship ltmain.sh
26378 # with your package, and you will get complaints that there are
26379 # no rules to generate ltmain.sh.
26380 if test -f "$ltmain"; then
26381   # See if we are running on zsh, and set the options which allow our commands through
26382   # without removal of \ escapes.
26383   if test -n "${ZSH_VERSION+set}" ; then
26384     setopt NO_GLOB_SUBST
26385   fi
26386   # Now quote all the things that may contain metacharacters while being
26387   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26388   # variables and quote the copies for generation of the libtool script.
26389   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26390     SED SHELL STRIP \
26391     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26392     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26393     deplibs_check_method reload_flag reload_cmds need_locks \
26394     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26395     lt_cv_sys_global_symbol_to_c_name_address \
26396     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26397     old_postinstall_cmds old_postuninstall_cmds \
26398     compiler_RC \
26399     CC_RC \
26400     LD_RC \
26401     lt_prog_compiler_wl_RC \
26402     lt_prog_compiler_pic_RC \
26403     lt_prog_compiler_static_RC \
26404     lt_prog_compiler_no_builtin_flag_RC \
26405     export_dynamic_flag_spec_RC \
26406     thread_safe_flag_spec_RC \
26407     whole_archive_flag_spec_RC \
26408     enable_shared_with_static_runtimes_RC \
26409     old_archive_cmds_RC \
26410     old_archive_from_new_cmds_RC \
26411     predep_objects_RC \
26412     postdep_objects_RC \
26413     predeps_RC \
26414     postdeps_RC \
26415     compiler_lib_search_path_RC \
26416     archive_cmds_RC \
26417     archive_expsym_cmds_RC \
26418     postinstall_cmds_RC \
26419     postuninstall_cmds_RC \
26420     old_archive_from_expsyms_cmds_RC \
26421     allow_undefined_flag_RC \
26422     no_undefined_flag_RC \
26423     export_symbols_cmds_RC \
26424     hardcode_libdir_flag_spec_RC \
26425     hardcode_libdir_flag_spec_ld_RC \
26426     hardcode_libdir_separator_RC \
26427     hardcode_automatic_RC \
26428     module_cmds_RC \
26429     module_expsym_cmds_RC \
26430     lt_cv_prog_compiler_c_o_RC \
26431     exclude_expsyms_RC \
26432     include_expsyms_RC; do
26433
26434     case $var in
26435     old_archive_cmds_RC | \
26436     old_archive_from_new_cmds_RC | \
26437     archive_cmds_RC | \
26438     archive_expsym_cmds_RC | \
26439     module_cmds_RC | \
26440     module_expsym_cmds_RC | \
26441     old_archive_from_expsyms_cmds_RC | \
26442     export_symbols_cmds_RC | \
26443     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26444     postinstall_cmds | postuninstall_cmds | \
26445     old_postinstall_cmds | old_postuninstall_cmds | \
26446     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26447       # Double-quote double-evaled strings.
26448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26449       ;;
26450     *)
26451       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26452       ;;
26453     esac
26454   done
26455
26456   case $lt_echo in
26457   *'\$0 --fallback-echo"')
26458     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26459     ;;
26460   esac
26461
26462 cfgfile="$ofile"
26463
26464   cat <<__EOF__ >> "$cfgfile"
26465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26466
26467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26468
26469 # Shell to use when invoking shell scripts.
26470 SHELL=$lt_SHELL
26471
26472 # Whether or not to build shared libraries.
26473 build_libtool_libs=$enable_shared
26474
26475 # Whether or not to build static libraries.
26476 build_old_libs=$enable_static
26477
26478 # Whether or not to add -lc for building shared libraries.
26479 build_libtool_need_lc=$archive_cmds_need_lc_RC
26480
26481 # Whether or not to disallow shared libs when runtime libs are static
26482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26483
26484 # Whether or not to optimize for fast installation.
26485 fast_install=$enable_fast_install
26486
26487 # The host system.
26488 host_alias=$host_alias
26489 host=$host
26490 host_os=$host_os
26491
26492 # The build system.
26493 build_alias=$build_alias
26494 build=$build
26495 build_os=$build_os
26496
26497 # An echo program that does not interpret backslashes.
26498 echo=$lt_echo
26499
26500 # The archiver.
26501 AR=$lt_AR
26502 AR_FLAGS=$lt_AR_FLAGS
26503
26504 # A C compiler.
26505 LTCC=$lt_LTCC
26506
26507 # LTCC compiler flags.
26508 LTCFLAGS=$lt_LTCFLAGS
26509
26510 # A language-specific compiler.
26511 CC=$lt_compiler_RC
26512
26513 # Is the compiler the GNU C compiler?
26514 with_gcc=$GCC_RC
26515
26516 # An ERE matcher.
26517 EGREP=$lt_EGREP
26518
26519 # The linker used to build libraries.
26520 LD=$lt_LD_RC
26521
26522 # Whether we need hard or soft links.
26523 LN_S=$lt_LN_S
26524
26525 # A BSD-compatible nm program.
26526 NM=$lt_NM
26527
26528 # A symbol stripping program
26529 STRIP=$lt_STRIP
26530
26531 # Used to examine libraries when file_magic_cmd begins "file"
26532 MAGIC_CMD=$MAGIC_CMD
26533
26534 # Used on cygwin: DLL creation program.
26535 DLLTOOL="$DLLTOOL"
26536
26537 # Used on cygwin: object dumper.
26538 OBJDUMP="$OBJDUMP"
26539
26540 # Used on cygwin: assembler.
26541 AS="$AS"
26542
26543 # The name of the directory that contains temporary libtool files.
26544 objdir=$objdir
26545
26546 # How to create reloadable object files.
26547 reload_flag=$lt_reload_flag
26548 reload_cmds=$lt_reload_cmds
26549
26550 # How to pass a linker flag through the compiler.
26551 wl=$lt_lt_prog_compiler_wl_RC
26552
26553 # Object file suffix (normally "o").
26554 objext="$ac_objext"
26555
26556 # Old archive suffix (normally "a").
26557 libext="$libext"
26558
26559 # Shared library suffix (normally ".so").
26560 shrext_cmds='$shrext_cmds'
26561
26562 # Executable file suffix (normally "").
26563 exeext="$exeext"
26564
26565 # Additional compiler flags for building library objects.
26566 pic_flag=$lt_lt_prog_compiler_pic_RC
26567 pic_mode=$pic_mode
26568
26569 # What is the maximum length of a command?
26570 max_cmd_len=$lt_cv_sys_max_cmd_len
26571
26572 # Does compiler simultaneously support -c and -o options?
26573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26574
26575 # Must we lock files when doing compilation?
26576 need_locks=$lt_need_locks
26577
26578 # Do we need the lib prefix for modules?
26579 need_lib_prefix=$need_lib_prefix
26580
26581 # Do we need a version for libraries?
26582 need_version=$need_version
26583
26584 # Whether dlopen is supported.
26585 dlopen_support=$enable_dlopen
26586
26587 # Whether dlopen of programs is supported.
26588 dlopen_self=$enable_dlopen_self
26589
26590 # Whether dlopen of statically linked programs is supported.
26591 dlopen_self_static=$enable_dlopen_self_static
26592
26593 # Compiler flag to prevent dynamic linking.
26594 link_static_flag=$lt_lt_prog_compiler_static_RC
26595
26596 # Compiler flag to turn off builtin functions.
26597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26598
26599 # Compiler flag to allow reflexive dlopens.
26600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26601
26602 # Compiler flag to generate shared objects directly from archives.
26603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26604
26605 # Compiler flag to generate thread-safe objects.
26606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26607
26608 # Library versioning type.
26609 version_type=$version_type
26610
26611 # Format of library name prefix.
26612 libname_spec=$lt_libname_spec
26613
26614 # List of archive names.  First name is the real one, the rest are links.
26615 # The last name is the one that the linker finds with -lNAME.
26616 library_names_spec=$lt_library_names_spec
26617
26618 # The coded name of the library, if different from the real name.
26619 soname_spec=$lt_soname_spec
26620
26621 # Commands used to build and install an old-style archive.
26622 RANLIB=$lt_RANLIB
26623 old_archive_cmds=$lt_old_archive_cmds_RC
26624 old_postinstall_cmds=$lt_old_postinstall_cmds
26625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26626
26627 # Create an old-style archive from a shared archive.
26628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26629
26630 # Create a temporary old-style archive to link instead of a shared archive.
26631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26632
26633 # Commands used to build and install a shared archive.
26634 archive_cmds=$lt_archive_cmds_RC
26635 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26636 postinstall_cmds=$lt_postinstall_cmds
26637 postuninstall_cmds=$lt_postuninstall_cmds
26638
26639 # Commands used to build a loadable module (assumed same as above if empty)
26640 module_cmds=$lt_module_cmds_RC
26641 module_expsym_cmds=$lt_module_expsym_cmds_RC
26642
26643 # Commands to strip libraries.
26644 old_striplib=$lt_old_striplib
26645 striplib=$lt_striplib
26646
26647 # Dependencies to place before the objects being linked to create a
26648 # shared library.
26649 predep_objects=$lt_predep_objects_RC
26650
26651 # Dependencies to place after the objects being linked to create a
26652 # shared library.
26653 postdep_objects=$lt_postdep_objects_RC
26654
26655 # Dependencies to place before the objects being linked to create a
26656 # shared library.
26657 predeps=$lt_predeps_RC
26658
26659 # Dependencies to place after the objects being linked to create a
26660 # shared library.
26661 postdeps=$lt_postdeps_RC
26662
26663 # The library search path used internally by the compiler when linking
26664 # a shared library.
26665 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26666
26667 # Method to check whether dependent libraries are shared objects.
26668 deplibs_check_method=$lt_deplibs_check_method
26669
26670 # Command to use when deplibs_check_method == file_magic.
26671 file_magic_cmd=$lt_file_magic_cmd
26672
26673 # Flag that allows shared libraries with undefined symbols to be built.
26674 allow_undefined_flag=$lt_allow_undefined_flag_RC
26675
26676 # Flag that forces no undefined symbols.
26677 no_undefined_flag=$lt_no_undefined_flag_RC
26678
26679 # Commands used to finish a libtool library installation in a directory.
26680 finish_cmds=$lt_finish_cmds
26681
26682 # Same as above, but a single script fragment to be evaled but not shown.
26683 finish_eval=$lt_finish_eval
26684
26685 # Take the output of nm and produce a listing of raw symbols and C names.
26686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26687
26688 # Transform the output of nm in a proper C declaration
26689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26690
26691 # Transform the output of nm in a C name address pair
26692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26693
26694 # This is the shared library runtime path variable.
26695 runpath_var=$runpath_var
26696
26697 # This is the shared library path variable.
26698 shlibpath_var=$shlibpath_var
26699
26700 # Is shlibpath searched before the hard-coded library search path?
26701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26702
26703 # How to hardcode a shared library path into an executable.
26704 hardcode_action=$hardcode_action_RC
26705
26706 # Whether we should hardcode library paths into libraries.
26707 hardcode_into_libs=$hardcode_into_libs
26708
26709 # Flag to hardcode \$libdir into a binary during linking.
26710 # This must work even if \$libdir does not exist.
26711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26712
26713 # If ld is used when linking, flag to hardcode \$libdir into
26714 # a binary during linking. This must work even if \$libdir does
26715 # not exist.
26716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26717
26718 # Whether we need a single -rpath flag with a separated argument.
26719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26720
26721 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26722 # resulting binary.
26723 hardcode_direct=$hardcode_direct_RC
26724
26725 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26726 # resulting binary.
26727 hardcode_minus_L=$hardcode_minus_L_RC
26728
26729 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26730 # the resulting binary.
26731 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26732
26733 # Set to yes if building a shared library automatically hardcodes DIR into the library
26734 # and all subsequent libraries and executables linked against it.
26735 hardcode_automatic=$hardcode_automatic_RC
26736
26737 # Variables whose values should be saved in libtool wrapper scripts and
26738 # restored at relink time.
26739 variables_saved_for_relink="$variables_saved_for_relink"
26740
26741 # Whether libtool must link a program against all its dependency libraries.
26742 link_all_deplibs=$link_all_deplibs_RC
26743
26744 # Compile-time system search path for libraries
26745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26746
26747 # Run-time system search path for libraries
26748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26749
26750 # Fix the shell variable \$srcfile for the compiler.
26751 fix_srcfile_path="$fix_srcfile_path_RC"
26752
26753 # Set to yes if exported symbols are required.
26754 always_export_symbols=$always_export_symbols_RC
26755
26756 # The commands to list exported symbols.
26757 export_symbols_cmds=$lt_export_symbols_cmds_RC
26758
26759 # The commands to extract the exported symbol list from a shared archive.
26760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26761
26762 # Symbols that should not be listed in the preloaded symbols.
26763 exclude_expsyms=$lt_exclude_expsyms_RC
26764
26765 # Symbols that must always be exported.
26766 include_expsyms=$lt_include_expsyms_RC
26767
26768 # ### END LIBTOOL TAG CONFIG: $tagname
26769
26770 __EOF__
26771
26772
26773 else
26774   # If there is no Makefile yet, we rely on a make rule to execute
26775   # `config.status --recheck' to rerun these tests and create the
26776   # libtool script then.
26777   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26778   if test -f "$ltmain_in"; then
26779     test -f Makefile && make "$ltmain"
26780   fi
26781 fi
26782
26783
26784 ac_ext=c
26785 ac_cpp='$CPP $CPPFLAGS'
26786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26789
26790 CC="$lt_save_CC"
26791
26792         ;;
26793
26794       *)
26795         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26796 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26797    { (exit 1); exit 1; }; }
26798         ;;
26799       esac
26800
26801       # Append the new tag name to the list of available tags.
26802       if test -n "$tagname" ; then
26803       available_tags="$available_tags $tagname"
26804     fi
26805     fi
26806   done
26807   IFS="$lt_save_ifs"
26808
26809   # Now substitute the updated list of available tags.
26810   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26811     mv "${ofile}T" "$ofile"
26812     chmod +x "$ofile"
26813   else
26814     rm -f "${ofile}T"
26815     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26816 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26817    { (exit 1); exit 1; }; }
26818   fi
26819 fi
26820
26821
26822
26823 # This can be used to rebuild libtool when needed
26824 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26825
26826 # Always use our own libtool.
26827 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26828
26829 # Prevent multiple expansion
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851 if test "$lt_cv_dlopen_self" = "yes" ; then
26852
26853 cat >>confdefs.h <<\_ACEOF
26854 #define CAN_DLOPEN_SELF 1
26855 _ACEOF
26856
26857 fi
26858
26859
26860 if test "$WITH_LLVMGCCDIR" = "default" ; then
26861   LLVMGCC="llvm-gcc${EXEEXT}"
26862   LLVMGXX="llvm-g++${EXEEXT}"
26863   LLVMGCCCOMMAND="$LLVMGCC"
26864   LLVMGXXCOMMAND="$LLVMGXX"
26865   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26866
26867   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26868
26869   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26870 set dummy $LLVMGCC; ac_word=$2
26871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26873 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26874   echo $ECHO_N "(cached) $ECHO_C" >&6
26875 else
26876   case $LLVMGCC in
26877   [\\/]* | ?:[\\/]*)
26878   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26879   ;;
26880   *)
26881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26882 for as_dir in $PATH
26883 do
26884   IFS=$as_save_IFS
26885   test -z "$as_dir" && as_dir=.
26886   for ac_exec_ext in '' $ac_executable_extensions; do
26887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26888     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26890     break 2
26891   fi
26892 done
26893 done
26894 IFS=$as_save_IFS
26895
26896   ;;
26897 esac
26898 fi
26899 LLVMGCC=$ac_cv_path_LLVMGCC
26900 if test -n "$LLVMGCC"; then
26901   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26902 echo "${ECHO_T}$LLVMGCC" >&6; }
26903 else
26904   { echo "$as_me:$LINENO: result: no" >&5
26905 echo "${ECHO_T}no" >&6; }
26906 fi
26907
26908
26909   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26910 set dummy $LLVMGXX; ac_word=$2
26911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26913 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26914   echo $ECHO_N "(cached) $ECHO_C" >&6
26915 else
26916   case $LLVMGXX in
26917   [\\/]* | ?:[\\/]*)
26918   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26919   ;;
26920   *)
26921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26922 for as_dir in $PATH
26923 do
26924   IFS=$as_save_IFS
26925   test -z "$as_dir" && as_dir=.
26926   for ac_exec_ext in '' $ac_executable_extensions; do
26927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26928     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26930     break 2
26931   fi
26932 done
26933 done
26934 IFS=$as_save_IFS
26935
26936   ;;
26937 esac
26938 fi
26939 LLVMGXX=$ac_cv_path_LLVMGXX
26940 if test -n "$LLVMGXX"; then
26941   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26942 echo "${ECHO_T}$LLVMGXX" >&6; }
26943 else
26944   { echo "$as_me:$LINENO: result: no" >&5
26945 echo "${ECHO_T}no" >&6; }
26946 fi
26947
26948
26949 else
26950   if test -z "$LLVMGCC"; then
26951     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26952     LLVMGCCCOMMAND="$LLVMGCC"
26953   fi
26954   if test -z "$LLVMGXX"; then
26955     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26956     LLVMGXXCOMMAND="$LLVMGXX"
26957   fi
26958
26959   LLVMGCC=$LLVMGCC
26960
26961   LLVMGXX=$LLVMGXX
26962
26963   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26964
26965   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26966
26967 fi
26968
26969
26970 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26971 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26972
26973 ICC=no
26974 IXX=no
26975 case $CC in
26976   icc*|icpc*)
26977     ICC=yes
26978     IXX=yes
26979     ;;
26980    *)
26981     ;;
26982 esac
26983
26984 if test "$GCC" != "yes" && test "$ICC" != "yes"
26985 then
26986   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26987 echo "$as_me: error: gcc|icc required but not found" >&2;}
26988    { (exit 1); exit 1; }; }
26989 fi
26990
26991 if test "$GXX" != "yes" && test "$IXX" != "yes"
26992 then
26993   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26994 echo "$as_me: error: g++|icc required but not found" >&2;}
26995    { (exit 1); exit 1; }; }
26996 fi
26997
26998 if test "$GCC" = "yes"
26999 then
27000   cat >conftest.$ac_ext <<_ACEOF
27001 #if !defined(__GNUC__) || __GNUC__ < 3
27002 #error Unsupported GCC version
27003 #endif
27004
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010   *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013   (eval "$ac_compile") 2>conftest.er1
27014   ac_status=$?
27015   grep -v '^ *+' conftest.er1 >conftest.err
27016   rm -f conftest.er1
27017   cat conftest.err >&5
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } &&
27020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27021   { (case "(($ac_try" in
27022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023   *) ac_try_echo=$ac_try;;
27024 esac
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026   (eval "$ac_try") 2>&5
27027   ac_status=$?
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); }; } &&
27030          { ac_try='test -s conftest.$ac_objext'
27031   { (case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036   (eval "$ac_try") 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; }; then
27040   :
27041 else
27042   echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27046 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27047    { (exit 1); exit 1; }; }
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051 fi
27052
27053 if test -z "$llvm_cv_gnu_make_command"
27054 then
27055   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27056 echo "$as_me: error: GNU Make required but not found" >&2;}
27057    { (exit 1); exit 1; }; }
27058 fi
27059
27060 { echo "$as_me:$LINENO: result: ok" >&5
27061 echo "${ECHO_T}ok" >&6; }
27062
27063
27064
27065 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27066 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27067 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27068   echo $ECHO_N "(cached) $ECHO_C" >&6
27069 else
27070   ac_check_lib_save_LIBS=$LIBS
27071 LIBS="-lelf  $LIBS"
27072 cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078
27079 /* Override any GCC internal prototype to avoid an error.
27080    Use char because int might match the return type of a GCC
27081    builtin and then its argument prototype would still apply.  */
27082 #ifdef __cplusplus
27083 extern "C"
27084 #endif
27085 char elf_begin ();
27086 int
27087 main ()
27088 {
27089 return elf_begin ();
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 rm -f conftest.$ac_objext conftest$ac_exeext
27095 if { (ac_try="$ac_link"
27096 case "(($ac_try" in
27097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098   *) ac_try_echo=$ac_try;;
27099 esac
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101   (eval "$ac_link") 2>conftest.er1
27102   ac_status=$?
27103   grep -v '^ *+' conftest.er1 >conftest.err
27104   rm -f conftest.er1
27105   cat conftest.err >&5
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); } &&
27108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27109   { (case "(($ac_try" in
27110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111   *) ac_try_echo=$ac_try;;
27112 esac
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114   (eval "$ac_try") 2>&5
27115   ac_status=$?
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); }; } &&
27118          { ac_try='test -s conftest$ac_exeext'
27119   { (case "(($ac_try" in
27120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121   *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124   (eval "$ac_try") 2>&5
27125   ac_status=$?
27126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127   (exit $ac_status); }; }; then
27128   ac_cv_lib_elf_elf_begin=yes
27129 else
27130   echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27132
27133         ac_cv_lib_elf_elf_begin=no
27134 fi
27135
27136 rm -f core conftest.err conftest.$ac_objext \
27137       conftest$ac_exeext conftest.$ac_ext
27138 LIBS=$ac_check_lib_save_LIBS
27139 fi
27140 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27141 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27142 if test $ac_cv_lib_elf_elf_begin = yes; then
27143   cat >>confdefs.h <<_ACEOF
27144 #define HAVE_LIBELF 1
27145 _ACEOF
27146
27147   LIBS="-lelf $LIBS"
27148
27149 fi
27150
27151
27152 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27153 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27154 if test "${ac_cv_lib_m_sin+set}" = set; then
27155   echo $ECHO_N "(cached) $ECHO_C" >&6
27156 else
27157   ac_check_lib_save_LIBS=$LIBS
27158 LIBS="-lm  $LIBS"
27159 cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h.  */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h.  */
27165
27166 /* Override any GCC internal prototype to avoid an error.
27167    Use char because int might match the return type of a GCC
27168    builtin and then its argument prototype would still apply.  */
27169 #ifdef __cplusplus
27170 extern "C"
27171 #endif
27172 char sin ();
27173 int
27174 main ()
27175 {
27176 return sin ();
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 rm -f conftest.$ac_objext conftest$ac_exeext
27182 if { (ac_try="$ac_link"
27183 case "(($ac_try" in
27184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185   *) ac_try_echo=$ac_try;;
27186 esac
27187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188   (eval "$ac_link") 2>conftest.er1
27189   ac_status=$?
27190   grep -v '^ *+' conftest.er1 >conftest.err
27191   rm -f conftest.er1
27192   cat conftest.err >&5
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); } &&
27195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27196   { (case "(($ac_try" in
27197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198   *) ac_try_echo=$ac_try;;
27199 esac
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201   (eval "$ac_try") 2>&5
27202   ac_status=$?
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); }; } &&
27205          { ac_try='test -s conftest$ac_exeext'
27206   { (case "(($ac_try" in
27207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208   *) ac_try_echo=$ac_try;;
27209 esac
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211   (eval "$ac_try") 2>&5
27212   ac_status=$?
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); }; }; then
27215   ac_cv_lib_m_sin=yes
27216 else
27217   echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27219
27220         ac_cv_lib_m_sin=no
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext \
27224       conftest$ac_exeext conftest.$ac_ext
27225 LIBS=$ac_check_lib_save_LIBS
27226 fi
27227 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27228 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27229 if test $ac_cv_lib_m_sin = yes; then
27230   cat >>confdefs.h <<_ACEOF
27231 #define HAVE_LIBM 1
27232 _ACEOF
27233
27234   LIBS="-lm $LIBS"
27235
27236 fi
27237
27238 if test "$llvm_cv_os_type" = "MingW" ; then
27239
27240 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27241 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27242 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245   ac_check_lib_save_LIBS=$LIBS
27246 LIBS="-limagehlp  $LIBS"
27247 cat >conftest.$ac_ext <<_ACEOF
27248 /* confdefs.h.  */
27249 _ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h.  */
27253
27254
27255 int
27256 main ()
27257 {
27258 return main ();
27259   ;
27260   return 0;
27261 }
27262 _ACEOF
27263 rm -f conftest.$ac_objext conftest$ac_exeext
27264 if { (ac_try="$ac_link"
27265 case "(($ac_try" in
27266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267   *) ac_try_echo=$ac_try;;
27268 esac
27269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270   (eval "$ac_link") 2>conftest.er1
27271   ac_status=$?
27272   grep -v '^ *+' conftest.er1 >conftest.err
27273   rm -f conftest.er1
27274   cat conftest.err >&5
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); } &&
27277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27278   { (case "(($ac_try" in
27279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280   *) ac_try_echo=$ac_try;;
27281 esac
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283   (eval "$ac_try") 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; } &&
27287          { ac_try='test -s conftest$ac_exeext'
27288   { (case "(($ac_try" in
27289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290   *) ac_try_echo=$ac_try;;
27291 esac
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293   (eval "$ac_try") 2>&5
27294   ac_status=$?
27295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); }; }; then
27297   ac_cv_lib_imagehlp_main=yes
27298 else
27299   echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27301
27302         ac_cv_lib_imagehlp_main=no
27303 fi
27304
27305 rm -f core conftest.err conftest.$ac_objext \
27306       conftest$ac_exeext conftest.$ac_ext
27307 LIBS=$ac_check_lib_save_LIBS
27308 fi
27309 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27310 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27311 if test $ac_cv_lib_imagehlp_main = yes; then
27312   cat >>confdefs.h <<_ACEOF
27313 #define HAVE_LIBIMAGEHLP 1
27314 _ACEOF
27315
27316   LIBS="-limagehlp $LIBS"
27317
27318 fi
27319
27320
27321 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27322 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27323 if test "${ac_cv_lib_psapi_main+set}" = set; then
27324   echo $ECHO_N "(cached) $ECHO_C" >&6
27325 else
27326   ac_check_lib_save_LIBS=$LIBS
27327 LIBS="-lpsapi  $LIBS"
27328 cat >conftest.$ac_ext <<_ACEOF
27329 /* confdefs.h.  */
27330 _ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h.  */
27334
27335
27336 int
27337 main ()
27338 {
27339 return main ();
27340   ;
27341   return 0;
27342 }
27343 _ACEOF
27344 rm -f conftest.$ac_objext conftest$ac_exeext
27345 if { (ac_try="$ac_link"
27346 case "(($ac_try" in
27347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348   *) ac_try_echo=$ac_try;;
27349 esac
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351   (eval "$ac_link") 2>conftest.er1
27352   ac_status=$?
27353   grep -v '^ *+' conftest.er1 >conftest.err
27354   rm -f conftest.er1
27355   cat conftest.err >&5
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); } &&
27358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27359   { (case "(($ac_try" in
27360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361   *) ac_try_echo=$ac_try;;
27362 esac
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364   (eval "$ac_try") 2>&5
27365   ac_status=$?
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); }; } &&
27368          { ac_try='test -s conftest$ac_exeext'
27369   { (case "(($ac_try" in
27370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371   *) ac_try_echo=$ac_try;;
27372 esac
27373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374   (eval "$ac_try") 2>&5
27375   ac_status=$?
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); }; }; then
27378   ac_cv_lib_psapi_main=yes
27379 else
27380   echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27382
27383         ac_cv_lib_psapi_main=no
27384 fi
27385
27386 rm -f core conftest.err conftest.$ac_objext \
27387       conftest$ac_exeext conftest.$ac_ext
27388 LIBS=$ac_check_lib_save_LIBS
27389 fi
27390 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27391 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27392 if test $ac_cv_lib_psapi_main = yes; then
27393   cat >>confdefs.h <<_ACEOF
27394 #define HAVE_LIBPSAPI 1
27395 _ACEOF
27396
27397   LIBS="-lpsapi $LIBS"
27398
27399 fi
27400
27401 fi
27402
27403 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27404 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27405 if test "${ac_cv_search_dlopen+set}" = set; then
27406   echo $ECHO_N "(cached) $ECHO_C" >&6
27407 else
27408   ac_func_search_save_LIBS=$LIBS
27409 cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415
27416 /* Override any GCC internal prototype to avoid an error.
27417    Use char because int might match the return type of a GCC
27418    builtin and then its argument prototype would still apply.  */
27419 #ifdef __cplusplus
27420 extern "C"
27421 #endif
27422 char dlopen ();
27423 int
27424 main ()
27425 {
27426 return dlopen ();
27427   ;
27428   return 0;
27429 }
27430 _ACEOF
27431 for ac_lib in '' dl; do
27432   if test -z "$ac_lib"; then
27433     ac_res="none required"
27434   else
27435     ac_res=-l$ac_lib
27436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27437   fi
27438   rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442   *) ac_try_echo=$ac_try;;
27443 esac
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445   (eval "$ac_link") 2>conftest.er1
27446   ac_status=$?
27447   grep -v '^ *+' conftest.er1 >conftest.err
27448   rm -f conftest.er1
27449   cat conftest.err >&5
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); } &&
27452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27453   { (case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458   (eval "$ac_try") 2>&5
27459   ac_status=$?
27460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461   (exit $ac_status); }; } &&
27462          { ac_try='test -s conftest$ac_exeext'
27463   { (case "(($ac_try" in
27464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465   *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468   (eval "$ac_try") 2>&5
27469   ac_status=$?
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); }; }; then
27472   ac_cv_search_dlopen=$ac_res
27473 else
27474   echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477
27478 fi
27479
27480 rm -f core conftest.err conftest.$ac_objext \
27481       conftest$ac_exeext
27482   if test "${ac_cv_search_dlopen+set}" = set; then
27483   break
27484 fi
27485 done
27486 if test "${ac_cv_search_dlopen+set}" = set; then
27487   :
27488 else
27489   ac_cv_search_dlopen=no
27490 fi
27491 rm conftest.$ac_ext
27492 LIBS=$ac_func_search_save_LIBS
27493 fi
27494 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27495 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27496 ac_res=$ac_cv_search_dlopen
27497 if test "$ac_res" != no; then
27498   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27499
27500 cat >>confdefs.h <<\_ACEOF
27501 #define HAVE_DLOPEN 1
27502 _ACEOF
27503
27504 else
27505   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27506 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27507 fi
27508
27509
27510 if test "$llvm_cv_enable_libffi" = "yes" ; then
27511   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27512 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27513 if test "${ac_cv_search_ffi_call+set}" = set; then
27514   echo $ECHO_N "(cached) $ECHO_C" >&6
27515 else
27516   ac_func_search_save_LIBS=$LIBS
27517 cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523
27524 /* Override any GCC internal prototype to avoid an error.
27525    Use char because int might match the return type of a GCC
27526    builtin and then its argument prototype would still apply.  */
27527 #ifdef __cplusplus
27528 extern "C"
27529 #endif
27530 char ffi_call ();
27531 int
27532 main ()
27533 {
27534 return ffi_call ();
27535   ;
27536   return 0;
27537 }
27538 _ACEOF
27539 for ac_lib in '' ffi; do
27540   if test -z "$ac_lib"; then
27541     ac_res="none required"
27542   else
27543     ac_res=-l$ac_lib
27544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27545   fi
27546   rm -f conftest.$ac_objext conftest$ac_exeext
27547 if { (ac_try="$ac_link"
27548 case "(($ac_try" in
27549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550   *) ac_try_echo=$ac_try;;
27551 esac
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553   (eval "$ac_link") 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } &&
27560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27561   { (case "(($ac_try" in
27562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563   *) ac_try_echo=$ac_try;;
27564 esac
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566   (eval "$ac_try") 2>&5
27567   ac_status=$?
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); }; } &&
27570          { ac_try='test -s conftest$ac_exeext'
27571   { (case "(($ac_try" in
27572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573   *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576   (eval "$ac_try") 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; }; then
27580   ac_cv_search_ffi_call=$ac_res
27581 else
27582   echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585
27586 fi
27587
27588 rm -f core conftest.err conftest.$ac_objext \
27589       conftest$ac_exeext
27590   if test "${ac_cv_search_ffi_call+set}" = set; then
27591   break
27592 fi
27593 done
27594 if test "${ac_cv_search_ffi_call+set}" = set; then
27595   :
27596 else
27597   ac_cv_search_ffi_call=no
27598 fi
27599 rm conftest.$ac_ext
27600 LIBS=$ac_func_search_save_LIBS
27601 fi
27602 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27603 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27604 ac_res=$ac_cv_search_ffi_call
27605 if test "$ac_res" != no; then
27606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27607
27608 cat >>confdefs.h <<\_ACEOF
27609 #define HAVE_FFI_CALL 1
27610 _ACEOF
27611
27612 else
27613   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27614 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27615 fi
27616
27617 fi
27618
27619 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27620 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27621 if test "${ac_cv_search_mallinfo+set}" = set; then
27622   echo $ECHO_N "(cached) $ECHO_C" >&6
27623 else
27624   ac_func_search_save_LIBS=$LIBS
27625 cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631
27632 /* Override any GCC internal prototype to avoid an error.
27633    Use char because int might match the return type of a GCC
27634    builtin and then its argument prototype would still apply.  */
27635 #ifdef __cplusplus
27636 extern "C"
27637 #endif
27638 char mallinfo ();
27639 int
27640 main ()
27641 {
27642 return mallinfo ();
27643   ;
27644   return 0;
27645 }
27646 _ACEOF
27647 for ac_lib in '' malloc; do
27648   if test -z "$ac_lib"; then
27649     ac_res="none required"
27650   else
27651     ac_res=-l$ac_lib
27652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27653   fi
27654   rm -f conftest.$ac_objext conftest$ac_exeext
27655 if { (ac_try="$ac_link"
27656 case "(($ac_try" in
27657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658   *) ac_try_echo=$ac_try;;
27659 esac
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661   (eval "$ac_link") 2>conftest.er1
27662   ac_status=$?
27663   grep -v '^ *+' conftest.er1 >conftest.err
27664   rm -f conftest.er1
27665   cat conftest.err >&5
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); } &&
27668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27669   { (case "(($ac_try" in
27670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671   *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674   (eval "$ac_try") 2>&5
27675   ac_status=$?
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); }; } &&
27678          { ac_try='test -s conftest$ac_exeext'
27679   { (case "(($ac_try" in
27680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681   *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684   (eval "$ac_try") 2>&5
27685   ac_status=$?
27686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687   (exit $ac_status); }; }; then
27688   ac_cv_search_mallinfo=$ac_res
27689 else
27690   echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693
27694 fi
27695
27696 rm -f core conftest.err conftest.$ac_objext \
27697       conftest$ac_exeext
27698   if test "${ac_cv_search_mallinfo+set}" = set; then
27699   break
27700 fi
27701 done
27702 if test "${ac_cv_search_mallinfo+set}" = set; then
27703   :
27704 else
27705   ac_cv_search_mallinfo=no
27706 fi
27707 rm conftest.$ac_ext
27708 LIBS=$ac_func_search_save_LIBS
27709 fi
27710 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27711 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27712 ac_res=$ac_cv_search_mallinfo
27713 if test "$ac_res" != no; then
27714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27715
27716 cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_MALLINFO 1
27718 _ACEOF
27719
27720 fi
27721
27722
27723 if test "$ENABLE_THREADS" -eq 1 ; then
27724
27725 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27726 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27727 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27728   echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27730   ac_check_lib_save_LIBS=$LIBS
27731 LIBS="-lpthread  $LIBS"
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738
27739 /* Override any GCC internal prototype to avoid an error.
27740    Use char because int might match the return type of a GCC
27741    builtin and then its argument prototype would still apply.  */
27742 #ifdef __cplusplus
27743 extern "C"
27744 #endif
27745 char pthread_mutex_init ();
27746 int
27747 main ()
27748 {
27749 return pthread_mutex_init ();
27750   ;
27751   return 0;
27752 }
27753 _ACEOF
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (ac_try="$ac_link"
27756 case "(($ac_try" in
27757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758   *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761   (eval "$ac_link") 2>conftest.er1
27762   ac_status=$?
27763   grep -v '^ *+' conftest.er1 >conftest.err
27764   rm -f conftest.er1
27765   cat conftest.err >&5
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } &&
27768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769   { (case "(($ac_try" in
27770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771   *) ac_try_echo=$ac_try;;
27772 esac
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774   (eval "$ac_try") 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; } &&
27778          { ac_try='test -s conftest$ac_exeext'
27779   { (case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784   (eval "$ac_try") 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; }; then
27788   ac_cv_lib_pthread_pthread_mutex_init=yes
27789 else
27790   echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27792
27793         ac_cv_lib_pthread_pthread_mutex_init=no
27794 fi
27795
27796 rm -f core conftest.err conftest.$ac_objext \
27797       conftest$ac_exeext conftest.$ac_ext
27798 LIBS=$ac_check_lib_save_LIBS
27799 fi
27800 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27801 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27802 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27803   cat >>confdefs.h <<_ACEOF
27804 #define HAVE_LIBPTHREAD 1
27805 _ACEOF
27806
27807   LIBS="-lpthread $LIBS"
27808
27809 fi
27810
27811   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27812 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27813 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27814   echo $ECHO_N "(cached) $ECHO_C" >&6
27815 else
27816   ac_func_search_save_LIBS=$LIBS
27817 cat >conftest.$ac_ext <<_ACEOF
27818 /* confdefs.h.  */
27819 _ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h.  */
27823
27824 /* Override any GCC internal prototype to avoid an error.
27825    Use char because int might match the return type of a GCC
27826    builtin and then its argument prototype would still apply.  */
27827 #ifdef __cplusplus
27828 extern "C"
27829 #endif
27830 char pthread_mutex_lock ();
27831 int
27832 main ()
27833 {
27834 return pthread_mutex_lock ();
27835   ;
27836   return 0;
27837 }
27838 _ACEOF
27839 for ac_lib in '' pthread; do
27840   if test -z "$ac_lib"; then
27841     ac_res="none required"
27842   else
27843     ac_res=-l$ac_lib
27844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27845   fi
27846   rm -f conftest.$ac_objext conftest$ac_exeext
27847 if { (ac_try="$ac_link"
27848 case "(($ac_try" in
27849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850   *) ac_try_echo=$ac_try;;
27851 esac
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853   (eval "$ac_link") 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } &&
27860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27861   { (case "(($ac_try" in
27862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863   *) ac_try_echo=$ac_try;;
27864 esac
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866   (eval "$ac_try") 2>&5
27867   ac_status=$?
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); }; } &&
27870          { ac_try='test -s conftest$ac_exeext'
27871   { (case "(($ac_try" in
27872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873   *) ac_try_echo=$ac_try;;
27874 esac
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876   (eval "$ac_try") 2>&5
27877   ac_status=$?
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); }; }; then
27880   ac_cv_search_pthread_mutex_lock=$ac_res
27881 else
27882   echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27884
27885
27886 fi
27887
27888 rm -f core conftest.err conftest.$ac_objext \
27889       conftest$ac_exeext
27890   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27891   break
27892 fi
27893 done
27894 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27895   :
27896 else
27897   ac_cv_search_pthread_mutex_lock=no
27898 fi
27899 rm conftest.$ac_ext
27900 LIBS=$ac_func_search_save_LIBS
27901 fi
27902 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27903 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27904 ac_res=$ac_cv_search_pthread_mutex_lock
27905 if test "$ac_res" != no; then
27906   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27907
27908 cat >>confdefs.h <<\_ACEOF
27909 #define HAVE_PTHREAD_MUTEX_LOCK 1
27910 _ACEOF
27911
27912 fi
27913
27914   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27915 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27916 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27917   echo $ECHO_N "(cached) $ECHO_C" >&6
27918 else
27919   ac_func_search_save_LIBS=$LIBS
27920 cat >conftest.$ac_ext <<_ACEOF
27921 /* confdefs.h.  */
27922 _ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h.  */
27926
27927 /* Override any GCC internal prototype to avoid an error.
27928    Use char because int might match the return type of a GCC
27929    builtin and then its argument prototype would still apply.  */
27930 #ifdef __cplusplus
27931 extern "C"
27932 #endif
27933 char pthread_rwlock_init ();
27934 int
27935 main ()
27936 {
27937 return pthread_rwlock_init ();
27938   ;
27939   return 0;
27940 }
27941 _ACEOF
27942 for ac_lib in '' pthread; do
27943   if test -z "$ac_lib"; then
27944     ac_res="none required"
27945   else
27946     ac_res=-l$ac_lib
27947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27948   fi
27949   rm -f conftest.$ac_objext conftest$ac_exeext
27950 if { (ac_try="$ac_link"
27951 case "(($ac_try" in
27952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953   *) ac_try_echo=$ac_try;;
27954 esac
27955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956   (eval "$ac_link") 2>conftest.er1
27957   ac_status=$?
27958   grep -v '^ *+' conftest.er1 >conftest.err
27959   rm -f conftest.er1
27960   cat conftest.err >&5
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } &&
27963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27964   { (case "(($ac_try" in
27965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966   *) ac_try_echo=$ac_try;;
27967 esac
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969   (eval "$ac_try") 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; } &&
27973          { ac_try='test -s conftest$ac_exeext'
27974   { (case "(($ac_try" in
27975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976   *) ac_try_echo=$ac_try;;
27977 esac
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979   (eval "$ac_try") 2>&5
27980   ac_status=$?
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); }; }; then
27983   ac_cv_search_pthread_rwlock_init=$ac_res
27984 else
27985   echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27987
27988
27989 fi
27990
27991 rm -f core conftest.err conftest.$ac_objext \
27992       conftest$ac_exeext
27993   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27994   break
27995 fi
27996 done
27997 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27998   :
27999 else
28000   ac_cv_search_pthread_rwlock_init=no
28001 fi
28002 rm conftest.$ac_ext
28003 LIBS=$ac_func_search_save_LIBS
28004 fi
28005 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28006 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28007 ac_res=$ac_cv_search_pthread_rwlock_init
28008 if test "$ac_res" != no; then
28009   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28010
28011 cat >>confdefs.h <<\_ACEOF
28012 #define HAVE_PTHREAD_RWLOCK_INIT 1
28013 _ACEOF
28014
28015 fi
28016
28017 fi
28018
28019
28020 # Check whether --with-udis86 was given.
28021 if test "${with_udis86+set}" = set; then
28022   withval=$with_udis86;
28023       USE_UDIS86=1
28024
28025       case "$withval" in
28026         /usr/lib|yes) ;;
28027         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28028       esac
28029
28030 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28031 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28032 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28033   echo $ECHO_N "(cached) $ECHO_C" >&6
28034 else
28035   ac_check_lib_save_LIBS=$LIBS
28036 LIBS="-ludis86  $LIBS"
28037 cat >conftest.$ac_ext <<_ACEOF
28038 /* confdefs.h.  */
28039 _ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h.  */
28043
28044 /* Override any GCC internal prototype to avoid an error.
28045    Use char because int might match the return type of a GCC
28046    builtin and then its argument prototype would still apply.  */
28047 #ifdef __cplusplus
28048 extern "C"
28049 #endif
28050 char ud_init ();
28051 int
28052 main ()
28053 {
28054 return ud_init ();
28055   ;
28056   return 0;
28057 }
28058 _ACEOF
28059 rm -f conftest.$ac_objext conftest$ac_exeext
28060 if { (ac_try="$ac_link"
28061 case "(($ac_try" in
28062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063   *) ac_try_echo=$ac_try;;
28064 esac
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066   (eval "$ac_link") 2>conftest.er1
28067   ac_status=$?
28068   grep -v '^ *+' conftest.er1 >conftest.err
28069   rm -f conftest.er1
28070   cat conftest.err >&5
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); } &&
28073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28074   { (case "(($ac_try" in
28075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076   *) ac_try_echo=$ac_try;;
28077 esac
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079   (eval "$ac_try") 2>&5
28080   ac_status=$?
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); }; } &&
28083          { ac_try='test -s conftest$ac_exeext'
28084   { (case "(($ac_try" in
28085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086   *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089   (eval "$ac_try") 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; }; then
28093   ac_cv_lib_udis86_ud_init=yes
28094 else
28095   echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098         ac_cv_lib_udis86_ud_init=no
28099 fi
28100
28101 rm -f core conftest.err conftest.$ac_objext \
28102       conftest$ac_exeext conftest.$ac_ext
28103 LIBS=$ac_check_lib_save_LIBS
28104 fi
28105 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28106 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28107 if test $ac_cv_lib_udis86_ud_init = yes; then
28108   cat >>confdefs.h <<_ACEOF
28109 #define HAVE_LIBUDIS86 1
28110 _ACEOF
28111
28112   LIBS="-ludis86 $LIBS"
28113
28114 else
28115
28116         echo "Error! You need to have libudis86 around."
28117         exit -1
28118
28119 fi
28120
28121
28122 else
28123   USE_UDIS86=0
28124
28125 fi
28126
28127
28128 cat >>confdefs.h <<_ACEOF
28129 #define USE_UDIS86 $USE_UDIS86
28130 _ACEOF
28131
28132
28133
28134
28135
28136
28137
28138
28139 ac_header_dirent=no
28140 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28141   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28142 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28143 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28145   echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147   cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h.  */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h.  */
28153 #include <sys/types.h>
28154 #include <$ac_hdr>
28155
28156 int
28157 main ()
28158 {
28159 if ((DIR *) 0)
28160 return 0;
28161   ;
28162   return 0;
28163 }
28164 _ACEOF
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169   *) ac_try_echo=$ac_try;;
28170 esac
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172   (eval "$ac_compile") 2>conftest.er1
28173   ac_status=$?
28174   grep -v '^ *+' conftest.er1 >conftest.err
28175   rm -f conftest.er1
28176   cat conftest.err >&5
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); } &&
28179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28180   { (case "(($ac_try" in
28181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182   *) ac_try_echo=$ac_try;;
28183 esac
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185   (eval "$ac_try") 2>&5
28186   ac_status=$?
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); }; } &&
28189          { ac_try='test -s conftest.$ac_objext'
28190   { (case "(($ac_try" in
28191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192   *) ac_try_echo=$ac_try;;
28193 esac
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195   (eval "$ac_try") 2>&5
28196   ac_status=$?
28197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198   (exit $ac_status); }; }; then
28199   eval "$as_ac_Header=yes"
28200 else
28201   echo "$as_me: failed program was:" >&5
28202 sed 's/^/| /' conftest.$ac_ext >&5
28203
28204         eval "$as_ac_Header=no"
28205 fi
28206
28207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28208 fi
28209 ac_res=`eval echo '${'$as_ac_Header'}'`
28210                { echo "$as_me:$LINENO: result: $ac_res" >&5
28211 echo "${ECHO_T}$ac_res" >&6; }
28212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28213   cat >>confdefs.h <<_ACEOF
28214 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28215 _ACEOF
28216
28217 ac_header_dirent=$ac_hdr; break
28218 fi
28219
28220 done
28221 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28222 if test $ac_header_dirent = dirent.h; then
28223   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28224 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28225 if test "${ac_cv_search_opendir+set}" = set; then
28226   echo $ECHO_N "(cached) $ECHO_C" >&6
28227 else
28228   ac_func_search_save_LIBS=$LIBS
28229 cat >conftest.$ac_ext <<_ACEOF
28230 /* confdefs.h.  */
28231 _ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h.  */
28235
28236 /* Override any GCC internal prototype to avoid an error.
28237    Use char because int might match the return type of a GCC
28238    builtin and then its argument prototype would still apply.  */
28239 #ifdef __cplusplus
28240 extern "C"
28241 #endif
28242 char opendir ();
28243 int
28244 main ()
28245 {
28246 return opendir ();
28247   ;
28248   return 0;
28249 }
28250 _ACEOF
28251 for ac_lib in '' dir; do
28252   if test -z "$ac_lib"; then
28253     ac_res="none required"
28254   else
28255     ac_res=-l$ac_lib
28256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28257   fi
28258   rm -f conftest.$ac_objext conftest$ac_exeext
28259 if { (ac_try="$ac_link"
28260 case "(($ac_try" in
28261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262   *) ac_try_echo=$ac_try;;
28263 esac
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265   (eval "$ac_link") 2>conftest.er1
28266   ac_status=$?
28267   grep -v '^ *+' conftest.er1 >conftest.err
28268   rm -f conftest.er1
28269   cat conftest.err >&5
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); } &&
28272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273   { (case "(($ac_try" in
28274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275   *) ac_try_echo=$ac_try;;
28276 esac
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278   (eval "$ac_try") 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); }; } &&
28282          { ac_try='test -s conftest$ac_exeext'
28283   { (case "(($ac_try" in
28284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285   *) ac_try_echo=$ac_try;;
28286 esac
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288   (eval "$ac_try") 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; }; then
28292   ac_cv_search_opendir=$ac_res
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297
28298 fi
28299
28300 rm -f core conftest.err conftest.$ac_objext \
28301       conftest$ac_exeext
28302   if test "${ac_cv_search_opendir+set}" = set; then
28303   break
28304 fi
28305 done
28306 if test "${ac_cv_search_opendir+set}" = set; then
28307   :
28308 else
28309   ac_cv_search_opendir=no
28310 fi
28311 rm conftest.$ac_ext
28312 LIBS=$ac_func_search_save_LIBS
28313 fi
28314 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28315 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28316 ac_res=$ac_cv_search_opendir
28317 if test "$ac_res" != no; then
28318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28319
28320 fi
28321
28322 else
28323   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28324 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28325 if test "${ac_cv_search_opendir+set}" = set; then
28326   echo $ECHO_N "(cached) $ECHO_C" >&6
28327 else
28328   ac_func_search_save_LIBS=$LIBS
28329 cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h.  */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h.  */
28335
28336 /* Override any GCC internal prototype to avoid an error.
28337    Use char because int might match the return type of a GCC
28338    builtin and then its argument prototype would still apply.  */
28339 #ifdef __cplusplus
28340 extern "C"
28341 #endif
28342 char opendir ();
28343 int
28344 main ()
28345 {
28346 return opendir ();
28347   ;
28348   return 0;
28349 }
28350 _ACEOF
28351 for ac_lib in '' x; do
28352   if test -z "$ac_lib"; then
28353     ac_res="none required"
28354   else
28355     ac_res=-l$ac_lib
28356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28357   fi
28358   rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (ac_try="$ac_link"
28360 case "(($ac_try" in
28361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362   *) ac_try_echo=$ac_try;;
28363 esac
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365   (eval "$ac_link") 2>conftest.er1
28366   ac_status=$?
28367   grep -v '^ *+' conftest.er1 >conftest.err
28368   rm -f conftest.er1
28369   cat conftest.err >&5
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); } &&
28372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28379   ac_status=$?
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); }; } &&
28382          { ac_try='test -s conftest$ac_exeext'
28383   { (case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_try") 2>&5
28389   ac_status=$?
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); }; }; then
28392   ac_cv_search_opendir=$ac_res
28393 else
28394   echo "$as_me: failed program was:" >&5
28395 sed 's/^/| /' conftest.$ac_ext >&5
28396
28397
28398 fi
28399
28400 rm -f core conftest.err conftest.$ac_objext \
28401       conftest$ac_exeext
28402   if test "${ac_cv_search_opendir+set}" = set; then
28403   break
28404 fi
28405 done
28406 if test "${ac_cv_search_opendir+set}" = set; then
28407   :
28408 else
28409   ac_cv_search_opendir=no
28410 fi
28411 rm conftest.$ac_ext
28412 LIBS=$ac_func_search_save_LIBS
28413 fi
28414 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28415 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28416 ac_res=$ac_cv_search_opendir
28417 if test "$ac_res" != no; then
28418   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28419
28420 fi
28421
28422 fi
28423
28424 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28425 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28426 if test "${ac_cv_header_mmap_anon+set}" = set; then
28427   echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429    ac_ext=c
28430 ac_cpp='$CPP $CPPFLAGS'
28431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28434
28435   cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h.  */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h.  */
28441 #include <sys/mman.h>
28442 #include <unistd.h>
28443 #include <fcntl.h>
28444 int
28445 main ()
28446 {
28447 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28448   ;
28449   return 0;
28450 }
28451 _ACEOF
28452 rm -f conftest.$ac_objext
28453 if { (ac_try="$ac_compile"
28454 case "(($ac_try" in
28455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456   *) ac_try_echo=$ac_try;;
28457 esac
28458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459   (eval "$ac_compile") 2>conftest.er1
28460   ac_status=$?
28461   grep -v '^ *+' conftest.er1 >conftest.err
28462   rm -f conftest.er1
28463   cat conftest.err >&5
28464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465   (exit $ac_status); } &&
28466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28467   { (case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_try") 2>&5
28473   ac_status=$?
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); }; } &&
28476          { ac_try='test -s conftest.$ac_objext'
28477   { (case "(($ac_try" in
28478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479   *) ac_try_echo=$ac_try;;
28480 esac
28481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482   (eval "$ac_try") 2>&5
28483   ac_status=$?
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); }; }; then
28486   ac_cv_header_mmap_anon=yes
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491         ac_cv_header_mmap_anon=no
28492 fi
28493
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495   ac_ext=c
28496 ac_cpp='$CPP $CPPFLAGS'
28497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28500
28501
28502 fi
28503 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28504 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28505 if test "$ac_cv_header_mmap_anon" = yes; then
28506
28507 cat >>confdefs.h <<\_ACEOF
28508 #define HAVE_MMAP_ANONYMOUS 1
28509 _ACEOF
28510
28511 fi
28512
28513 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28514 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28515 if test "${ac_cv_header_stat_broken+set}" = set; then
28516   echo $ECHO_N "(cached) $ECHO_C" >&6
28517 else
28518   cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h.  */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h.  */
28524 #include <sys/types.h>
28525 #include <sys/stat.h>
28526
28527 #if defined S_ISBLK && defined S_IFDIR
28528 # if S_ISBLK (S_IFDIR)
28529 You lose.
28530 # endif
28531 #endif
28532
28533 #if defined S_ISBLK && defined S_IFCHR
28534 # if S_ISBLK (S_IFCHR)
28535 You lose.
28536 # endif
28537 #endif
28538
28539 #if defined S_ISLNK && defined S_IFREG
28540 # if S_ISLNK (S_IFREG)
28541 You lose.
28542 # endif
28543 #endif
28544
28545 #if defined S_ISSOCK && defined S_IFREG
28546 # if S_ISSOCK (S_IFREG)
28547 You lose.
28548 # endif
28549 #endif
28550
28551 _ACEOF
28552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28553   $EGREP "You lose" >/dev/null 2>&1; then
28554   ac_cv_header_stat_broken=yes
28555 else
28556   ac_cv_header_stat_broken=no
28557 fi
28558 rm -f conftest*
28559
28560 fi
28561 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28562 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28563 if test $ac_cv_header_stat_broken = yes; then
28564
28565 cat >>confdefs.h <<\_ACEOF
28566 #define STAT_MACROS_BROKEN 1
28567 _ACEOF
28568
28569 fi
28570
28571 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28573 if test "${ac_cv_header_stdc+set}" = set; then
28574   echo $ECHO_N "(cached) $ECHO_C" >&6
28575 else
28576   cat >conftest.$ac_ext <<_ACEOF
28577 /* confdefs.h.  */
28578 _ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h.  */
28582 #include <stdlib.h>
28583 #include <stdarg.h>
28584 #include <string.h>
28585 #include <float.h>
28586
28587 int
28588 main ()
28589 {
28590
28591   ;
28592   return 0;
28593 }
28594 _ACEOF
28595 rm -f conftest.$ac_objext
28596 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } &&
28609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610   { (case "(($ac_try" in
28611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612   *) ac_try_echo=$ac_try;;
28613 esac
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615   (eval "$ac_try") 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; } &&
28619          { ac_try='test -s conftest.$ac_objext'
28620   { (case "(($ac_try" in
28621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622   *) ac_try_echo=$ac_try;;
28623 esac
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625   (eval "$ac_try") 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; }; then
28629   ac_cv_header_stdc=yes
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634         ac_cv_header_stdc=no
28635 fi
28636
28637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28638
28639 if test $ac_cv_header_stdc = yes; then
28640   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28641   cat >conftest.$ac_ext <<_ACEOF
28642 /* confdefs.h.  */
28643 _ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h.  */
28647 #include <string.h>
28648
28649 _ACEOF
28650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28651   $EGREP "memchr" >/dev/null 2>&1; then
28652   :
28653 else
28654   ac_cv_header_stdc=no
28655 fi
28656 rm -f conftest*
28657
28658 fi
28659
28660 if test $ac_cv_header_stdc = yes; then
28661   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28662   cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h.  */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h.  */
28668 #include <stdlib.h>
28669
28670 _ACEOF
28671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28672   $EGREP "free" >/dev/null 2>&1; then
28673   :
28674 else
28675   ac_cv_header_stdc=no
28676 fi
28677 rm -f conftest*
28678
28679 fi
28680
28681 if test $ac_cv_header_stdc = yes; then
28682   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28683   if test "$cross_compiling" = yes; then
28684   :
28685 else
28686   cat >conftest.$ac_ext <<_ACEOF
28687 /* confdefs.h.  */
28688 _ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h.  */
28692 #include <ctype.h>
28693 #include <stdlib.h>
28694 #if ((' ' & 0x0FF) == 0x020)
28695 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28696 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28697 #else
28698 # define ISLOWER(c) \
28699                    (('a' <= (c) && (c) <= 'i') \
28700                      || ('j' <= (c) && (c) <= 'r') \
28701                      || ('s' <= (c) && (c) <= 'z'))
28702 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28703 #endif
28704
28705 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28706 int
28707 main ()
28708 {
28709   int i;
28710   for (i = 0; i < 256; i++)
28711     if (XOR (islower (i), ISLOWER (i))
28712         || toupper (i) != TOUPPER (i))
28713       return 2;
28714   return 0;
28715 }
28716 _ACEOF
28717 rm -f conftest$ac_exeext
28718 if { (ac_try="$ac_link"
28719 case "(($ac_try" in
28720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721   *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724   (eval "$ac_link") 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28728   { (case "(($ac_try" in
28729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730   *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733   (eval "$ac_try") 2>&5
28734   ac_status=$?
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); }; }; then
28737   :
28738 else
28739   echo "$as_me: program exited with status $ac_status" >&5
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28742
28743 ( exit $ac_status )
28744 ac_cv_header_stdc=no
28745 fi
28746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28747 fi
28748
28749
28750 fi
28751 fi
28752 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28753 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28754 if test $ac_cv_header_stdc = yes; then
28755
28756 cat >>confdefs.h <<\_ACEOF
28757 #define STDC_HEADERS 1
28758 _ACEOF
28759
28760 fi
28761
28762 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28763 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28764 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28765   echo $ECHO_N "(cached) $ECHO_C" >&6
28766 else
28767   cat >conftest.$ac_ext <<_ACEOF
28768 /* confdefs.h.  */
28769 _ACEOF
28770 cat confdefs.h >>conftest.$ac_ext
28771 cat >>conftest.$ac_ext <<_ACEOF
28772 /* end confdefs.h.  */
28773 #include <sys/types.h>
28774 #include <sys/wait.h>
28775 #ifndef WEXITSTATUS
28776 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28777 #endif
28778 #ifndef WIFEXITED
28779 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28780 #endif
28781
28782 int
28783 main ()
28784 {
28785   int s;
28786   wait (&s);
28787   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28788   ;
28789   return 0;
28790 }
28791 _ACEOF
28792 rm -f conftest.$ac_objext
28793 if { (ac_try="$ac_compile"
28794 case "(($ac_try" in
28795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796   *) ac_try_echo=$ac_try;;
28797 esac
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799   (eval "$ac_compile") 2>conftest.er1
28800   ac_status=$?
28801   grep -v '^ *+' conftest.er1 >conftest.err
28802   rm -f conftest.er1
28803   cat conftest.err >&5
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); } &&
28806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28807   { (case "(($ac_try" in
28808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809   *) ac_try_echo=$ac_try;;
28810 esac
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812   (eval "$ac_try") 2>&5
28813   ac_status=$?
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); }; } &&
28816          { ac_try='test -s conftest.$ac_objext'
28817   { (case "(($ac_try" in
28818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819   *) ac_try_echo=$ac_try;;
28820 esac
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822   (eval "$ac_try") 2>&5
28823   ac_status=$?
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); }; }; then
28826   ac_cv_header_sys_wait_h=yes
28827 else
28828   echo "$as_me: failed program was:" >&5
28829 sed 's/^/| /' conftest.$ac_ext >&5
28830
28831         ac_cv_header_sys_wait_h=no
28832 fi
28833
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28835 fi
28836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28837 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28838 if test $ac_cv_header_sys_wait_h = yes; then
28839
28840 cat >>confdefs.h <<\_ACEOF
28841 #define HAVE_SYS_WAIT_H 1
28842 _ACEOF
28843
28844 fi
28845
28846 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28847 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28848 if test "${ac_cv_header_time+set}" = set; then
28849   echo $ECHO_N "(cached) $ECHO_C" >&6
28850 else
28851   cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 #include <sys/types.h>
28858 #include <sys/time.h>
28859 #include <time.h>
28860
28861 int
28862 main ()
28863 {
28864 if ((struct tm *) 0)
28865 return 0;
28866   ;
28867   return 0;
28868 }
28869 _ACEOF
28870 rm -f conftest.$ac_objext
28871 if { (ac_try="$ac_compile"
28872 case "(($ac_try" in
28873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28874   *) ac_try_echo=$ac_try;;
28875 esac
28876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28877   (eval "$ac_compile") 2>conftest.er1
28878   ac_status=$?
28879   grep -v '^ *+' conftest.er1 >conftest.err
28880   rm -f conftest.er1
28881   cat conftest.err >&5
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); } &&
28884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28885   { (case "(($ac_try" in
28886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28887   *) ac_try_echo=$ac_try;;
28888 esac
28889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28890   (eval "$ac_try") 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; } &&
28894          { ac_try='test -s conftest.$ac_objext'
28895   { (case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_try") 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); }; }; then
28904   ac_cv_header_time=yes
28905 else
28906   echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28908
28909         ac_cv_header_time=no
28910 fi
28911
28912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28913 fi
28914 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28915 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28916 if test $ac_cv_header_time = yes; then
28917
28918 cat >>confdefs.h <<\_ACEOF
28919 #define TIME_WITH_SYS_TIME 1
28920 _ACEOF
28921
28922 fi
28923
28924
28925
28926
28927
28928
28929
28930
28931 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28932 do
28933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28935   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28938   echo $ECHO_N "(cached) $ECHO_C" >&6
28939 fi
28940 ac_res=`eval echo '${'$as_ac_Header'}'`
28941                { echo "$as_me:$LINENO: result: $ac_res" >&5
28942 echo "${ECHO_T}$ac_res" >&6; }
28943 else
28944   # Is the header compilable?
28945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953 $ac_includes_default
28954 #include <$ac_header>
28955 _ACEOF
28956 rm -f conftest.$ac_objext
28957 if { (ac_try="$ac_compile"
28958 case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963   (eval "$ac_compile") 2>conftest.er1
28964   ac_status=$?
28965   grep -v '^ *+' conftest.er1 >conftest.err
28966   rm -f conftest.er1
28967   cat conftest.err >&5
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); } &&
28970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28971   { (case "(($ac_try" in
28972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973   *) ac_try_echo=$ac_try;;
28974 esac
28975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976   (eval "$ac_try") 2>&5
28977   ac_status=$?
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); }; } &&
28980          { ac_try='test -s conftest.$ac_objext'
28981   { (case "(($ac_try" in
28982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983   *) ac_try_echo=$ac_try;;
28984 esac
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986   (eval "$ac_try") 2>&5
28987   ac_status=$?
28988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989   (exit $ac_status); }; }; then
28990   ac_header_compiler=yes
28991 else
28992   echo "$as_me: failed program was:" >&5
28993 sed 's/^/| /' conftest.$ac_ext >&5
28994
28995         ac_header_compiler=no
28996 fi
28997
28998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29000 echo "${ECHO_T}$ac_header_compiler" >&6; }
29001
29002 # Is the header present?
29003 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29005 cat >conftest.$ac_ext <<_ACEOF
29006 /* confdefs.h.  */
29007 _ACEOF
29008 cat confdefs.h >>conftest.$ac_ext
29009 cat >>conftest.$ac_ext <<_ACEOF
29010 /* end confdefs.h.  */
29011 #include <$ac_header>
29012 _ACEOF
29013 if { (ac_try="$ac_cpp conftest.$ac_ext"
29014 case "(($ac_try" in
29015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016   *) ac_try_echo=$ac_try;;
29017 esac
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29020   ac_status=$?
29021   grep -v '^ *+' conftest.er1 >conftest.err
29022   rm -f conftest.er1
29023   cat conftest.err >&5
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); } >/dev/null; then
29026   if test -s conftest.err; then
29027     ac_cpp_err=$ac_c_preproc_warn_flag
29028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29029   else
29030     ac_cpp_err=
29031   fi
29032 else
29033   ac_cpp_err=yes
29034 fi
29035 if test -z "$ac_cpp_err"; then
29036   ac_header_preproc=yes
29037 else
29038   echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29040
29041   ac_header_preproc=no
29042 fi
29043
29044 rm -f conftest.err conftest.$ac_ext
29045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29046 echo "${ECHO_T}$ac_header_preproc" >&6; }
29047
29048 # So?  What about this header?
29049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29050   yes:no: )
29051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29055     ac_header_preproc=yes
29056     ;;
29057   no:yes:* )
29058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29070     ( cat <<\_ASBOX
29071 ## ----------------------------------- ##
29072 ## Report this to llvmbugs@cs.uiuc.edu ##
29073 ## ----------------------------------- ##
29074 _ASBOX
29075      ) | sed "s/^/$as_me: WARNING:     /" >&2
29076     ;;
29077 esac
29078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081   echo $ECHO_N "(cached) $ECHO_C" >&6
29082 else
29083   eval "$as_ac_Header=\$ac_header_preproc"
29084 fi
29085 ac_res=`eval echo '${'$as_ac_Header'}'`
29086                { echo "$as_me:$LINENO: result: $ac_res" >&5
29087 echo "${ECHO_T}$ac_res" >&6; }
29088
29089 fi
29090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091   cat >>confdefs.h <<_ACEOF
29092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29093 _ACEOF
29094
29095 fi
29096
29097 done
29098
29099
29100
29101
29102
29103
29104
29105 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29106 do
29107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 fi
29114 ac_res=`eval echo '${'$as_ac_Header'}'`
29115                { echo "$as_me:$LINENO: result: $ac_res" >&5
29116 echo "${ECHO_T}$ac_res" >&6; }
29117 else
29118   # Is the header compilable?
29119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29121 cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127 $ac_includes_default
29128 #include <$ac_header>
29129 _ACEOF
29130 rm -f conftest.$ac_objext
29131 if { (ac_try="$ac_compile"
29132 case "(($ac_try" in
29133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134   *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137   (eval "$ac_compile") 2>conftest.er1
29138   ac_status=$?
29139   grep -v '^ *+' conftest.er1 >conftest.err
29140   rm -f conftest.er1
29141   cat conftest.err >&5
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); } &&
29144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29145   { (case "(($ac_try" in
29146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147   *) ac_try_echo=$ac_try;;
29148 esac
29149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150   (eval "$ac_try") 2>&5
29151   ac_status=$?
29152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153   (exit $ac_status); }; } &&
29154          { ac_try='test -s conftest.$ac_objext'
29155   { (case "(($ac_try" in
29156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157   *) ac_try_echo=$ac_try;;
29158 esac
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160   (eval "$ac_try") 2>&5
29161   ac_status=$?
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); }; }; then
29164   ac_header_compiler=yes
29165 else
29166   echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29168
29169         ac_header_compiler=no
29170 fi
29171
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174 echo "${ECHO_T}$ac_header_compiler" >&6; }
29175
29176 # Is the header present?
29177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29179 cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185 #include <$ac_header>
29186 _ACEOF
29187 if { (ac_try="$ac_cpp conftest.$ac_ext"
29188 case "(($ac_try" in
29189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190   *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29194   ac_status=$?
29195   grep -v '^ *+' conftest.er1 >conftest.err
29196   rm -f conftest.er1
29197   cat conftest.err >&5
29198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199   (exit $ac_status); } >/dev/null; then
29200   if test -s conftest.err; then
29201     ac_cpp_err=$ac_c_preproc_warn_flag
29202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29203   else
29204     ac_cpp_err=
29205   fi
29206 else
29207   ac_cpp_err=yes
29208 fi
29209 if test -z "$ac_cpp_err"; then
29210   ac_header_preproc=yes
29211 else
29212   echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29214
29215   ac_header_preproc=no
29216 fi
29217
29218 rm -f conftest.err conftest.$ac_ext
29219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220 echo "${ECHO_T}$ac_header_preproc" >&6; }
29221
29222 # So?  What about this header?
29223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29224   yes:no: )
29225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29229     ac_header_preproc=yes
29230     ;;
29231   no:yes:* )
29232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29244     ( cat <<\_ASBOX
29245 ## ----------------------------------- ##
29246 ## Report this to llvmbugs@cs.uiuc.edu ##
29247 ## ----------------------------------- ##
29248 _ASBOX
29249      ) | sed "s/^/$as_me: WARNING:     /" >&2
29250     ;;
29251 esac
29252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257   eval "$as_ac_Header=\$ac_header_preproc"
29258 fi
29259 ac_res=`eval echo '${'$as_ac_Header'}'`
29260                { echo "$as_me:$LINENO: result: $ac_res" >&5
29261 echo "${ECHO_T}$ac_res" >&6; }
29262
29263 fi
29264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29265   cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29267 _ACEOF
29268
29269 fi
29270
29271 done
29272
29273
29274
29275 for ac_header in utime.h windows.h
29276 do
29277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29279   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29282   echo $ECHO_N "(cached) $ECHO_C" >&6
29283 fi
29284 ac_res=`eval echo '${'$as_ac_Header'}'`
29285                { echo "$as_me:$LINENO: result: $ac_res" >&5
29286 echo "${ECHO_T}$ac_res" >&6; }
29287 else
29288   # Is the header compilable?
29289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29291 cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297 $ac_includes_default
29298 #include <$ac_header>
29299 _ACEOF
29300 rm -f conftest.$ac_objext
29301 if { (ac_try="$ac_compile"
29302 case "(($ac_try" in
29303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304   *) ac_try_echo=$ac_try;;
29305 esac
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307   (eval "$ac_compile") 2>conftest.er1
29308   ac_status=$?
29309   grep -v '^ *+' conftest.er1 >conftest.err
29310   rm -f conftest.er1
29311   cat conftest.err >&5
29312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313   (exit $ac_status); } &&
29314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315   { (case "(($ac_try" in
29316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317   *) ac_try_echo=$ac_try;;
29318 esac
29319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320   (eval "$ac_try") 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; } &&
29324          { ac_try='test -s conftest.$ac_objext'
29325   { (case "(($ac_try" in
29326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327   *) ac_try_echo=$ac_try;;
29328 esac
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330   (eval "$ac_try") 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; }; then
29334   ac_header_compiler=yes
29335 else
29336   echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29338
29339         ac_header_compiler=no
29340 fi
29341
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29344 echo "${ECHO_T}$ac_header_compiler" >&6; }
29345
29346 # Is the header present?
29347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29349 cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355 #include <$ac_header>
29356 _ACEOF
29357 if { (ac_try="$ac_cpp conftest.$ac_ext"
29358 case "(($ac_try" in
29359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360   *) ac_try_echo=$ac_try;;
29361 esac
29362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29364   ac_status=$?
29365   grep -v '^ *+' conftest.er1 >conftest.err
29366   rm -f conftest.er1
29367   cat conftest.err >&5
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); } >/dev/null; then
29370   if test -s conftest.err; then
29371     ac_cpp_err=$ac_c_preproc_warn_flag
29372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29373   else
29374     ac_cpp_err=
29375   fi
29376 else
29377   ac_cpp_err=yes
29378 fi
29379 if test -z "$ac_cpp_err"; then
29380   ac_header_preproc=yes
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385   ac_header_preproc=no
29386 fi
29387
29388 rm -f conftest.err conftest.$ac_ext
29389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29390 echo "${ECHO_T}$ac_header_preproc" >&6; }
29391
29392 # So?  What about this header?
29393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29394   yes:no: )
29395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29399     ac_header_preproc=yes
29400     ;;
29401   no:yes:* )
29402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29414     ( cat <<\_ASBOX
29415 ## ----------------------------------- ##
29416 ## Report this to llvmbugs@cs.uiuc.edu ##
29417 ## ----------------------------------- ##
29418 _ASBOX
29419      ) | sed "s/^/$as_me: WARNING:     /" >&2
29420     ;;
29421 esac
29422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29425   echo $ECHO_N "(cached) $ECHO_C" >&6
29426 else
29427   eval "$as_ac_Header=\$ac_header_preproc"
29428 fi
29429 ac_res=`eval echo '${'$as_ac_Header'}'`
29430                { echo "$as_me:$LINENO: result: $ac_res" >&5
29431 echo "${ECHO_T}$ac_res" >&6; }
29432
29433 fi
29434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29435   cat >>confdefs.h <<_ACEOF
29436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29437 _ACEOF
29438
29439 fi
29440
29441 done
29442
29443
29444
29445
29446
29447 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29448 do
29449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29451   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29454   echo $ECHO_N "(cached) $ECHO_C" >&6
29455 fi
29456 ac_res=`eval echo '${'$as_ac_Header'}'`
29457                { echo "$as_me:$LINENO: result: $ac_res" >&5
29458 echo "${ECHO_T}$ac_res" >&6; }
29459 else
29460   # Is the header compilable?
29461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29463 cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469 $ac_includes_default
29470 #include <$ac_header>
29471 _ACEOF
29472 rm -f conftest.$ac_objext
29473 if { (ac_try="$ac_compile"
29474 case "(($ac_try" in
29475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476   *) ac_try_echo=$ac_try;;
29477 esac
29478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479   (eval "$ac_compile") 2>conftest.er1
29480   ac_status=$?
29481   grep -v '^ *+' conftest.er1 >conftest.err
29482   rm -f conftest.er1
29483   cat conftest.err >&5
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); } &&
29486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29487   { (case "(($ac_try" in
29488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489   *) ac_try_echo=$ac_try;;
29490 esac
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492   (eval "$ac_try") 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; } &&
29496          { ac_try='test -s conftest.$ac_objext'
29497   { (case "(($ac_try" in
29498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499   *) ac_try_echo=$ac_try;;
29500 esac
29501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502   (eval "$ac_try") 2>&5
29503   ac_status=$?
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); }; }; then
29506   ac_header_compiler=yes
29507 else
29508   echo "$as_me: failed program was:" >&5
29509 sed 's/^/| /' conftest.$ac_ext >&5
29510
29511         ac_header_compiler=no
29512 fi
29513
29514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29516 echo "${ECHO_T}$ac_header_compiler" >&6; }
29517
29518 # Is the header present?
29519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29521 cat >conftest.$ac_ext <<_ACEOF
29522 /* confdefs.h.  */
29523 _ACEOF
29524 cat confdefs.h >>conftest.$ac_ext
29525 cat >>conftest.$ac_ext <<_ACEOF
29526 /* end confdefs.h.  */
29527 #include <$ac_header>
29528 _ACEOF
29529 if { (ac_try="$ac_cpp conftest.$ac_ext"
29530 case "(($ac_try" in
29531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532   *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29536   ac_status=$?
29537   grep -v '^ *+' conftest.er1 >conftest.err
29538   rm -f conftest.er1
29539   cat conftest.err >&5
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } >/dev/null; then
29542   if test -s conftest.err; then
29543     ac_cpp_err=$ac_c_preproc_warn_flag
29544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29545   else
29546     ac_cpp_err=
29547   fi
29548 else
29549   ac_cpp_err=yes
29550 fi
29551 if test -z "$ac_cpp_err"; then
29552   ac_header_preproc=yes
29553 else
29554   echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29556
29557   ac_header_preproc=no
29558 fi
29559
29560 rm -f conftest.err conftest.$ac_ext
29561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29562 echo "${ECHO_T}$ac_header_preproc" >&6; }
29563
29564 # So?  What about this header?
29565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29566   yes:no: )
29567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29571     ac_header_preproc=yes
29572     ;;
29573   no:yes:* )
29574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29586     ( cat <<\_ASBOX
29587 ## ----------------------------------- ##
29588 ## Report this to llvmbugs@cs.uiuc.edu ##
29589 ## ----------------------------------- ##
29590 _ASBOX
29591      ) | sed "s/^/$as_me: WARNING:     /" >&2
29592     ;;
29593 esac
29594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599   eval "$as_ac_Header=\$ac_header_preproc"
29600 fi
29601 ac_res=`eval echo '${'$as_ac_Header'}'`
29602                { echo "$as_me:$LINENO: result: $ac_res" >&5
29603 echo "${ECHO_T}$ac_res" >&6; }
29604
29605 fi
29606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29607   cat >>confdefs.h <<_ACEOF
29608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29609 _ACEOF
29610
29611 fi
29612
29613 done
29614
29615
29616
29617
29618
29619 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29620 do
29621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29623   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29626   echo $ECHO_N "(cached) $ECHO_C" >&6
29627 fi
29628 ac_res=`eval echo '${'$as_ac_Header'}'`
29629                { echo "$as_me:$LINENO: result: $ac_res" >&5
29630 echo "${ECHO_T}$ac_res" >&6; }
29631 else
29632   # Is the header compilable?
29633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29635 cat >conftest.$ac_ext <<_ACEOF
29636 /* confdefs.h.  */
29637 _ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h.  */
29641 $ac_includes_default
29642 #include <$ac_header>
29643 _ACEOF
29644 rm -f conftest.$ac_objext
29645 if { (ac_try="$ac_compile"
29646 case "(($ac_try" in
29647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648   *) ac_try_echo=$ac_try;;
29649 esac
29650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651   (eval "$ac_compile") 2>conftest.er1
29652   ac_status=$?
29653   grep -v '^ *+' conftest.er1 >conftest.err
29654   rm -f conftest.er1
29655   cat conftest.err >&5
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); } &&
29658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29659   { (case "(($ac_try" in
29660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661   *) ac_try_echo=$ac_try;;
29662 esac
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664   (eval "$ac_try") 2>&5
29665   ac_status=$?
29666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667   (exit $ac_status); }; } &&
29668          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29675   ac_status=$?
29676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677   (exit $ac_status); }; }; then
29678   ac_header_compiler=yes
29679 else
29680   echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29682
29683         ac_header_compiler=no
29684 fi
29685
29686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29688 echo "${ECHO_T}$ac_header_compiler" >&6; }
29689
29690 # Is the header present?
29691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29693 cat >conftest.$ac_ext <<_ACEOF
29694 /* confdefs.h.  */
29695 _ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h.  */
29699 #include <$ac_header>
29700 _ACEOF
29701 if { (ac_try="$ac_cpp conftest.$ac_ext"
29702 case "(($ac_try" in
29703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704   *) ac_try_echo=$ac_try;;
29705 esac
29706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29708   ac_status=$?
29709   grep -v '^ *+' conftest.er1 >conftest.err
29710   rm -f conftest.er1
29711   cat conftest.err >&5
29712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713   (exit $ac_status); } >/dev/null; then
29714   if test -s conftest.err; then
29715     ac_cpp_err=$ac_c_preproc_warn_flag
29716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29717   else
29718     ac_cpp_err=
29719   fi
29720 else
29721   ac_cpp_err=yes
29722 fi
29723 if test -z "$ac_cpp_err"; then
29724   ac_header_preproc=yes
29725 else
29726   echo "$as_me: failed program was:" >&5
29727 sed 's/^/| /' conftest.$ac_ext >&5
29728
29729   ac_header_preproc=no
29730 fi
29731
29732 rm -f conftest.err conftest.$ac_ext
29733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29734 echo "${ECHO_T}$ac_header_preproc" >&6; }
29735
29736 # So?  What about this header?
29737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29738   yes:no: )
29739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29743     ac_header_preproc=yes
29744     ;;
29745   no:yes:* )
29746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29758     ( cat <<\_ASBOX
29759 ## ----------------------------------- ##
29760 ## Report this to llvmbugs@cs.uiuc.edu ##
29761 ## ----------------------------------- ##
29762 _ASBOX
29763      ) | sed "s/^/$as_me: WARNING:     /" >&2
29764     ;;
29765 esac
29766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29769   echo $ECHO_N "(cached) $ECHO_C" >&6
29770 else
29771   eval "$as_ac_Header=\$ac_header_preproc"
29772 fi
29773 ac_res=`eval echo '${'$as_ac_Header'}'`
29774                { echo "$as_me:$LINENO: result: $ac_res" >&5
29775 echo "${ECHO_T}$ac_res" >&6; }
29776
29777 fi
29778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29779   cat >>confdefs.h <<_ACEOF
29780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29781 _ACEOF
29782
29783 fi
29784
29785 done
29786
29787 if test "$ENABLE_THREADS" -eq 1 ; then
29788
29789 for ac_header in pthread.h
29790 do
29791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29796   echo $ECHO_N "(cached) $ECHO_C" >&6
29797 fi
29798 ac_res=`eval echo '${'$as_ac_Header'}'`
29799                { echo "$as_me:$LINENO: result: $ac_res" >&5
29800 echo "${ECHO_T}$ac_res" >&6; }
29801 else
29802   # Is the header compilable?
29803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29805 cat >conftest.$ac_ext <<_ACEOF
29806 /* confdefs.h.  */
29807 _ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h.  */
29811 $ac_includes_default
29812 #include <$ac_header>
29813 _ACEOF
29814 rm -f conftest.$ac_objext
29815 if { (ac_try="$ac_compile"
29816 case "(($ac_try" in
29817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818   *) ac_try_echo=$ac_try;;
29819 esac
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821   (eval "$ac_compile") 2>conftest.er1
29822   ac_status=$?
29823   grep -v '^ *+' conftest.er1 >conftest.err
29824   rm -f conftest.er1
29825   cat conftest.err >&5
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); } &&
29828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29829   { (case "(($ac_try" in
29830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831   *) ac_try_echo=$ac_try;;
29832 esac
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834   (eval "$ac_try") 2>&5
29835   ac_status=$?
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); }; } &&
29838          { ac_try='test -s conftest.$ac_objext'
29839   { (case "(($ac_try" in
29840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841   *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844   (eval "$ac_try") 2>&5
29845   ac_status=$?
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); }; }; then
29848   ac_header_compiler=yes
29849 else
29850   echo "$as_me: failed program was:" >&5
29851 sed 's/^/| /' conftest.$ac_ext >&5
29852
29853         ac_header_compiler=no
29854 fi
29855
29856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29858 echo "${ECHO_T}$ac_header_compiler" >&6; }
29859
29860 # Is the header present?
29861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29863 cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h.  */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h.  */
29869 #include <$ac_header>
29870 _ACEOF
29871 if { (ac_try="$ac_cpp conftest.$ac_ext"
29872 case "(($ac_try" in
29873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874   *) ac_try_echo=$ac_try;;
29875 esac
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29878   ac_status=$?
29879   grep -v '^ *+' conftest.er1 >conftest.err
29880   rm -f conftest.er1
29881   cat conftest.err >&5
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); } >/dev/null; then
29884   if test -s conftest.err; then
29885     ac_cpp_err=$ac_c_preproc_warn_flag
29886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29887   else
29888     ac_cpp_err=
29889   fi
29890 else
29891   ac_cpp_err=yes
29892 fi
29893 if test -z "$ac_cpp_err"; then
29894   ac_header_preproc=yes
29895 else
29896   echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899   ac_header_preproc=no
29900 fi
29901
29902 rm -f conftest.err conftest.$ac_ext
29903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904 echo "${ECHO_T}$ac_header_preproc" >&6; }
29905
29906 # So?  What about this header?
29907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29908   yes:no: )
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29913     ac_header_preproc=yes
29914     ;;
29915   no:yes:* )
29916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29928     ( cat <<\_ASBOX
29929 ## ----------------------------------- ##
29930 ## Report this to llvmbugs@cs.uiuc.edu ##
29931 ## ----------------------------------- ##
29932 _ASBOX
29933      ) | sed "s/^/$as_me: WARNING:     /" >&2
29934     ;;
29935 esac
29936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941   eval "$as_ac_Header=\$ac_header_preproc"
29942 fi
29943 ac_res=`eval echo '${'$as_ac_Header'}'`
29944                { echo "$as_me:$LINENO: result: $ac_res" >&5
29945 echo "${ECHO_T}$ac_res" >&6; }
29946
29947 fi
29948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29949   cat >>confdefs.h <<_ACEOF
29950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29951 _ACEOF
29952  HAVE_PTHREAD=1
29953
29954 else
29955   HAVE_PTHREAD=0
29956
29957 fi
29958
29959 done
29960
29961 else
29962   HAVE_PTHREAD=0
29963
29964 fi
29965
29966 if test "$llvm_cv_enable_libffi" = "yes" ; then
29967
29968
29969 for ac_header in ffi.h ffi/ffi.h
29970 do
29971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29973   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29976   echo $ECHO_N "(cached) $ECHO_C" >&6
29977 fi
29978 ac_res=`eval echo '${'$as_ac_Header'}'`
29979                { echo "$as_me:$LINENO: result: $ac_res" >&5
29980 echo "${ECHO_T}$ac_res" >&6; }
29981 else
29982   # Is the header compilable?
29983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29985 cat >conftest.$ac_ext <<_ACEOF
29986 /* confdefs.h.  */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h.  */
29991 $ac_includes_default
29992 #include <$ac_header>
29993 _ACEOF
29994 rm -f conftest.$ac_objext
29995 if { (ac_try="$ac_compile"
29996 case "(($ac_try" in
29997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29998   *) ac_try_echo=$ac_try;;
29999 esac
30000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30001   (eval "$ac_compile") 2>conftest.er1
30002   ac_status=$?
30003   grep -v '^ *+' conftest.er1 >conftest.err
30004   rm -f conftest.er1
30005   cat conftest.err >&5
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); } &&
30008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30009   { (case "(($ac_try" in
30010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30011   *) ac_try_echo=$ac_try;;
30012 esac
30013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30014   (eval "$ac_try") 2>&5
30015   ac_status=$?
30016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017   (exit $ac_status); }; } &&
30018          { ac_try='test -s conftest.$ac_objext'
30019   { (case "(($ac_try" in
30020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021   *) ac_try_echo=$ac_try;;
30022 esac
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024   (eval "$ac_try") 2>&5
30025   ac_status=$?
30026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027   (exit $ac_status); }; }; then
30028   ac_header_compiler=yes
30029 else
30030   echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30032
30033         ac_header_compiler=no
30034 fi
30035
30036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30038 echo "${ECHO_T}$ac_header_compiler" >&6; }
30039
30040 # Is the header present?
30041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30043 cat >conftest.$ac_ext <<_ACEOF
30044 /* confdefs.h.  */
30045 _ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h.  */
30049 #include <$ac_header>
30050 _ACEOF
30051 if { (ac_try="$ac_cpp conftest.$ac_ext"
30052 case "(($ac_try" in
30053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054   *) ac_try_echo=$ac_try;;
30055 esac
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30058   ac_status=$?
30059   grep -v '^ *+' conftest.er1 >conftest.err
30060   rm -f conftest.er1
30061   cat conftest.err >&5
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); } >/dev/null; then
30064   if test -s conftest.err; then
30065     ac_cpp_err=$ac_c_preproc_warn_flag
30066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30067   else
30068     ac_cpp_err=
30069   fi
30070 else
30071   ac_cpp_err=yes
30072 fi
30073 if test -z "$ac_cpp_err"; then
30074   ac_header_preproc=yes
30075 else
30076   echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30078
30079   ac_header_preproc=no
30080 fi
30081
30082 rm -f conftest.err conftest.$ac_ext
30083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30084 echo "${ECHO_T}$ac_header_preproc" >&6; }
30085
30086 # So?  What about this header?
30087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30088   yes:no: )
30089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30093     ac_header_preproc=yes
30094     ;;
30095   no:yes:* )
30096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30108     ( cat <<\_ASBOX
30109 ## ----------------------------------- ##
30110 ## Report this to llvmbugs@cs.uiuc.edu ##
30111 ## ----------------------------------- ##
30112 _ASBOX
30113      ) | sed "s/^/$as_me: WARNING:     /" >&2
30114     ;;
30115 esac
30116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121   eval "$as_ac_Header=\$ac_header_preproc"
30122 fi
30123 ac_res=`eval echo '${'$as_ac_Header'}'`
30124                { echo "$as_me:$LINENO: result: $ac_res" >&5
30125 echo "${ECHO_T}$ac_res" >&6; }
30126
30127 fi
30128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30129   cat >>confdefs.h <<_ACEOF
30130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30131 _ACEOF
30132
30133 fi
30134
30135 done
30136
30137 fi
30138
30139
30140
30141   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30142 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30143 if test "${ac_cv_huge_val_sanity+set}" = set; then
30144   echo $ECHO_N "(cached) $ECHO_C" >&6
30145 else
30146
30147     ac_ext=cpp
30148 ac_cpp='$CXXCPP $CPPFLAGS'
30149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30152
30153     CXXFLAGS=-pedantic
30154     if test "$cross_compiling" = yes; then
30155   ac_cv_huge_val_sanity=yes
30156 else
30157   cat >conftest.$ac_ext <<_ACEOF
30158 /* confdefs.h.  */
30159 _ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h.  */
30163 #include <math.h>
30164 int
30165 main ()
30166 {
30167 double x = HUGE_VAL; return x != x;
30168   ;
30169   return 0;
30170 }
30171 _ACEOF
30172 rm -f conftest$ac_exeext
30173 if { (ac_try="$ac_link"
30174 case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_link") 2>&5
30180   ac_status=$?
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30183   { (case "(($ac_try" in
30184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185   *) ac_try_echo=$ac_try;;
30186 esac
30187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188   (eval "$ac_try") 2>&5
30189   ac_status=$?
30190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191   (exit $ac_status); }; }; then
30192   ac_cv_huge_val_sanity=yes
30193 else
30194   echo "$as_me: program exited with status $ac_status" >&5
30195 echo "$as_me: failed program was:" >&5
30196 sed 's/^/| /' conftest.$ac_ext >&5
30197
30198 ( exit $ac_status )
30199 ac_cv_huge_val_sanity=no
30200 fi
30201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30202 fi
30203
30204
30205     ac_ext=c
30206 ac_cpp='$CPP $CPPFLAGS'
30207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30210
30211
30212 fi
30213 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30214 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30215   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30216
30217
30218 { echo "$as_me:$LINENO: checking for pid_t" >&5
30219 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30220 if test "${ac_cv_type_pid_t+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223   cat >conftest.$ac_ext <<_ACEOF
30224 /* confdefs.h.  */
30225 _ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h.  */
30229 $ac_includes_default
30230 typedef pid_t ac__type_new_;
30231 int
30232 main ()
30233 {
30234 if ((ac__type_new_ *) 0)
30235   return 0;
30236 if (sizeof (ac__type_new_))
30237   return 0;
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 rm -f conftest.$ac_objext
30243 if { (ac_try="$ac_compile"
30244 case "(($ac_try" in
30245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246   *) ac_try_echo=$ac_try;;
30247 esac
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249   (eval "$ac_compile") 2>conftest.er1
30250   ac_status=$?
30251   grep -v '^ *+' conftest.er1 >conftest.err
30252   rm -f conftest.er1
30253   cat conftest.err >&5
30254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255   (exit $ac_status); } &&
30256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257   { (case "(($ac_try" in
30258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259   *) ac_try_echo=$ac_try;;
30260 esac
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262   (eval "$ac_try") 2>&5
30263   ac_status=$?
30264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265   (exit $ac_status); }; } &&
30266          { ac_try='test -s conftest.$ac_objext'
30267   { (case "(($ac_try" in
30268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269   *) ac_try_echo=$ac_try;;
30270 esac
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272   (eval "$ac_try") 2>&5
30273   ac_status=$?
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); }; }; then
30276   ac_cv_type_pid_t=yes
30277 else
30278   echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30280
30281         ac_cv_type_pid_t=no
30282 fi
30283
30284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285 fi
30286 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30287 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30288 if test $ac_cv_type_pid_t = yes; then
30289   :
30290 else
30291
30292 cat >>confdefs.h <<_ACEOF
30293 #define pid_t int
30294 _ACEOF
30295
30296 fi
30297
30298 { echo "$as_me:$LINENO: checking for size_t" >&5
30299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30300 if test "${ac_cv_type_size_t+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 $ac_includes_default
30310 typedef size_t ac__type_new_;
30311 int
30312 main ()
30313 {
30314 if ((ac__type_new_ *) 0)
30315   return 0;
30316 if (sizeof (ac__type_new_))
30317   return 0;
30318   ;
30319   return 0;
30320 }
30321 _ACEOF
30322 rm -f conftest.$ac_objext
30323 if { (ac_try="$ac_compile"
30324 case "(($ac_try" in
30325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326   *) ac_try_echo=$ac_try;;
30327 esac
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329   (eval "$ac_compile") 2>conftest.er1
30330   ac_status=$?
30331   grep -v '^ *+' conftest.er1 >conftest.err
30332   rm -f conftest.er1
30333   cat conftest.err >&5
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } &&
30336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337   { (case "(($ac_try" in
30338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339   *) ac_try_echo=$ac_try;;
30340 esac
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342   (eval "$ac_try") 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; } &&
30346          { ac_try='test -s conftest.$ac_objext'
30347   { (case "(($ac_try" in
30348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349   *) ac_try_echo=$ac_try;;
30350 esac
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352   (eval "$ac_try") 2>&5
30353   ac_status=$?
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); }; }; then
30356   ac_cv_type_size_t=yes
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361         ac_cv_type_size_t=no
30362 fi
30363
30364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30365 fi
30366 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30367 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30368 if test $ac_cv_type_size_t = yes; then
30369   :
30370 else
30371
30372 cat >>confdefs.h <<_ACEOF
30373 #define size_t unsigned int
30374 _ACEOF
30375
30376 fi
30377
30378 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30379 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30380 if test "${ac_cv_type_signal+set}" = set; then
30381   echo $ECHO_N "(cached) $ECHO_C" >&6
30382 else
30383   cat >conftest.$ac_ext <<_ACEOF
30384 /* confdefs.h.  */
30385 _ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h.  */
30389 #include <sys/types.h>
30390 #include <signal.h>
30391
30392 int
30393 main ()
30394 {
30395 return *(signal (0, 0)) (0) == 1;
30396   ;
30397   return 0;
30398 }
30399 _ACEOF
30400 rm -f conftest.$ac_objext
30401 if { (ac_try="$ac_compile"
30402 case "(($ac_try" in
30403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404   *) ac_try_echo=$ac_try;;
30405 esac
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407   (eval "$ac_compile") 2>conftest.er1
30408   ac_status=$?
30409   grep -v '^ *+' conftest.er1 >conftest.err
30410   rm -f conftest.er1
30411   cat conftest.err >&5
30412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413   (exit $ac_status); } &&
30414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30415   { (case "(($ac_try" in
30416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417   *) ac_try_echo=$ac_try;;
30418 esac
30419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420   (eval "$ac_try") 2>&5
30421   ac_status=$?
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); }; } &&
30424          { ac_try='test -s conftest.$ac_objext'
30425   { (case "(($ac_try" in
30426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427   *) ac_try_echo=$ac_try;;
30428 esac
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430   (eval "$ac_try") 2>&5
30431   ac_status=$?
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); }; }; then
30434   ac_cv_type_signal=int
30435 else
30436   echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30438
30439         ac_cv_type_signal=void
30440 fi
30441
30442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30443 fi
30444 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30445 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30446
30447 cat >>confdefs.h <<_ACEOF
30448 #define RETSIGTYPE $ac_cv_type_signal
30449 _ACEOF
30450
30451
30452 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30453 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30454 if test "${ac_cv_struct_tm+set}" = set; then
30455   echo $ECHO_N "(cached) $ECHO_C" >&6
30456 else
30457   cat >conftest.$ac_ext <<_ACEOF
30458 /* confdefs.h.  */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h.  */
30463 #include <sys/types.h>
30464 #include <time.h>
30465
30466 int
30467 main ()
30468 {
30469 struct tm *tp; tp->tm_sec;
30470   ;
30471   return 0;
30472 }
30473 _ACEOF
30474 rm -f conftest.$ac_objext
30475 if { (ac_try="$ac_compile"
30476 case "(($ac_try" in
30477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478   *) ac_try_echo=$ac_try;;
30479 esac
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481   (eval "$ac_compile") 2>conftest.er1
30482   ac_status=$?
30483   grep -v '^ *+' conftest.er1 >conftest.err
30484   rm -f conftest.er1
30485   cat conftest.err >&5
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); } &&
30488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30489   { (case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_try") 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); }; } &&
30498          { ac_try='test -s conftest.$ac_objext'
30499   { (case "(($ac_try" in
30500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30501   *) ac_try_echo=$ac_try;;
30502 esac
30503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30504   (eval "$ac_try") 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; }; then
30508   ac_cv_struct_tm=time.h
30509 else
30510   echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513         ac_cv_struct_tm=sys/time.h
30514 fi
30515
30516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30517 fi
30518 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30519 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30520 if test $ac_cv_struct_tm = sys/time.h; then
30521
30522 cat >>confdefs.h <<\_ACEOF
30523 #define TM_IN_SYS_TIME 1
30524 _ACEOF
30525
30526 fi
30527
30528 { echo "$as_me:$LINENO: checking for int64_t" >&5
30529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30530 if test "${ac_cv_type_int64_t+set}" = set; then
30531   echo $ECHO_N "(cached) $ECHO_C" >&6
30532 else
30533   cat >conftest.$ac_ext <<_ACEOF
30534 /* confdefs.h.  */
30535 _ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h.  */
30539 $ac_includes_default
30540 typedef int64_t ac__type_new_;
30541 int
30542 main ()
30543 {
30544 if ((ac__type_new_ *) 0)
30545   return 0;
30546 if (sizeof (ac__type_new_))
30547   return 0;
30548   ;
30549   return 0;
30550 }
30551 _ACEOF
30552 rm -f conftest.$ac_objext
30553 if { (ac_try="$ac_compile"
30554 case "(($ac_try" in
30555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556   *) ac_try_echo=$ac_try;;
30557 esac
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559   (eval "$ac_compile") 2>conftest.er1
30560   ac_status=$?
30561   grep -v '^ *+' conftest.er1 >conftest.err
30562   rm -f conftest.er1
30563   cat conftest.err >&5
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); } &&
30566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30567   { (case "(($ac_try" in
30568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569   *) ac_try_echo=$ac_try;;
30570 esac
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572   (eval "$ac_try") 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); }; } &&
30576          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30583   ac_status=$?
30584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585   (exit $ac_status); }; }; then
30586   ac_cv_type_int64_t=yes
30587 else
30588   echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30590
30591         ac_cv_type_int64_t=no
30592 fi
30593
30594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30595 fi
30596 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30597 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30598 if test $ac_cv_type_int64_t = yes; then
30599
30600 cat >>confdefs.h <<_ACEOF
30601 #define HAVE_INT64_T 1
30602 _ACEOF
30603
30604
30605 else
30606   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30607 echo "$as_me: error: Type int64_t required but not found" >&2;}
30608    { (exit 1); exit 1; }; }
30609 fi
30610
30611 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30612 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30613 if test "${ac_cv_type_uint64_t+set}" = set; then
30614   echo $ECHO_N "(cached) $ECHO_C" >&6
30615 else
30616   cat >conftest.$ac_ext <<_ACEOF
30617 /* confdefs.h.  */
30618 _ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h.  */
30622 $ac_includes_default
30623 typedef uint64_t ac__type_new_;
30624 int
30625 main ()
30626 {
30627 if ((ac__type_new_ *) 0)
30628   return 0;
30629 if (sizeof (ac__type_new_))
30630   return 0;
30631   ;
30632   return 0;
30633 }
30634 _ACEOF
30635 rm -f conftest.$ac_objext
30636 if { (ac_try="$ac_compile"
30637 case "(($ac_try" in
30638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639   *) ac_try_echo=$ac_try;;
30640 esac
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642   (eval "$ac_compile") 2>conftest.er1
30643   ac_status=$?
30644   grep -v '^ *+' conftest.er1 >conftest.err
30645   rm -f conftest.er1
30646   cat conftest.err >&5
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); } &&
30649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30650   { (case "(($ac_try" in
30651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652   *) ac_try_echo=$ac_try;;
30653 esac
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655   (eval "$ac_try") 2>&5
30656   ac_status=$?
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); }; } &&
30659          { ac_try='test -s conftest.$ac_objext'
30660   { (case "(($ac_try" in
30661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662   *) ac_try_echo=$ac_try;;
30663 esac
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665   (eval "$ac_try") 2>&5
30666   ac_status=$?
30667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); }; }; then
30669   ac_cv_type_uint64_t=yes
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674         ac_cv_type_uint64_t=no
30675 fi
30676
30677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30678 fi
30679 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30680 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30681 if test $ac_cv_type_uint64_t = yes; then
30682
30683 cat >>confdefs.h <<_ACEOF
30684 #define HAVE_UINT64_T 1
30685 _ACEOF
30686
30687
30688 else
30689   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30690 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30691 if test "${ac_cv_type_u_int64_t+set}" = set; then
30692   echo $ECHO_N "(cached) $ECHO_C" >&6
30693 else
30694   cat >conftest.$ac_ext <<_ACEOF
30695 /* confdefs.h.  */
30696 _ACEOF
30697 cat confdefs.h >>conftest.$ac_ext
30698 cat >>conftest.$ac_ext <<_ACEOF
30699 /* end confdefs.h.  */
30700 $ac_includes_default
30701 typedef u_int64_t ac__type_new_;
30702 int
30703 main ()
30704 {
30705 if ((ac__type_new_ *) 0)
30706   return 0;
30707 if (sizeof (ac__type_new_))
30708   return 0;
30709   ;
30710   return 0;
30711 }
30712 _ACEOF
30713 rm -f conftest.$ac_objext
30714 if { (ac_try="$ac_compile"
30715 case "(($ac_try" in
30716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717   *) ac_try_echo=$ac_try;;
30718 esac
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720   (eval "$ac_compile") 2>conftest.er1
30721   ac_status=$?
30722   grep -v '^ *+' conftest.er1 >conftest.err
30723   rm -f conftest.er1
30724   cat conftest.err >&5
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); } &&
30727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30728   { (case "(($ac_try" in
30729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30730   *) ac_try_echo=$ac_try;;
30731 esac
30732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30733   (eval "$ac_try") 2>&5
30734   ac_status=$?
30735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736   (exit $ac_status); }; } &&
30737          { ac_try='test -s conftest.$ac_objext'
30738   { (case "(($ac_try" in
30739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740   *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743   (eval "$ac_try") 2>&5
30744   ac_status=$?
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); }; }; then
30747   ac_cv_type_u_int64_t=yes
30748 else
30749   echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30751
30752         ac_cv_type_u_int64_t=no
30753 fi
30754
30755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756 fi
30757 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30758 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30759 if test $ac_cv_type_u_int64_t = yes; then
30760
30761 cat >>confdefs.h <<_ACEOF
30762 #define HAVE_U_INT64_T 1
30763 _ACEOF
30764
30765
30766 else
30767   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30768 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30769    { (exit 1); exit 1; }; }
30770 fi
30771
30772 fi
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30784 do
30785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30789   echo $ECHO_N "(cached) $ECHO_C" >&6
30790 else
30791   cat >conftest.$ac_ext <<_ACEOF
30792 /* confdefs.h.  */
30793 _ACEOF
30794 cat confdefs.h >>conftest.$ac_ext
30795 cat >>conftest.$ac_ext <<_ACEOF
30796 /* end confdefs.h.  */
30797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30799 #define $ac_func innocuous_$ac_func
30800
30801 /* System header to define __stub macros and hopefully few prototypes,
30802     which can conflict with char $ac_func (); below.
30803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30804     <limits.h> exists even on freestanding compilers.  */
30805
30806 #ifdef __STDC__
30807 # include <limits.h>
30808 #else
30809 # include <assert.h>
30810 #endif
30811
30812 #undef $ac_func
30813
30814 /* Override any GCC internal prototype to avoid an error.
30815    Use char because int might match the return type of a GCC
30816    builtin and then its argument prototype would still apply.  */
30817 #ifdef __cplusplus
30818 extern "C"
30819 #endif
30820 char $ac_func ();
30821 /* The GNU C library defines this for functions which it implements
30822     to always fail with ENOSYS.  Some functions are actually named
30823     something starting with __ and the normal name is an alias.  */
30824 #if defined __stub_$ac_func || defined __stub___$ac_func
30825 choke me
30826 #endif
30827
30828 int
30829 main ()
30830 {
30831 return $ac_func ();
30832   ;
30833   return 0;
30834 }
30835 _ACEOF
30836 rm -f conftest.$ac_objext conftest$ac_exeext
30837 if { (ac_try="$ac_link"
30838 case "(($ac_try" in
30839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840   *) ac_try_echo=$ac_try;;
30841 esac
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843   (eval "$ac_link") 2>conftest.er1
30844   ac_status=$?
30845   grep -v '^ *+' conftest.er1 >conftest.err
30846   rm -f conftest.er1
30847   cat conftest.err >&5
30848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849   (exit $ac_status); } &&
30850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30851   { (case "(($ac_try" in
30852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853   *) ac_try_echo=$ac_try;;
30854 esac
30855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856   (eval "$ac_try") 2>&5
30857   ac_status=$?
30858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859   (exit $ac_status); }; } &&
30860          { ac_try='test -s conftest$ac_exeext'
30861   { (case "(($ac_try" in
30862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863   *) ac_try_echo=$ac_try;;
30864 esac
30865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866   (eval "$ac_try") 2>&5
30867   ac_status=$?
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); }; }; then
30870   eval "$as_ac_var=yes"
30871 else
30872   echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30874
30875         eval "$as_ac_var=no"
30876 fi
30877
30878 rm -f core conftest.err conftest.$ac_objext \
30879       conftest$ac_exeext conftest.$ac_ext
30880 fi
30881 ac_res=`eval echo '${'$as_ac_var'}'`
30882                { echo "$as_me:$LINENO: result: $ac_res" >&5
30883 echo "${ECHO_T}$ac_res" >&6; }
30884 if test `eval echo '${'$as_ac_var'}'` = yes; then
30885   cat >>confdefs.h <<_ACEOF
30886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30887 _ACEOF
30888
30889 fi
30890 done
30891
30892
30893
30894
30895
30896 for ac_func in powf fmodf strtof round
30897 do
30898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30902   echo $ECHO_N "(cached) $ECHO_C" >&6
30903 else
30904   cat >conftest.$ac_ext <<_ACEOF
30905 /* confdefs.h.  */
30906 _ACEOF
30907 cat confdefs.h >>conftest.$ac_ext
30908 cat >>conftest.$ac_ext <<_ACEOF
30909 /* end confdefs.h.  */
30910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30912 #define $ac_func innocuous_$ac_func
30913
30914 /* System header to define __stub macros and hopefully few prototypes,
30915     which can conflict with char $ac_func (); below.
30916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917     <limits.h> exists even on freestanding compilers.  */
30918
30919 #ifdef __STDC__
30920 # include <limits.h>
30921 #else
30922 # include <assert.h>
30923 #endif
30924
30925 #undef $ac_func
30926
30927 /* Override any GCC internal prototype to avoid an error.
30928    Use char because int might match the return type of a GCC
30929    builtin and then its argument prototype would still apply.  */
30930 #ifdef __cplusplus
30931 extern "C"
30932 #endif
30933 char $ac_func ();
30934 /* The GNU C library defines this for functions which it implements
30935     to always fail with ENOSYS.  Some functions are actually named
30936     something starting with __ and the normal name is an alias.  */
30937 #if defined __stub_$ac_func || defined __stub___$ac_func
30938 choke me
30939 #endif
30940
30941 int
30942 main ()
30943 {
30944 return $ac_func ();
30945   ;
30946   return 0;
30947 }
30948 _ACEOF
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (ac_try="$ac_link"
30951 case "(($ac_try" in
30952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953   *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956   (eval "$ac_link") 2>conftest.er1
30957   ac_status=$?
30958   grep -v '^ *+' conftest.er1 >conftest.err
30959   rm -f conftest.er1
30960   cat conftest.err >&5
30961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962   (exit $ac_status); } &&
30963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30964   { (case "(($ac_try" in
30965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966   *) ac_try_echo=$ac_try;;
30967 esac
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969   (eval "$ac_try") 2>&5
30970   ac_status=$?
30971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972   (exit $ac_status); }; } &&
30973          { ac_try='test -s conftest$ac_exeext'
30974   { (case "(($ac_try" in
30975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976   *) ac_try_echo=$ac_try;;
30977 esac
30978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979   (eval "$ac_try") 2>&5
30980   ac_status=$?
30981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982   (exit $ac_status); }; }; then
30983   eval "$as_ac_var=yes"
30984 else
30985   echo "$as_me: failed program was:" >&5
30986 sed 's/^/| /' conftest.$ac_ext >&5
30987
30988         eval "$as_ac_var=no"
30989 fi
30990
30991 rm -f core conftest.err conftest.$ac_objext \
30992       conftest$ac_exeext conftest.$ac_ext
30993 fi
30994 ac_res=`eval echo '${'$as_ac_var'}'`
30995                { echo "$as_me:$LINENO: result: $ac_res" >&5
30996 echo "${ECHO_T}$ac_res" >&6; }
30997 if test `eval echo '${'$as_ac_var'}'` = yes; then
30998   cat >>confdefs.h <<_ACEOF
30999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31000 _ACEOF
31001
31002 fi
31003 done
31004
31005
31006
31007
31008
31009
31010 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31011 do
31012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31016   echo $ECHO_N "(cached) $ECHO_C" >&6
31017 else
31018   cat >conftest.$ac_ext <<_ACEOF
31019 /* confdefs.h.  */
31020 _ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h.  */
31024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31026 #define $ac_func innocuous_$ac_func
31027
31028 /* System header to define __stub macros and hopefully few prototypes,
31029     which can conflict with char $ac_func (); below.
31030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31031     <limits.h> exists even on freestanding compilers.  */
31032
31033 #ifdef __STDC__
31034 # include <limits.h>
31035 #else
31036 # include <assert.h>
31037 #endif
31038
31039 #undef $ac_func
31040
31041 /* Override any GCC internal prototype to avoid an error.
31042    Use char because int might match the return type of a GCC
31043    builtin and then its argument prototype would still apply.  */
31044 #ifdef __cplusplus
31045 extern "C"
31046 #endif
31047 char $ac_func ();
31048 /* The GNU C library defines this for functions which it implements
31049     to always fail with ENOSYS.  Some functions are actually named
31050     something starting with __ and the normal name is an alias.  */
31051 #if defined __stub_$ac_func || defined __stub___$ac_func
31052 choke me
31053 #endif
31054
31055 int
31056 main ()
31057 {
31058 return $ac_func ();
31059   ;
31060   return 0;
31061 }
31062 _ACEOF
31063 rm -f conftest.$ac_objext conftest$ac_exeext
31064 if { (ac_try="$ac_link"
31065 case "(($ac_try" in
31066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067   *) ac_try_echo=$ac_try;;
31068 esac
31069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070   (eval "$ac_link") 2>conftest.er1
31071   ac_status=$?
31072   grep -v '^ *+' conftest.er1 >conftest.err
31073   rm -f conftest.er1
31074   cat conftest.err >&5
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); } &&
31077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31078   { (case "(($ac_try" in
31079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080   *) ac_try_echo=$ac_try;;
31081 esac
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083   (eval "$ac_try") 2>&5
31084   ac_status=$?
31085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086   (exit $ac_status); }; } &&
31087          { ac_try='test -s conftest$ac_exeext'
31088   { (case "(($ac_try" in
31089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090   *) ac_try_echo=$ac_try;;
31091 esac
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093   (eval "$ac_try") 2>&5
31094   ac_status=$?
31095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096   (exit $ac_status); }; }; then
31097   eval "$as_ac_var=yes"
31098 else
31099   echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31101
31102         eval "$as_ac_var=no"
31103 fi
31104
31105 rm -f core conftest.err conftest.$ac_objext \
31106       conftest$ac_exeext conftest.$ac_ext
31107 fi
31108 ac_res=`eval echo '${'$as_ac_var'}'`
31109                { echo "$as_me:$LINENO: result: $ac_res" >&5
31110 echo "${ECHO_T}$ac_res" >&6; }
31111 if test `eval echo '${'$as_ac_var'}'` = yes; then
31112   cat >>confdefs.h <<_ACEOF
31113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31114 _ACEOF
31115
31116 fi
31117 done
31118
31119
31120
31121
31122 for ac_func in isatty mkdtemp mkstemp
31123 do
31124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31128   echo $ECHO_N "(cached) $ECHO_C" >&6
31129 else
31130   cat >conftest.$ac_ext <<_ACEOF
31131 /* confdefs.h.  */
31132 _ACEOF
31133 cat confdefs.h >>conftest.$ac_ext
31134 cat >>conftest.$ac_ext <<_ACEOF
31135 /* end confdefs.h.  */
31136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31138 #define $ac_func innocuous_$ac_func
31139
31140 /* System header to define __stub macros and hopefully few prototypes,
31141     which can conflict with char $ac_func (); below.
31142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31143     <limits.h> exists even on freestanding compilers.  */
31144
31145 #ifdef __STDC__
31146 # include <limits.h>
31147 #else
31148 # include <assert.h>
31149 #endif
31150
31151 #undef $ac_func
31152
31153 /* Override any GCC internal prototype to avoid an error.
31154    Use char because int might match the return type of a GCC
31155    builtin and then its argument prototype would still apply.  */
31156 #ifdef __cplusplus
31157 extern "C"
31158 #endif
31159 char $ac_func ();
31160 /* The GNU C library defines this for functions which it implements
31161     to always fail with ENOSYS.  Some functions are actually named
31162     something starting with __ and the normal name is an alias.  */
31163 #if defined __stub_$ac_func || defined __stub___$ac_func
31164 choke me
31165 #endif
31166
31167 int
31168 main ()
31169 {
31170 return $ac_func ();
31171   ;
31172   return 0;
31173 }
31174 _ACEOF
31175 rm -f conftest.$ac_objext conftest$ac_exeext
31176 if { (ac_try="$ac_link"
31177 case "(($ac_try" in
31178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179   *) ac_try_echo=$ac_try;;
31180 esac
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182   (eval "$ac_link") 2>conftest.er1
31183   ac_status=$?
31184   grep -v '^ *+' conftest.er1 >conftest.err
31185   rm -f conftest.er1
31186   cat conftest.err >&5
31187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188   (exit $ac_status); } &&
31189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31190   { (case "(($ac_try" in
31191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192   *) ac_try_echo=$ac_try;;
31193 esac
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195   (eval "$ac_try") 2>&5
31196   ac_status=$?
31197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198   (exit $ac_status); }; } &&
31199          { ac_try='test -s conftest$ac_exeext'
31200   { (case "(($ac_try" in
31201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202   *) ac_try_echo=$ac_try;;
31203 esac
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205   (eval "$ac_try") 2>&5
31206   ac_status=$?
31207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208   (exit $ac_status); }; }; then
31209   eval "$as_ac_var=yes"
31210 else
31211   echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31213
31214         eval "$as_ac_var=no"
31215 fi
31216
31217 rm -f core conftest.err conftest.$ac_objext \
31218       conftest$ac_exeext conftest.$ac_ext
31219 fi
31220 ac_res=`eval echo '${'$as_ac_var'}'`
31221                { echo "$as_me:$LINENO: result: $ac_res" >&5
31222 echo "${ECHO_T}$ac_res" >&6; }
31223 if test `eval echo '${'$as_ac_var'}'` = yes; then
31224   cat >>confdefs.h <<_ACEOF
31225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31226 _ACEOF
31227
31228 fi
31229 done
31230
31231
31232
31233
31234
31235
31236
31237
31238 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31239 do
31240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31244   echo $ECHO_N "(cached) $ECHO_C" >&6
31245 else
31246   cat >conftest.$ac_ext <<_ACEOF
31247 /* confdefs.h.  */
31248 _ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h.  */
31252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31254 #define $ac_func innocuous_$ac_func
31255
31256 /* System header to define __stub macros and hopefully few prototypes,
31257     which can conflict with char $ac_func (); below.
31258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31259     <limits.h> exists even on freestanding compilers.  */
31260
31261 #ifdef __STDC__
31262 # include <limits.h>
31263 #else
31264 # include <assert.h>
31265 #endif
31266
31267 #undef $ac_func
31268
31269 /* Override any GCC internal prototype to avoid an error.
31270    Use char because int might match the return type of a GCC
31271    builtin and then its argument prototype would still apply.  */
31272 #ifdef __cplusplus
31273 extern "C"
31274 #endif
31275 char $ac_func ();
31276 /* The GNU C library defines this for functions which it implements
31277     to always fail with ENOSYS.  Some functions are actually named
31278     something starting with __ and the normal name is an alias.  */
31279 #if defined __stub_$ac_func || defined __stub___$ac_func
31280 choke me
31281 #endif
31282
31283 int
31284 main ()
31285 {
31286 return $ac_func ();
31287   ;
31288   return 0;
31289 }
31290 _ACEOF
31291 rm -f conftest.$ac_objext conftest$ac_exeext
31292 if { (ac_try="$ac_link"
31293 case "(($ac_try" in
31294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295   *) ac_try_echo=$ac_try;;
31296 esac
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298   (eval "$ac_link") 2>conftest.er1
31299   ac_status=$?
31300   grep -v '^ *+' conftest.er1 >conftest.err
31301   rm -f conftest.er1
31302   cat conftest.err >&5
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); } &&
31305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31306   { (case "(($ac_try" in
31307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308   *) ac_try_echo=$ac_try;;
31309 esac
31310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311   (eval "$ac_try") 2>&5
31312   ac_status=$?
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); }; } &&
31315          { ac_try='test -s conftest$ac_exeext'
31316   { (case "(($ac_try" in
31317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318   *) ac_try_echo=$ac_try;;
31319 esac
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321   (eval "$ac_try") 2>&5
31322   ac_status=$?
31323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324   (exit $ac_status); }; }; then
31325   eval "$as_ac_var=yes"
31326 else
31327   echo "$as_me: failed program was:" >&5
31328 sed 's/^/| /' conftest.$ac_ext >&5
31329
31330         eval "$as_ac_var=no"
31331 fi
31332
31333 rm -f core conftest.err conftest.$ac_objext \
31334       conftest$ac_exeext conftest.$ac_ext
31335 fi
31336 ac_res=`eval echo '${'$as_ac_var'}'`
31337                { echo "$as_me:$LINENO: result: $ac_res" >&5
31338 echo "${ECHO_T}$ac_res" >&6; }
31339 if test `eval echo '${'$as_ac_var'}'` = yes; then
31340   cat >>confdefs.h <<_ACEOF
31341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31342 _ACEOF
31343
31344 fi
31345 done
31346
31347
31348
31349
31350
31351 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31352 do
31353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31357   echo $ECHO_N "(cached) $ECHO_C" >&6
31358 else
31359   cat >conftest.$ac_ext <<_ACEOF
31360 /* confdefs.h.  */
31361 _ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h.  */
31365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31367 #define $ac_func innocuous_$ac_func
31368
31369 /* System header to define __stub macros and hopefully few prototypes,
31370     which can conflict with char $ac_func (); below.
31371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31372     <limits.h> exists even on freestanding compilers.  */
31373
31374 #ifdef __STDC__
31375 # include <limits.h>
31376 #else
31377 # include <assert.h>
31378 #endif
31379
31380 #undef $ac_func
31381
31382 /* Override any GCC internal prototype to avoid an error.
31383    Use char because int might match the return type of a GCC
31384    builtin and then its argument prototype would still apply.  */
31385 #ifdef __cplusplus
31386 extern "C"
31387 #endif
31388 char $ac_func ();
31389 /* The GNU C library defines this for functions which it implements
31390     to always fail with ENOSYS.  Some functions are actually named
31391     something starting with __ and the normal name is an alias.  */
31392 #if defined __stub_$ac_func || defined __stub___$ac_func
31393 choke me
31394 #endif
31395
31396 int
31397 main ()
31398 {
31399 return $ac_func ();
31400   ;
31401   return 0;
31402 }
31403 _ACEOF
31404 rm -f conftest.$ac_objext conftest$ac_exeext
31405 if { (ac_try="$ac_link"
31406 case "(($ac_try" in
31407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408   *) ac_try_echo=$ac_try;;
31409 esac
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411   (eval "$ac_link") 2>conftest.er1
31412   ac_status=$?
31413   grep -v '^ *+' conftest.er1 >conftest.err
31414   rm -f conftest.er1
31415   cat conftest.err >&5
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); } &&
31418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31419   { (case "(($ac_try" in
31420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421   *) ac_try_echo=$ac_try;;
31422 esac
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424   (eval "$ac_try") 2>&5
31425   ac_status=$?
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); }; } &&
31428          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); }; }; then
31438   eval "$as_ac_var=yes"
31439 else
31440   echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31442
31443         eval "$as_ac_var=no"
31444 fi
31445
31446 rm -f core conftest.err conftest.$ac_objext \
31447       conftest$ac_exeext conftest.$ac_ext
31448 fi
31449 ac_res=`eval echo '${'$as_ac_var'}'`
31450                { echo "$as_me:$LINENO: result: $ac_res" >&5
31451 echo "${ECHO_T}$ac_res" >&6; }
31452 if test `eval echo '${'$as_ac_var'}'` = yes; then
31453   cat >>confdefs.h <<_ACEOF
31454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31455 _ACEOF
31456
31457 fi
31458 done
31459
31460
31461
31462
31463
31464 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31465 do
31466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31470   echo $ECHO_N "(cached) $ECHO_C" >&6
31471 else
31472   cat >conftest.$ac_ext <<_ACEOF
31473 /* confdefs.h.  */
31474 _ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h.  */
31478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31480 #define $ac_func innocuous_$ac_func
31481
31482 /* System header to define __stub macros and hopefully few prototypes,
31483     which can conflict with char $ac_func (); below.
31484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485     <limits.h> exists even on freestanding compilers.  */
31486
31487 #ifdef __STDC__
31488 # include <limits.h>
31489 #else
31490 # include <assert.h>
31491 #endif
31492
31493 #undef $ac_func
31494
31495 /* Override any GCC internal prototype to avoid an error.
31496    Use char because int might match the return type of a GCC
31497    builtin and then its argument prototype would still apply.  */
31498 #ifdef __cplusplus
31499 extern "C"
31500 #endif
31501 char $ac_func ();
31502 /* The GNU C library defines this for functions which it implements
31503     to always fail with ENOSYS.  Some functions are actually named
31504     something starting with __ and the normal name is an alias.  */
31505 #if defined __stub_$ac_func || defined __stub___$ac_func
31506 choke me
31507 #endif
31508
31509 int
31510 main ()
31511 {
31512 return $ac_func ();
31513   ;
31514   return 0;
31515 }
31516 _ACEOF
31517 rm -f conftest.$ac_objext conftest$ac_exeext
31518 if { (ac_try="$ac_link"
31519 case "(($ac_try" in
31520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521   *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524   (eval "$ac_link") 2>conftest.er1
31525   ac_status=$?
31526   grep -v '^ *+' conftest.er1 >conftest.err
31527   rm -f conftest.er1
31528   cat conftest.err >&5
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); } &&
31531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31532   { (case "(($ac_try" in
31533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534   *) ac_try_echo=$ac_try;;
31535 esac
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537   (eval "$ac_try") 2>&5
31538   ac_status=$?
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); }; } &&
31541          { ac_try='test -s conftest$ac_exeext'
31542   { (case "(($ac_try" in
31543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544   *) ac_try_echo=$ac_try;;
31545 esac
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547   (eval "$ac_try") 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; }; then
31551   eval "$as_ac_var=yes"
31552 else
31553   echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556         eval "$as_ac_var=no"
31557 fi
31558
31559 rm -f core conftest.err conftest.$ac_objext \
31560       conftest$ac_exeext conftest.$ac_ext
31561 fi
31562 ac_res=`eval echo '${'$as_ac_var'}'`
31563                { echo "$as_me:$LINENO: result: $ac_res" >&5
31564 echo "${ECHO_T}$ac_res" >&6; }
31565 if test `eval echo '${'$as_ac_var'}'` = yes; then
31566   cat >>confdefs.h <<_ACEOF
31567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31568 _ACEOF
31569
31570 fi
31571 done
31572
31573 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31574 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31575 if test "${llvm_cv_c_printf_a+set}" = set; then
31576   echo $ECHO_N "(cached) $ECHO_C" >&6
31577 else
31578   ac_ext=c
31579 ac_cpp='$CPP $CPPFLAGS'
31580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31583
31584  if test "$cross_compiling" = yes; then
31585   llvmac_cv_c_printf_a=no
31586 else
31587   cat >conftest.$ac_ext <<_ACEOF
31588
31589   /* confdefs.h.  */
31590 _ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h.  */
31594
31595 #include <stdio.h>
31596 #include <stdlib.h>
31597
31598 int
31599 main ()
31600 {
31601
31602 volatile double A, B;
31603 char Buffer[100];
31604 A = 1;
31605 A /= 10.0;
31606 sprintf(Buffer, "%a", A);
31607 B = atof(Buffer);
31608 if (A != B)
31609   return (1);
31610 if (A != 0x1.999999999999ap-4)
31611   return (1);
31612 return (0);
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest$ac_exeext
31618 if { (ac_try="$ac_link"
31619 case "(($ac_try" in
31620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621   *) ac_try_echo=$ac_try;;
31622 esac
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624   (eval "$ac_link") 2>&5
31625   ac_status=$?
31626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31628   { (case "(($ac_try" in
31629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630   *) ac_try_echo=$ac_try;;
31631 esac
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633   (eval "$ac_try") 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; }; then
31637   llvm_cv_c_printf_a=yes
31638 else
31639   echo "$as_me: program exited with status $ac_status" >&5
31640 echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31642
31643 ( exit $ac_status )
31644 llvmac_cv_c_printf_a=no
31645 fi
31646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31647 fi
31648
31649
31650  ac_ext=c
31651 ac_cpp='$CPP $CPPFLAGS'
31652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31655
31656 fi
31657 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31658 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31659  if test "$llvm_cv_c_printf_a" = "yes"; then
31660
31661 cat >>confdefs.h <<\_ACEOF
31662 #define HAVE_PRINTF_A 1
31663 _ACEOF
31664
31665  fi
31666
31667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31668 # for constant arguments.  Useless!
31669 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31670 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31671 if test "${ac_cv_working_alloca_h+set}" = set; then
31672   echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674   cat >conftest.$ac_ext <<_ACEOF
31675 /* confdefs.h.  */
31676 _ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h.  */
31680 #include <alloca.h>
31681 int
31682 main ()
31683 {
31684 char *p = (char *) alloca (2 * sizeof (int));
31685                           if (p) return 0;
31686   ;
31687   return 0;
31688 }
31689 _ACEOF
31690 rm -f conftest.$ac_objext conftest$ac_exeext
31691 if { (ac_try="$ac_link"
31692 case "(($ac_try" in
31693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694   *) ac_try_echo=$ac_try;;
31695 esac
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697   (eval "$ac_link") 2>conftest.er1
31698   ac_status=$?
31699   grep -v '^ *+' conftest.er1 >conftest.err
31700   rm -f conftest.er1
31701   cat conftest.err >&5
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); } &&
31704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31705   { (case "(($ac_try" in
31706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31707   *) ac_try_echo=$ac_try;;
31708 esac
31709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31710   (eval "$ac_try") 2>&5
31711   ac_status=$?
31712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713   (exit $ac_status); }; } &&
31714          { ac_try='test -s conftest$ac_exeext'
31715   { (case "(($ac_try" in
31716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717   *) ac_try_echo=$ac_try;;
31718 esac
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720   (eval "$ac_try") 2>&5
31721   ac_status=$?
31722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); }; }; then
31724   ac_cv_working_alloca_h=yes
31725 else
31726   echo "$as_me: failed program was:" >&5
31727 sed 's/^/| /' conftest.$ac_ext >&5
31728
31729         ac_cv_working_alloca_h=no
31730 fi
31731
31732 rm -f core conftest.err conftest.$ac_objext \
31733       conftest$ac_exeext conftest.$ac_ext
31734 fi
31735 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31736 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31737 if test $ac_cv_working_alloca_h = yes; then
31738
31739 cat >>confdefs.h <<\_ACEOF
31740 #define HAVE_ALLOCA_H 1
31741 _ACEOF
31742
31743 fi
31744
31745 { echo "$as_me:$LINENO: checking for alloca" >&5
31746 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31747 if test "${ac_cv_func_alloca_works+set}" = set; then
31748   echo $ECHO_N "(cached) $ECHO_C" >&6
31749 else
31750   cat >conftest.$ac_ext <<_ACEOF
31751 /* confdefs.h.  */
31752 _ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h.  */
31756 #ifdef __GNUC__
31757 # define alloca __builtin_alloca
31758 #else
31759 # ifdef _MSC_VER
31760 #  include <malloc.h>
31761 #  define alloca _alloca
31762 # else
31763 #  if HAVE_ALLOCA_H
31764 #   include <alloca.h>
31765 #  else
31766 #   ifdef _AIX
31767  #pragma alloca
31768 #   else
31769 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31770 char *alloca ();
31771 #    endif
31772 #   endif
31773 #  endif
31774 # endif
31775 #endif
31776
31777 int
31778 main ()
31779 {
31780 char *p = (char *) alloca (1);
31781                                     if (p) return 0;
31782   ;
31783   return 0;
31784 }
31785 _ACEOF
31786 rm -f conftest.$ac_objext conftest$ac_exeext
31787 if { (ac_try="$ac_link"
31788 case "(($ac_try" in
31789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790   *) ac_try_echo=$ac_try;;
31791 esac
31792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793   (eval "$ac_link") 2>conftest.er1
31794   ac_status=$?
31795   grep -v '^ *+' conftest.er1 >conftest.err
31796   rm -f conftest.er1
31797   cat conftest.err >&5
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); } &&
31800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31801   { (case "(($ac_try" in
31802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803   *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806   (eval "$ac_try") 2>&5
31807   ac_status=$?
31808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809   (exit $ac_status); }; } &&
31810          { ac_try='test -s conftest$ac_exeext'
31811   { (case "(($ac_try" in
31812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813   *) ac_try_echo=$ac_try;;
31814 esac
31815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816   (eval "$ac_try") 2>&5
31817   ac_status=$?
31818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819   (exit $ac_status); }; }; then
31820   ac_cv_func_alloca_works=yes
31821 else
31822   echo "$as_me: failed program was:" >&5
31823 sed 's/^/| /' conftest.$ac_ext >&5
31824
31825         ac_cv_func_alloca_works=no
31826 fi
31827
31828 rm -f core conftest.err conftest.$ac_objext \
31829       conftest$ac_exeext conftest.$ac_ext
31830 fi
31831 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31832 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31833
31834 if test $ac_cv_func_alloca_works = yes; then
31835
31836 cat >>confdefs.h <<\_ACEOF
31837 #define HAVE_ALLOCA 1
31838 _ACEOF
31839
31840 else
31841   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31842 # that cause trouble.  Some versions do not even contain alloca or
31843 # contain a buggy version.  If you still want to use their alloca,
31844 # use ar to extract alloca.o from them instead of compiling alloca.c.
31845
31846 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31847
31848 cat >>confdefs.h <<\_ACEOF
31849 #define C_ALLOCA 1
31850 _ACEOF
31851
31852
31853 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31854 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31855 if test "${ac_cv_os_cray+set}" = set; then
31856   echo $ECHO_N "(cached) $ECHO_C" >&6
31857 else
31858   cat >conftest.$ac_ext <<_ACEOF
31859 /* confdefs.h.  */
31860 _ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h.  */
31864 #if defined CRAY && ! defined CRAY2
31865 webecray
31866 #else
31867 wenotbecray
31868 #endif
31869
31870 _ACEOF
31871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31872   $EGREP "webecray" >/dev/null 2>&1; then
31873   ac_cv_os_cray=yes
31874 else
31875   ac_cv_os_cray=no
31876 fi
31877 rm -f conftest*
31878
31879 fi
31880 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31881 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31882 if test $ac_cv_os_cray = yes; then
31883   for ac_func in _getb67 GETB67 getb67; do
31884     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31888   echo $ECHO_N "(cached) $ECHO_C" >&6
31889 else
31890   cat >conftest.$ac_ext <<_ACEOF
31891 /* confdefs.h.  */
31892 _ACEOF
31893 cat confdefs.h >>conftest.$ac_ext
31894 cat >>conftest.$ac_ext <<_ACEOF
31895 /* end confdefs.h.  */
31896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31898 #define $ac_func innocuous_$ac_func
31899
31900 /* System header to define __stub macros and hopefully few prototypes,
31901     which can conflict with char $ac_func (); below.
31902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31903     <limits.h> exists even on freestanding compilers.  */
31904
31905 #ifdef __STDC__
31906 # include <limits.h>
31907 #else
31908 # include <assert.h>
31909 #endif
31910
31911 #undef $ac_func
31912
31913 /* Override any GCC internal prototype to avoid an error.
31914    Use char because int might match the return type of a GCC
31915    builtin and then its argument prototype would still apply.  */
31916 #ifdef __cplusplus
31917 extern "C"
31918 #endif
31919 char $ac_func ();
31920 /* The GNU C library defines this for functions which it implements
31921     to always fail with ENOSYS.  Some functions are actually named
31922     something starting with __ and the normal name is an alias.  */
31923 #if defined __stub_$ac_func || defined __stub___$ac_func
31924 choke me
31925 #endif
31926
31927 int
31928 main ()
31929 {
31930 return $ac_func ();
31931   ;
31932   return 0;
31933 }
31934 _ACEOF
31935 rm -f conftest.$ac_objext conftest$ac_exeext
31936 if { (ac_try="$ac_link"
31937 case "(($ac_try" in
31938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939   *) ac_try_echo=$ac_try;;
31940 esac
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942   (eval "$ac_link") 2>conftest.er1
31943   ac_status=$?
31944   grep -v '^ *+' conftest.er1 >conftest.err
31945   rm -f conftest.er1
31946   cat conftest.err >&5
31947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948   (exit $ac_status); } &&
31949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31950   { (case "(($ac_try" in
31951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952   *) ac_try_echo=$ac_try;;
31953 esac
31954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955   (eval "$ac_try") 2>&5
31956   ac_status=$?
31957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958   (exit $ac_status); }; } &&
31959          { ac_try='test -s conftest$ac_exeext'
31960   { (case "(($ac_try" in
31961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962   *) ac_try_echo=$ac_try;;
31963 esac
31964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965   (eval "$ac_try") 2>&5
31966   ac_status=$?
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); }; }; then
31969   eval "$as_ac_var=yes"
31970 else
31971   echo "$as_me: failed program was:" >&5
31972 sed 's/^/| /' conftest.$ac_ext >&5
31973
31974         eval "$as_ac_var=no"
31975 fi
31976
31977 rm -f core conftest.err conftest.$ac_objext \
31978       conftest$ac_exeext conftest.$ac_ext
31979 fi
31980 ac_res=`eval echo '${'$as_ac_var'}'`
31981                { echo "$as_me:$LINENO: result: $ac_res" >&5
31982 echo "${ECHO_T}$ac_res" >&6; }
31983 if test `eval echo '${'$as_ac_var'}'` = yes; then
31984
31985 cat >>confdefs.h <<_ACEOF
31986 #define CRAY_STACKSEG_END $ac_func
31987 _ACEOF
31988
31989     break
31990 fi
31991
31992   done
31993 fi
31994
31995 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31996 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31997 if test "${ac_cv_c_stack_direction+set}" = set; then
31998   echo $ECHO_N "(cached) $ECHO_C" >&6
31999 else
32000   if test "$cross_compiling" = yes; then
32001   ac_cv_c_stack_direction=0
32002 else
32003   cat >conftest.$ac_ext <<_ACEOF
32004 /* confdefs.h.  */
32005 _ACEOF
32006 cat confdefs.h >>conftest.$ac_ext
32007 cat >>conftest.$ac_ext <<_ACEOF
32008 /* end confdefs.h.  */
32009 $ac_includes_default
32010 int
32011 find_stack_direction ()
32012 {
32013   static char *addr = 0;
32014   auto char dummy;
32015   if (addr == 0)
32016     {
32017       addr = &dummy;
32018       return find_stack_direction ();
32019     }
32020   else
32021     return (&dummy > addr) ? 1 : -1;
32022 }
32023
32024 int
32025 main ()
32026 {
32027   return find_stack_direction () < 0;
32028 }
32029 _ACEOF
32030 rm -f conftest$ac_exeext
32031 if { (ac_try="$ac_link"
32032 case "(($ac_try" in
32033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034   *) ac_try_echo=$ac_try;;
32035 esac
32036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037   (eval "$ac_link") 2>&5
32038   ac_status=$?
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32041   { (case "(($ac_try" in
32042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043   *) ac_try_echo=$ac_try;;
32044 esac
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046   (eval "$ac_try") 2>&5
32047   ac_status=$?
32048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049   (exit $ac_status); }; }; then
32050   ac_cv_c_stack_direction=1
32051 else
32052   echo "$as_me: program exited with status $ac_status" >&5
32053 echo "$as_me: failed program was:" >&5
32054 sed 's/^/| /' conftest.$ac_ext >&5
32055
32056 ( exit $ac_status )
32057 ac_cv_c_stack_direction=-1
32058 fi
32059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32060 fi
32061
32062
32063 fi
32064 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32065 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32066
32067 cat >>confdefs.h <<_ACEOF
32068 #define STACK_DIRECTION $ac_cv_c_stack_direction
32069 _ACEOF
32070
32071
32072 fi
32073
32074
32075 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32076 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32077 if test "${ac_cv_func_rand48+set}" = set; then
32078   echo $ECHO_N "(cached) $ECHO_C" >&6
32079 else
32080   ac_ext=cpp
32081 ac_cpp='$CXXCPP $CPPFLAGS'
32082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32085
32086    cat >conftest.$ac_ext <<_ACEOF
32087 /* confdefs.h.  */
32088 _ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h.  */
32092 #include <stdlib.h>
32093 int
32094 main ()
32095 {
32096 srand48(0);lrand48();drand48();
32097   ;
32098   return 0;
32099 }
32100 _ACEOF
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105   *) ac_try_echo=$ac_try;;
32106 esac
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108   (eval "$ac_compile") 2>conftest.er1
32109   ac_status=$?
32110   grep -v '^ *+' conftest.er1 >conftest.err
32111   rm -f conftest.er1
32112   cat conftest.err >&5
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); } &&
32115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116   { (case "(($ac_try" in
32117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118   *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121   (eval "$ac_try") 2>&5
32122   ac_status=$?
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); }; } &&
32125          { ac_try='test -s conftest.$ac_objext'
32126   { (case "(($ac_try" in
32127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128   *) ac_try_echo=$ac_try;;
32129 esac
32130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131   (eval "$ac_try") 2>&5
32132   ac_status=$?
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); }; }; then
32135   ac_cv_func_rand48=yes
32136 else
32137   echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32139
32140         ac_cv_func_rand48=no
32141 fi
32142
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144   ac_ext=c
32145 ac_cpp='$CPP $CPPFLAGS'
32146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32149
32150 fi
32151 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32152 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32153
32154 if test "$ac_cv_func_rand48" = "yes" ; then
32155
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_RAND48 1
32158 _ACEOF
32159
32160 fi
32161
32162
32163 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32164 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32165 if test "${ac_cv_cxx_namespaces+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168   ac_ext=cpp
32169 ac_cpp='$CXXCPP $CPPFLAGS'
32170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32173
32174  cat >conftest.$ac_ext <<_ACEOF
32175 /* confdefs.h.  */
32176 _ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h.  */
32180 namespace Outer { namespace Inner { int i = 0; }}
32181 int
32182 main ()
32183 {
32184 using namespace Outer::Inner; return i;
32185   ;
32186   return 0;
32187 }
32188 _ACEOF
32189 rm -f conftest.$ac_objext
32190 if { (ac_try="$ac_compile"
32191 case "(($ac_try" in
32192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32193   *) ac_try_echo=$ac_try;;
32194 esac
32195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32196   (eval "$ac_compile") 2>conftest.er1
32197   ac_status=$?
32198   grep -v '^ *+' conftest.er1 >conftest.err
32199   rm -f conftest.er1
32200   cat conftest.err >&5
32201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202   (exit $ac_status); } &&
32203          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32204   { (case "(($ac_try" in
32205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206   *) ac_try_echo=$ac_try;;
32207 esac
32208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209   (eval "$ac_try") 2>&5
32210   ac_status=$?
32211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212   (exit $ac_status); }; } &&
32213          { ac_try='test -s conftest.$ac_objext'
32214   { (case "(($ac_try" in
32215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216   *) ac_try_echo=$ac_try;;
32217 esac
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219   (eval "$ac_try") 2>&5
32220   ac_status=$?
32221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222   (exit $ac_status); }; }; then
32223   ac_cv_cxx_namespaces=yes
32224 else
32225   echo "$as_me: failed program was:" >&5
32226 sed 's/^/| /' conftest.$ac_ext >&5
32227
32228         ac_cv_cxx_namespaces=no
32229 fi
32230
32231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32232  ac_ext=c
32233 ac_cpp='$CPP $CPPFLAGS'
32234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32237
32238
32239 fi
32240 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32241 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32242 if test "$ac_cv_cxx_namespaces" = yes; then
32243
32244 cat >>confdefs.h <<\_ACEOF
32245 #define HAVE_NAMESPACES
32246 _ACEOF
32247
32248 fi
32249
32250 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32251 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32252 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32253   echo $ECHO_N "(cached) $ECHO_C" >&6
32254 else
32255
32256   ac_ext=cpp
32257 ac_cpp='$CXXCPP $CPPFLAGS'
32258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32261
32262   cat >conftest.$ac_ext <<_ACEOF
32263 /* confdefs.h.  */
32264 _ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h.  */
32268 #include <iterator>
32269 #ifdef HAVE_NAMESPACES
32270 using namespace std;
32271 #endif
32272 int
32273 main ()
32274 {
32275 iterator<int,int,int> t; return 0;
32276   ;
32277   return 0;
32278 }
32279 _ACEOF
32280 rm -f conftest.$ac_objext
32281 if { (ac_try="$ac_compile"
32282 case "(($ac_try" in
32283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284   *) ac_try_echo=$ac_try;;
32285 esac
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287   (eval "$ac_compile") 2>conftest.er1
32288   ac_status=$?
32289   grep -v '^ *+' conftest.er1 >conftest.err
32290   rm -f conftest.er1
32291   cat conftest.err >&5
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); } &&
32294          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32295   { (case "(($ac_try" in
32296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297   *) ac_try_echo=$ac_try;;
32298 esac
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300   (eval "$ac_try") 2>&5
32301   ac_status=$?
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); }; } &&
32304          { ac_try='test -s conftest.$ac_objext'
32305   { (case "(($ac_try" in
32306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307   *) ac_try_echo=$ac_try;;
32308 esac
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310   (eval "$ac_try") 2>&5
32311   ac_status=$?
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); }; }; then
32314   ac_cv_cxx_have_std_iterator=yes
32315 else
32316   echo "$as_me: failed program was:" >&5
32317 sed 's/^/| /' conftest.$ac_ext >&5
32318
32319         ac_cv_cxx_have_std_iterator=no
32320 fi
32321
32322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32323   ac_ext=c
32324 ac_cpp='$CPP $CPPFLAGS'
32325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32328
32329
32330 fi
32331 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32332 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32333 if test "$ac_cv_cxx_have_std_iterator" = yes
32334 then
32335
32336 cat >>confdefs.h <<\_ACEOF
32337 #define HAVE_STD_ITERATOR 1
32338 _ACEOF
32339
32340 else
32341
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_STD_ITERATOR 0
32344 _ACEOF
32345
32346 fi
32347
32348 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32349 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32350 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32351   echo $ECHO_N "(cached) $ECHO_C" >&6
32352 else
32353
32354   ac_ext=cpp
32355 ac_cpp='$CXXCPP $CPPFLAGS'
32356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32359
32360   cat >conftest.$ac_ext <<_ACEOF
32361 /* confdefs.h.  */
32362 _ACEOF
32363 cat confdefs.h >>conftest.$ac_ext
32364 cat >>conftest.$ac_ext <<_ACEOF
32365 /* end confdefs.h.  */
32366 #include <iterator>
32367 #ifdef HAVE_NAMESPACES
32368 using namespace std;
32369 #endif
32370 int
32371 main ()
32372 {
32373 bidirectional_iterator<int,int> t; return 0;
32374   ;
32375   return 0;
32376 }
32377 _ACEOF
32378 rm -f conftest.$ac_objext
32379 if { (ac_try="$ac_compile"
32380 case "(($ac_try" in
32381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382   *) ac_try_echo=$ac_try;;
32383 esac
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385   (eval "$ac_compile") 2>conftest.er1
32386   ac_status=$?
32387   grep -v '^ *+' conftest.er1 >conftest.err
32388   rm -f conftest.er1
32389   cat conftest.err >&5
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } &&
32392          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32393   { (case "(($ac_try" in
32394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395   *) ac_try_echo=$ac_try;;
32396 esac
32397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398   (eval "$ac_try") 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); }; } &&
32402          { ac_try='test -s conftest.$ac_objext'
32403   { (case "(($ac_try" in
32404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405   *) ac_try_echo=$ac_try;;
32406 esac
32407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408   (eval "$ac_try") 2>&5
32409   ac_status=$?
32410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411   (exit $ac_status); }; }; then
32412   ac_cv_cxx_have_bi_iterator=yes
32413 else
32414   echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32416
32417         ac_cv_cxx_have_bi_iterator=no
32418 fi
32419
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32421   ac_ext=c
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426
32427
32428 fi
32429 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32430 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32431 if test "$ac_cv_cxx_have_bi_iterator" = yes
32432 then
32433
32434 cat >>confdefs.h <<\_ACEOF
32435 #define HAVE_BI_ITERATOR 1
32436 _ACEOF
32437
32438 else
32439
32440 cat >>confdefs.h <<\_ACEOF
32441 #define HAVE_BI_ITERATOR 0
32442 _ACEOF
32443
32444 fi
32445
32446 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32447 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32448 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32449   echo $ECHO_N "(cached) $ECHO_C" >&6
32450 else
32451
32452   ac_ext=cpp
32453 ac_cpp='$CXXCPP $CPPFLAGS'
32454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32457
32458   cat >conftest.$ac_ext <<_ACEOF
32459 /* confdefs.h.  */
32460 _ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h.  */
32464 #include <iterator>
32465 #ifdef HAVE_NAMESPACES
32466 using namespace std;
32467 #endif
32468 int
32469 main ()
32470 {
32471 forward_iterator<int,int> t; return 0;
32472   ;
32473   return 0;
32474 }
32475 _ACEOF
32476 rm -f conftest.$ac_objext
32477 if { (ac_try="$ac_compile"
32478 case "(($ac_try" in
32479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480   *) ac_try_echo=$ac_try;;
32481 esac
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483   (eval "$ac_compile") 2>conftest.er1
32484   ac_status=$?
32485   grep -v '^ *+' conftest.er1 >conftest.err
32486   rm -f conftest.er1
32487   cat conftest.err >&5
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); } &&
32490          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32491   { (case "(($ac_try" in
32492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493   *) ac_try_echo=$ac_try;;
32494 esac
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496   (eval "$ac_try") 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); }; } &&
32500          { ac_try='test -s conftest.$ac_objext'
32501   { (case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_try") 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; }; then
32510   ac_cv_cxx_have_fwd_iterator=yes
32511 else
32512   echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32514
32515         ac_cv_cxx_have_fwd_iterator=no
32516 fi
32517
32518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32519   ac_ext=c
32520 ac_cpp='$CPP $CPPFLAGS'
32521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32524
32525
32526 fi
32527 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32528 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32529 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32530 then
32531
32532 cat >>confdefs.h <<\_ACEOF
32533 #define HAVE_FWD_ITERATOR 1
32534 _ACEOF
32535
32536 else
32537
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_FWD_ITERATOR 0
32540 _ACEOF
32541
32542 fi
32543
32544
32545 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32546 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32547 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32548   echo $ECHO_N "(cached) $ECHO_C" >&6
32549 else
32550   ac_ext=cpp
32551 ac_cpp='$CXXCPP $CPPFLAGS'
32552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555
32556    cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h.  */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h.  */
32562 #include <math.h>
32563 int
32564 main ()
32565 {
32566 float f; isnan(f);
32567   ;
32568   return 0;
32569 }
32570 _ACEOF
32571 rm -f conftest.$ac_objext
32572 if { (ac_try="$ac_compile"
32573 case "(($ac_try" in
32574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575   *) ac_try_echo=$ac_try;;
32576 esac
32577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578   (eval "$ac_compile") 2>conftest.er1
32579   ac_status=$?
32580   grep -v '^ *+' conftest.er1 >conftest.err
32581   rm -f conftest.er1
32582   cat conftest.err >&5
32583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584   (exit $ac_status); } &&
32585          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32586   { (case "(($ac_try" in
32587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588   *) ac_try_echo=$ac_try;;
32589 esac
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591   (eval "$ac_try") 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); }; } &&
32595          { ac_try='test -s conftest.$ac_objext'
32596   { (case "(($ac_try" in
32597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598   *) ac_try_echo=$ac_try;;
32599 esac
32600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601   (eval "$ac_try") 2>&5
32602   ac_status=$?
32603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604   (exit $ac_status); }; }; then
32605   ac_cv_func_isnan_in_math_h=yes
32606 else
32607   echo "$as_me: failed program was:" >&5
32608 sed 's/^/| /' conftest.$ac_ext >&5
32609
32610         ac_cv_func_isnan_in_math_h=no
32611 fi
32612
32613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32614   ac_ext=c
32615 ac_cpp='$CPP $CPPFLAGS'
32616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32619
32620 fi
32621 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32622 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32623
32624
32625 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32626
32627 cat >>confdefs.h <<\_ACEOF
32628 #define HAVE_ISNAN_IN_MATH_H 1
32629 _ACEOF
32630
32631 fi
32632
32633 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32634 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32635 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32636   echo $ECHO_N "(cached) $ECHO_C" >&6
32637 else
32638   ac_ext=cpp
32639 ac_cpp='$CXXCPP $CPPFLAGS'
32640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32643
32644    cat >conftest.$ac_ext <<_ACEOF
32645 /* confdefs.h.  */
32646 _ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h.  */
32650 #include <cmath>
32651 int
32652 main ()
32653 {
32654 float f; isnan(f);
32655   ;
32656   return 0;
32657 }
32658 _ACEOF
32659 rm -f conftest.$ac_objext
32660 if { (ac_try="$ac_compile"
32661 case "(($ac_try" in
32662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663   *) ac_try_echo=$ac_try;;
32664 esac
32665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666   (eval "$ac_compile") 2>conftest.er1
32667   ac_status=$?
32668   grep -v '^ *+' conftest.er1 >conftest.err
32669   rm -f conftest.er1
32670   cat conftest.err >&5
32671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672   (exit $ac_status); } &&
32673          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32674   { (case "(($ac_try" in
32675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676   *) ac_try_echo=$ac_try;;
32677 esac
32678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679   (eval "$ac_try") 2>&5
32680   ac_status=$?
32681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682   (exit $ac_status); }; } &&
32683          { ac_try='test -s conftest.$ac_objext'
32684   { (case "(($ac_try" in
32685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686   *) ac_try_echo=$ac_try;;
32687 esac
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689   (eval "$ac_try") 2>&5
32690   ac_status=$?
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); }; }; then
32693   ac_cv_func_isnan_in_cmath=yes
32694 else
32695   echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698         ac_cv_func_isnan_in_cmath=no
32699 fi
32700
32701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32702   ac_ext=c
32703 ac_cpp='$CPP $CPPFLAGS'
32704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707
32708 fi
32709 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32710 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32711
32712 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32713
32714 cat >>confdefs.h <<\_ACEOF
32715 #define HAVE_ISNAN_IN_CMATH 1
32716 _ACEOF
32717
32718 fi
32719
32720 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32721 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32722 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32723   echo $ECHO_N "(cached) $ECHO_C" >&6
32724 else
32725   ac_ext=cpp
32726 ac_cpp='$CXXCPP $CPPFLAGS'
32727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32730
32731    cat >conftest.$ac_ext <<_ACEOF
32732 /* confdefs.h.  */
32733 _ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h.  */
32737 #include <cmath>
32738 int
32739 main ()
32740 {
32741 float f; std::isnan(f);
32742   ;
32743   return 0;
32744 }
32745 _ACEOF
32746 rm -f conftest.$ac_objext
32747 if { (ac_try="$ac_compile"
32748 case "(($ac_try" in
32749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750   *) ac_try_echo=$ac_try;;
32751 esac
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753   (eval "$ac_compile") 2>conftest.er1
32754   ac_status=$?
32755   grep -v '^ *+' conftest.er1 >conftest.err
32756   rm -f conftest.er1
32757   cat conftest.err >&5
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); } &&
32760          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32761   { (case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766   (eval "$ac_try") 2>&5
32767   ac_status=$?
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); }; } &&
32770          { ac_try='test -s conftest.$ac_objext'
32771   { (case "(($ac_try" in
32772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773   *) ac_try_echo=$ac_try;;
32774 esac
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776   (eval "$ac_try") 2>&5
32777   ac_status=$?
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); }; }; then
32780   ac_cv_func_std_isnan_in_cmath=yes
32781 else
32782   echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32784
32785         ac_cv_func_std_isnan_in_cmath=no
32786 fi
32787
32788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32789   ac_ext=c
32790 ac_cpp='$CPP $CPPFLAGS'
32791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32794
32795 fi
32796 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32797 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32798
32799 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32800
32801 cat >>confdefs.h <<\_ACEOF
32802 #define HAVE_STD_ISNAN_IN_CMATH 1
32803 _ACEOF
32804
32805 fi
32806
32807
32808 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32809 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32810 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32811   echo $ECHO_N "(cached) $ECHO_C" >&6
32812 else
32813   ac_ext=cpp
32814 ac_cpp='$CXXCPP $CPPFLAGS'
32815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32818
32819    cat >conftest.$ac_ext <<_ACEOF
32820 /* confdefs.h.  */
32821 _ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h.  */
32825 #include <math.h>
32826 int
32827 main ()
32828 {
32829 float f; isinf(f);
32830   ;
32831   return 0;
32832 }
32833 _ACEOF
32834 rm -f conftest.$ac_objext
32835 if { (ac_try="$ac_compile"
32836 case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_compile") 2>conftest.er1
32842   ac_status=$?
32843   grep -v '^ *+' conftest.er1 >conftest.err
32844   rm -f conftest.er1
32845   cat conftest.err >&5
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); } &&
32848          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32849   { (case "(($ac_try" in
32850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851   *) ac_try_echo=$ac_try;;
32852 esac
32853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854   (eval "$ac_try") 2>&5
32855   ac_status=$?
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); }; } &&
32858          { ac_try='test -s conftest.$ac_objext'
32859   { (case "(($ac_try" in
32860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861   *) ac_try_echo=$ac_try;;
32862 esac
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864   (eval "$ac_try") 2>&5
32865   ac_status=$?
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); }; }; then
32868   ac_cv_func_isinf_in_math_h=yes
32869 else
32870   echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32872
32873         ac_cv_func_isinf_in_math_h=no
32874 fi
32875
32876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32877   ac_ext=c
32878 ac_cpp='$CPP $CPPFLAGS'
32879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32882
32883 fi
32884 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32885 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32886
32887 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32888
32889 cat >>confdefs.h <<\_ACEOF
32890 #define HAVE_ISINF_IN_MATH_H 1
32891 _ACEOF
32892
32893 fi
32894
32895 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32896 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32897 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32898   echo $ECHO_N "(cached) $ECHO_C" >&6
32899 else
32900   ac_ext=cpp
32901 ac_cpp='$CXXCPP $CPPFLAGS'
32902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32905
32906    cat >conftest.$ac_ext <<_ACEOF
32907 /* confdefs.h.  */
32908 _ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h.  */
32912 #include <cmath>
32913 int
32914 main ()
32915 {
32916 float f; isinf(f);
32917   ;
32918   return 0;
32919 }
32920 _ACEOF
32921 rm -f conftest.$ac_objext
32922 if { (ac_try="$ac_compile"
32923 case "(($ac_try" in
32924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925   *) ac_try_echo=$ac_try;;
32926 esac
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928   (eval "$ac_compile") 2>conftest.er1
32929   ac_status=$?
32930   grep -v '^ *+' conftest.er1 >conftest.err
32931   rm -f conftest.er1
32932   cat conftest.err >&5
32933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934   (exit $ac_status); } &&
32935          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32936   { (case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_try") 2>&5
32942   ac_status=$?
32943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944   (exit $ac_status); }; } &&
32945          { ac_try='test -s conftest.$ac_objext'
32946   { (case "(($ac_try" in
32947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948   *) ac_try_echo=$ac_try;;
32949 esac
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951   (eval "$ac_try") 2>&5
32952   ac_status=$?
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); }; }; then
32955   ac_cv_func_isinf_in_cmath=yes
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960         ac_cv_func_isinf_in_cmath=no
32961 fi
32962
32963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32964   ac_ext=c
32965 ac_cpp='$CPP $CPPFLAGS'
32966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32969
32970 fi
32971 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32972 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32973
32974 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32975
32976 cat >>confdefs.h <<\_ACEOF
32977 #define HAVE_ISINF_IN_CMATH 1
32978 _ACEOF
32979
32980 fi
32981
32982 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32983 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32984 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32985   echo $ECHO_N "(cached) $ECHO_C" >&6
32986 else
32987   ac_ext=cpp
32988 ac_cpp='$CXXCPP $CPPFLAGS'
32989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32992
32993    cat >conftest.$ac_ext <<_ACEOF
32994 /* confdefs.h.  */
32995 _ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h.  */
32999 #include <cmath>
33000 int
33001 main ()
33002 {
33003 float f; std::isinf(f)}
33004   ;
33005   return 0;
33006 }
33007 _ACEOF
33008 rm -f conftest.$ac_objext
33009 if { (ac_try="$ac_compile"
33010 case "(($ac_try" in
33011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33012   *) ac_try_echo=$ac_try;;
33013 esac
33014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33015   (eval "$ac_compile") 2>conftest.er1
33016   ac_status=$?
33017   grep -v '^ *+' conftest.er1 >conftest.err
33018   rm -f conftest.er1
33019   cat conftest.err >&5
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); } &&
33022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33023   { (case "(($ac_try" in
33024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025   *) ac_try_echo=$ac_try;;
33026 esac
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028   (eval "$ac_try") 2>&5
33029   ac_status=$?
33030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031   (exit $ac_status); }; } &&
33032          { ac_try='test -s conftest.$ac_objext'
33033   { (case "(($ac_try" in
33034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035   *) ac_try_echo=$ac_try;;
33036 esac
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038   (eval "$ac_try") 2>&5
33039   ac_status=$?
33040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041   (exit $ac_status); }; }; then
33042   ac_cv_func_std_isinf_in_cmath=yes
33043 else
33044   echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33046
33047         ac_cv_func_std_isinf_in_cmath=no
33048 fi
33049
33050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33051   ac_ext=c
33052 ac_cpp='$CPP $CPPFLAGS'
33053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33056
33057 fi
33058 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33059 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33060
33061 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33062
33063 cat >>confdefs.h <<\_ACEOF
33064 #define HAVE_STD_ISINF_IN_CMATH 1
33065 _ACEOF
33066
33067 fi
33068
33069 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33070 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33071 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33072   echo $ECHO_N "(cached) $ECHO_C" >&6
33073 else
33074   ac_ext=cpp
33075 ac_cpp='$CXXCPP $CPPFLAGS'
33076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33079
33080    cat >conftest.$ac_ext <<_ACEOF
33081 /* confdefs.h.  */
33082 _ACEOF
33083 cat confdefs.h >>conftest.$ac_ext
33084 cat >>conftest.$ac_ext <<_ACEOF
33085 /* end confdefs.h.  */
33086 #include <ieeefp.h>
33087 int
33088 main ()
33089 {
33090 float f; finite(f);
33091   ;
33092   return 0;
33093 }
33094 _ACEOF
33095 rm -f conftest.$ac_objext
33096 if { (ac_try="$ac_compile"
33097 case "(($ac_try" in
33098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099   *) ac_try_echo=$ac_try;;
33100 esac
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102   (eval "$ac_compile") 2>conftest.er1
33103   ac_status=$?
33104   grep -v '^ *+' conftest.er1 >conftest.err
33105   rm -f conftest.er1
33106   cat conftest.err >&5
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); } &&
33109          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33110   { (case "(($ac_try" in
33111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112   *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115   (eval "$ac_try") 2>&5
33116   ac_status=$?
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); }; } &&
33119          { ac_try='test -s conftest.$ac_objext'
33120   { (case "(($ac_try" in
33121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122   *) ac_try_echo=$ac_try;;
33123 esac
33124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125   (eval "$ac_try") 2>&5
33126   ac_status=$?
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); }; }; then
33129   ac_cv_func_finite_in_ieeefp_h=yes
33130 else
33131   echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33133
33134         ac_cv_func_finite_in_ieeefp_h=no
33135 fi
33136
33137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33138   ac_ext=c
33139 ac_cpp='$CPP $CPPFLAGS'
33140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33143
33144 fi
33145 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33146 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33147
33148 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33149
33150 cat >>confdefs.h <<\_ACEOF
33151 #define HAVE_FINITE_IN_IEEEFP_H 1
33152 _ACEOF
33153
33154 fi
33155
33156
33157
33158 if test "$llvm_cv_platform_type" = "Unix" ; then
33159
33160
33161 for ac_header in stdlib.h unistd.h
33162 do
33163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33168   echo $ECHO_N "(cached) $ECHO_C" >&6
33169 fi
33170 ac_res=`eval echo '${'$as_ac_Header'}'`
33171                { echo "$as_me:$LINENO: result: $ac_res" >&5
33172 echo "${ECHO_T}$ac_res" >&6; }
33173 else
33174   # Is the header compilable?
33175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33177 cat >conftest.$ac_ext <<_ACEOF
33178 /* confdefs.h.  */
33179 _ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h.  */
33183 $ac_includes_default
33184 #include <$ac_header>
33185 _ACEOF
33186 rm -f conftest.$ac_objext
33187 if { (ac_try="$ac_compile"
33188 case "(($ac_try" in
33189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190   *) ac_try_echo=$ac_try;;
33191 esac
33192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193   (eval "$ac_compile") 2>conftest.er1
33194   ac_status=$?
33195   grep -v '^ *+' conftest.er1 >conftest.err
33196   rm -f conftest.er1
33197   cat conftest.err >&5
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); } &&
33200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33201   { (case "(($ac_try" in
33202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203   *) ac_try_echo=$ac_try;;
33204 esac
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206   (eval "$ac_try") 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; } &&
33210          { ac_try='test -s conftest.$ac_objext'
33211   { (case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_try") 2>&5
33217   ac_status=$?
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); }; }; then
33220   ac_header_compiler=yes
33221 else
33222   echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33224
33225         ac_header_compiler=no
33226 fi
33227
33228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33230 echo "${ECHO_T}$ac_header_compiler" >&6; }
33231
33232 # Is the header present?
33233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33235 cat >conftest.$ac_ext <<_ACEOF
33236 /* confdefs.h.  */
33237 _ACEOF
33238 cat confdefs.h >>conftest.$ac_ext
33239 cat >>conftest.$ac_ext <<_ACEOF
33240 /* end confdefs.h.  */
33241 #include <$ac_header>
33242 _ACEOF
33243 if { (ac_try="$ac_cpp conftest.$ac_ext"
33244 case "(($ac_try" in
33245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246   *) ac_try_echo=$ac_try;;
33247 esac
33248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33250   ac_status=$?
33251   grep -v '^ *+' conftest.er1 >conftest.err
33252   rm -f conftest.er1
33253   cat conftest.err >&5
33254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255   (exit $ac_status); } >/dev/null; then
33256   if test -s conftest.err; then
33257     ac_cpp_err=$ac_c_preproc_warn_flag
33258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33259   else
33260     ac_cpp_err=
33261   fi
33262 else
33263   ac_cpp_err=yes
33264 fi
33265 if test -z "$ac_cpp_err"; then
33266   ac_header_preproc=yes
33267 else
33268   echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33270
33271   ac_header_preproc=no
33272 fi
33273
33274 rm -f conftest.err conftest.$ac_ext
33275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33276 echo "${ECHO_T}$ac_header_preproc" >&6; }
33277
33278 # So?  What about this header?
33279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33280   yes:no: )
33281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33285     ac_header_preproc=yes
33286     ;;
33287   no:yes:* )
33288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33300     ( cat <<\_ASBOX
33301 ## ----------------------------------- ##
33302 ## Report this to llvmbugs@cs.uiuc.edu ##
33303 ## ----------------------------------- ##
33304 _ASBOX
33305      ) | sed "s/^/$as_me: WARNING:     /" >&2
33306     ;;
33307 esac
33308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33311   echo $ECHO_N "(cached) $ECHO_C" >&6
33312 else
33313   eval "$as_ac_Header=\$ac_header_preproc"
33314 fi
33315 ac_res=`eval echo '${'$as_ac_Header'}'`
33316                { echo "$as_me:$LINENO: result: $ac_res" >&5
33317 echo "${ECHO_T}$ac_res" >&6; }
33318
33319 fi
33320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33321   cat >>confdefs.h <<_ACEOF
33322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33323 _ACEOF
33324
33325 fi
33326
33327 done
33328
33329
33330 for ac_func in getpagesize
33331 do
33332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33336   echo $ECHO_N "(cached) $ECHO_C" >&6
33337 else
33338   cat >conftest.$ac_ext <<_ACEOF
33339 /* confdefs.h.  */
33340 _ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h.  */
33344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33346 #define $ac_func innocuous_$ac_func
33347
33348 /* System header to define __stub macros and hopefully few prototypes,
33349     which can conflict with char $ac_func (); below.
33350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33351     <limits.h> exists even on freestanding compilers.  */
33352
33353 #ifdef __STDC__
33354 # include <limits.h>
33355 #else
33356 # include <assert.h>
33357 #endif
33358
33359 #undef $ac_func
33360
33361 /* Override any GCC internal prototype to avoid an error.
33362    Use char because int might match the return type of a GCC
33363    builtin and then its argument prototype would still apply.  */
33364 #ifdef __cplusplus
33365 extern "C"
33366 #endif
33367 char $ac_func ();
33368 /* The GNU C library defines this for functions which it implements
33369     to always fail with ENOSYS.  Some functions are actually named
33370     something starting with __ and the normal name is an alias.  */
33371 #if defined __stub_$ac_func || defined __stub___$ac_func
33372 choke me
33373 #endif
33374
33375 int
33376 main ()
33377 {
33378 return $ac_func ();
33379   ;
33380   return 0;
33381 }
33382 _ACEOF
33383 rm -f conftest.$ac_objext conftest$ac_exeext
33384 if { (ac_try="$ac_link"
33385 case "(($ac_try" in
33386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387   *) ac_try_echo=$ac_try;;
33388 esac
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390   (eval "$ac_link") 2>conftest.er1
33391   ac_status=$?
33392   grep -v '^ *+' conftest.er1 >conftest.err
33393   rm -f conftest.er1
33394   cat conftest.err >&5
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); } &&
33397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33398   { (case "(($ac_try" in
33399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400   *) ac_try_echo=$ac_try;;
33401 esac
33402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403   (eval "$ac_try") 2>&5
33404   ac_status=$?
33405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406   (exit $ac_status); }; } &&
33407          { ac_try='test -s conftest$ac_exeext'
33408   { (case "(($ac_try" in
33409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410   *) ac_try_echo=$ac_try;;
33411 esac
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413   (eval "$ac_try") 2>&5
33414   ac_status=$?
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); }; }; then
33417   eval "$as_ac_var=yes"
33418 else
33419   echo "$as_me: failed program was:" >&5
33420 sed 's/^/| /' conftest.$ac_ext >&5
33421
33422         eval "$as_ac_var=no"
33423 fi
33424
33425 rm -f core conftest.err conftest.$ac_objext \
33426       conftest$ac_exeext conftest.$ac_ext
33427 fi
33428 ac_res=`eval echo '${'$as_ac_var'}'`
33429                { echo "$as_me:$LINENO: result: $ac_res" >&5
33430 echo "${ECHO_T}$ac_res" >&6; }
33431 if test `eval echo '${'$as_ac_var'}'` = yes; then
33432   cat >>confdefs.h <<_ACEOF
33433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33434 _ACEOF
33435
33436 fi
33437 done
33438
33439 { echo "$as_me:$LINENO: checking for working mmap" >&5
33440 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33441 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33442   echo $ECHO_N "(cached) $ECHO_C" >&6
33443 else
33444   if test "$cross_compiling" = yes; then
33445   ac_cv_func_mmap_fixed_mapped=no
33446 else
33447   cat >conftest.$ac_ext <<_ACEOF
33448 /* confdefs.h.  */
33449 _ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h.  */
33453 $ac_includes_default
33454 /* malloc might have been renamed as rpl_malloc. */
33455 #undef malloc
33456
33457 /* Thanks to Mike Haertel and Jim Avera for this test.
33458    Here is a matrix of mmap possibilities:
33459         mmap private not fixed
33460         mmap private fixed at somewhere currently unmapped
33461         mmap private fixed at somewhere already mapped
33462         mmap shared not fixed
33463         mmap shared fixed at somewhere currently unmapped
33464         mmap shared fixed at somewhere already mapped
33465    For private mappings, we should verify that changes cannot be read()
33466    back from the file, nor mmap's back from the file at a different
33467    address.  (There have been systems where private was not correctly
33468    implemented like the infamous i386 svr4.0, and systems where the
33469    VM page cache was not coherent with the file system buffer cache
33470    like early versions of FreeBSD and possibly contemporary NetBSD.)
33471    For shared mappings, we should conversely verify that changes get
33472    propagated back to all the places they're supposed to be.
33473
33474    Grep wants private fixed already mapped.
33475    The main things grep needs to know about mmap are:
33476    * does it exist and is it safe to write into the mmap'd area
33477    * how to use it (BSD variants)  */
33478
33479 #include <fcntl.h>
33480 #include <sys/mman.h>
33481
33482 #if !STDC_HEADERS && !HAVE_STDLIB_H
33483 char *malloc ();
33484 #endif
33485
33486 /* This mess was copied from the GNU getpagesize.h.  */
33487 #if !HAVE_GETPAGESIZE
33488 /* Assume that all systems that can run configure have sys/param.h.  */
33489 # if !HAVE_SYS_PARAM_H
33490 #  define HAVE_SYS_PARAM_H 1
33491 # endif
33492
33493 # ifdef _SC_PAGESIZE
33494 #  define getpagesize() sysconf(_SC_PAGESIZE)
33495 # else /* no _SC_PAGESIZE */
33496 #  if HAVE_SYS_PARAM_H
33497 #   include <sys/param.h>
33498 #   ifdef EXEC_PAGESIZE
33499 #    define getpagesize() EXEC_PAGESIZE
33500 #   else /* no EXEC_PAGESIZE */
33501 #    ifdef NBPG
33502 #     define getpagesize() NBPG * CLSIZE
33503 #     ifndef CLSIZE
33504 #      define CLSIZE 1
33505 #     endif /* no CLSIZE */
33506 #    else /* no NBPG */
33507 #     ifdef NBPC
33508 #      define getpagesize() NBPC
33509 #     else /* no NBPC */
33510 #      ifdef PAGESIZE
33511 #       define getpagesize() PAGESIZE
33512 #      endif /* PAGESIZE */
33513 #     endif /* no NBPC */
33514 #    endif /* no NBPG */
33515 #   endif /* no EXEC_PAGESIZE */
33516 #  else /* no HAVE_SYS_PARAM_H */
33517 #   define getpagesize() 8192   /* punt totally */
33518 #  endif /* no HAVE_SYS_PARAM_H */
33519 # endif /* no _SC_PAGESIZE */
33520
33521 #endif /* no HAVE_GETPAGESIZE */
33522
33523 int
33524 main ()
33525 {
33526   char *data, *data2, *data3;
33527   int i, pagesize;
33528   int fd;
33529
33530   pagesize = getpagesize ();
33531
33532   /* First, make a file with some known garbage in it. */
33533   data = (char *) malloc (pagesize);
33534   if (!data)
33535     return 1;
33536   for (i = 0; i < pagesize; ++i)
33537     *(data + i) = rand ();
33538   umask (0);
33539   fd = creat ("conftest.mmap", 0600);
33540   if (fd < 0)
33541     return 1;
33542   if (write (fd, data, pagesize) != pagesize)
33543     return 1;
33544   close (fd);
33545
33546   /* Next, try to mmap the file at a fixed address which already has
33547      something else allocated at it.  If we can, also make sure that
33548      we see the same garbage.  */
33549   fd = open ("conftest.mmap", O_RDWR);
33550   if (fd < 0)
33551     return 1;
33552   data2 = (char *) malloc (2 * pagesize);
33553   if (!data2)
33554     return 1;
33555   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33556   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33557                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33558     return 1;
33559   for (i = 0; i < pagesize; ++i)
33560     if (*(data + i) != *(data2 + i))
33561       return 1;
33562
33563   /* Finally, make sure that changes to the mapped area do not
33564      percolate back to the file as seen by read().  (This is a bug on
33565      some variants of i386 svr4.0.)  */
33566   for (i = 0; i < pagesize; ++i)
33567     *(data2 + i) = *(data2 + i) + 1;
33568   data3 = (char *) malloc (pagesize);
33569   if (!data3)
33570     return 1;
33571   if (read (fd, data3, pagesize) != pagesize)
33572     return 1;
33573   for (i = 0; i < pagesize; ++i)
33574     if (*(data + i) != *(data3 + i))
33575       return 1;
33576   close (fd);
33577   return 0;
33578 }
33579 _ACEOF
33580 rm -f conftest$ac_exeext
33581 if { (ac_try="$ac_link"
33582 case "(($ac_try" in
33583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33584   *) ac_try_echo=$ac_try;;
33585 esac
33586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33587   (eval "$ac_link") 2>&5
33588   ac_status=$?
33589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33591   { (case "(($ac_try" in
33592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593   *) ac_try_echo=$ac_try;;
33594 esac
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596   (eval "$ac_try") 2>&5
33597   ac_status=$?
33598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599   (exit $ac_status); }; }; then
33600   ac_cv_func_mmap_fixed_mapped=yes
33601 else
33602   echo "$as_me: program exited with status $ac_status" >&5
33603 echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.$ac_ext >&5
33605
33606 ( exit $ac_status )
33607 ac_cv_func_mmap_fixed_mapped=no
33608 fi
33609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33610 fi
33611
33612
33613 fi
33614 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33615 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33616 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33617
33618 cat >>confdefs.h <<\_ACEOF
33619 #define HAVE_MMAP 1
33620 _ACEOF
33621
33622 fi
33623 rm -f conftest.mmap
33624
33625   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33626 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33627 if test "${ac_cv_func_mmap_file+set}" = set; then
33628   echo $ECHO_N "(cached) $ECHO_C" >&6
33629 else
33630    ac_ext=c
33631 ac_cpp='$CPP $CPPFLAGS'
33632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33635
33636   if test "$cross_compiling" = yes; then
33637   ac_cv_func_mmap_file=no
33638 else
33639   cat >conftest.$ac_ext <<_ACEOF
33640
33641     /* confdefs.h.  */
33642 _ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h.  */
33646
33647 #include <sys/types.h>
33648 #include <sys/mman.h>
33649 #include <fcntl.h>
33650
33651 int
33652 main ()
33653 {
33654
33655   int fd;
33656   fd = creat ("foo",0777);
33657   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33658   unlink ("foo");
33659   return (fd != (int) MAP_FAILED);
33660   ;
33661   return 0;
33662 }
33663 _ACEOF
33664 rm -f conftest$ac_exeext
33665 if { (ac_try="$ac_link"
33666 case "(($ac_try" in
33667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33668   *) ac_try_echo=$ac_try;;
33669 esac
33670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33671   (eval "$ac_link") 2>&5
33672   ac_status=$?
33673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33675   { (case "(($ac_try" in
33676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677   *) ac_try_echo=$ac_try;;
33678 esac
33679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680   (eval "$ac_try") 2>&5
33681   ac_status=$?
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); }; }; then
33684   ac_cv_func_mmap_file=yes
33685 else
33686   echo "$as_me: program exited with status $ac_status" >&5
33687 echo "$as_me: failed program was:" >&5
33688 sed 's/^/| /' conftest.$ac_ext >&5
33689
33690 ( exit $ac_status )
33691 ac_cv_func_mmap_file=no
33692 fi
33693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33694 fi
33695
33696
33697   ac_ext=c
33698 ac_cpp='$CPP $CPPFLAGS'
33699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33702
33703
33704 fi
33705 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33706 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33707 if test "$ac_cv_func_mmap_file" = yes; then
33708
33709 cat >>confdefs.h <<\_ACEOF
33710 #define HAVE_MMAP_FILE
33711 _ACEOF
33712
33713    MMAP_FILE=yes
33714
33715 fi
33716
33717   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33718 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33719 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33720   echo $ECHO_N "(cached) $ECHO_C" >&6
33721 else
33722   if test "$llvm_cv_os_type" = "Interix" ; then
33723    ac_cv_need_dev_zero_for_mmap=yes
33724  else
33725    ac_cv_need_dev_zero_for_mmap=no
33726  fi
33727
33728 fi
33729 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33730 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33731 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33732
33733 cat >>confdefs.h <<\_ACEOF
33734 #define NEED_DEV_ZERO_FOR_MMAP 1
33735 _ACEOF
33736
33737 fi
33738
33739   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33740   then
33741     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33742 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33743   fi
33744   if test "$ac_cv_func_mmap_file" = "no"
33745   then
33746     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33747 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33748   fi
33749 fi
33750
33751 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33752 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33753 cat >conftest.$ac_ext <<_ACEOF
33754 /* confdefs.h.  */
33755 _ACEOF
33756 cat confdefs.h >>conftest.$ac_ext
33757 cat >>conftest.$ac_ext <<_ACEOF
33758 /* end confdefs.h.  */
33759 int main() {
33760         volatile unsigned long val = 1;
33761         __sync_synchronize();
33762         __sync_val_compare_and_swap(&val, 1, 0);
33763         return 0;
33764       }
33765
33766 _ACEOF
33767 rm -f conftest.$ac_objext conftest$ac_exeext
33768 if { (ac_try="$ac_link"
33769 case "(($ac_try" in
33770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771   *) ac_try_echo=$ac_try;;
33772 esac
33773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774   (eval "$ac_link") 2>conftest.er1
33775   ac_status=$?
33776   grep -v '^ *+' conftest.er1 >conftest.err
33777   rm -f conftest.er1
33778   cat conftest.err >&5
33779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780   (exit $ac_status); } &&
33781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33782   { (case "(($ac_try" in
33783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784   *) ac_try_echo=$ac_try;;
33785 esac
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787   (eval "$ac_try") 2>&5
33788   ac_status=$?
33789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790   (exit $ac_status); }; } &&
33791          { ac_try='test -s conftest$ac_exeext'
33792   { (case "(($ac_try" in
33793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794   *) ac_try_echo=$ac_try;;
33795 esac
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797   (eval "$ac_try") 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }; }; then
33801   { echo "$as_me:$LINENO: result: yes" >&5
33802 echo "${ECHO_T}yes" >&6; }
33803
33804 cat >>confdefs.h <<\_ACEOF
33805 #define LLVM_MULTITHREADED 1
33806 _ACEOF
33807
33808 else
33809   echo "$as_me: failed program was:" >&5
33810 sed 's/^/| /' conftest.$ac_ext >&5
33811
33812         { echo "$as_me:$LINENO: result: no" >&5
33813 echo "${ECHO_T}no" >&6; }
33814
33815 cat >>confdefs.h <<\_ACEOF
33816 #define LLVM_MULTITHREADED 0
33817 _ACEOF
33818
33819   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33820 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
33821 fi
33822
33823 rm -f core conftest.err conftest.$ac_objext \
33824       conftest$ac_exeext conftest.$ac_ext
33825
33826
33827
33828
33829 for ac_func in __dso_handle
33830 do
33831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33835   echo $ECHO_N "(cached) $ECHO_C" >&6
33836 else
33837   cat >conftest.$ac_ext <<_ACEOF
33838 /* confdefs.h.  */
33839 _ACEOF
33840 cat confdefs.h >>conftest.$ac_ext
33841 cat >>conftest.$ac_ext <<_ACEOF
33842 /* end confdefs.h.  */
33843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33845 #define $ac_func innocuous_$ac_func
33846
33847 /* System header to define __stub macros and hopefully few prototypes,
33848     which can conflict with char $ac_func (); below.
33849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33850     <limits.h> exists even on freestanding compilers.  */
33851
33852 #ifdef __STDC__
33853 # include <limits.h>
33854 #else
33855 # include <assert.h>
33856 #endif
33857
33858 #undef $ac_func
33859
33860 /* Override any GCC internal prototype to avoid an error.
33861    Use char because int might match the return type of a GCC
33862    builtin and then its argument prototype would still apply.  */
33863 #ifdef __cplusplus
33864 extern "C"
33865 #endif
33866 char $ac_func ();
33867 /* The GNU C library defines this for functions which it implements
33868     to always fail with ENOSYS.  Some functions are actually named
33869     something starting with __ and the normal name is an alias.  */
33870 #if defined __stub_$ac_func || defined __stub___$ac_func
33871 choke me
33872 #endif
33873
33874 int
33875 main ()
33876 {
33877 return $ac_func ();
33878   ;
33879   return 0;
33880 }
33881 _ACEOF
33882 rm -f conftest.$ac_objext conftest$ac_exeext
33883 if { (ac_try="$ac_link"
33884 case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_link") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } &&
33896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33897   { (case "(($ac_try" in
33898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899   *) ac_try_echo=$ac_try;;
33900 esac
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902   (eval "$ac_try") 2>&5
33903   ac_status=$?
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); }; } &&
33906          { ac_try='test -s conftest$ac_exeext'
33907   { (case "(($ac_try" in
33908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909   *) ac_try_echo=$ac_try;;
33910 esac
33911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912   (eval "$ac_try") 2>&5
33913   ac_status=$?
33914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915   (exit $ac_status); }; }; then
33916   eval "$as_ac_var=yes"
33917 else
33918   echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33920
33921         eval "$as_ac_var=no"
33922 fi
33923
33924 rm -f core conftest.err conftest.$ac_objext \
33925       conftest$ac_exeext conftest.$ac_ext
33926 fi
33927 ac_res=`eval echo '${'$as_ac_var'}'`
33928                { echo "$as_me:$LINENO: result: $ac_res" >&5
33929 echo "${ECHO_T}$ac_res" >&6; }
33930 if test `eval echo '${'$as_ac_var'}'` = yes; then
33931   cat >>confdefs.h <<_ACEOF
33932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33933 _ACEOF
33934
33935 fi
33936 done
33937
33938
33939 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33940 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33941 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33942   echo $ECHO_N "(cached) $ECHO_C" >&6
33943 else
33944   llvm_cv_llvmgcc_sanity="no"
33945 if test -x "$LLVMGCC" ; then
33946   cp /dev/null conftest.c
33947   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33948       grep 'target datalayout =' > /dev/null 2>&1
33949   if test $? -eq 0 ; then
33950     llvm_cv_llvmgcc_sanity="yes"
33951   fi
33952   rm conftest.c
33953 fi
33954 fi
33955 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33956 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33957
33958 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33959   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33960 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33961   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33962   LLVMCC1=$llvmcc1path
33963
33964   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33965   LLVMCC1PLUS=$llvmcc1pluspath
33966
33967   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33968   LLVMGCCDIR=$llvmgccdir
33969
33970   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33971   LLVMGCCLIBEXEC=$llvmgcclibexec
33972
33973   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33974   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33975   LLVMGCC_VERSION=$llvmgccversion
33976
33977   LLVMGCC_MAJVERS=$llvmgccmajvers
33978
33979   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33980   LLVMGCC_LANGS=$llvmgcclangs
33981
33982   { echo "$as_me:$LINENO: result: ok" >&5
33983 echo "${ECHO_T}ok" >&6; }
33984 fi
33985
33986 SHLIBEXT=$libltdl_cv_shlibext
33987
33988
33989 # Translate the various configuration directories and other basic
33990 # information into substitutions that will end up in Makefile.config.in
33991 # that these configured values can be used by the makefiles
33992 if test "${prefix}" = "NONE" ; then
33993   prefix="/usr/local"
33994 fi
33995 eval LLVM_PREFIX="${prefix}";
33996 eval LLVM_BINDIR="${prefix}/bin";
33997 eval LLVM_LIBDIR="${prefix}/lib";
33998 eval LLVM_DATADIR="${prefix}/share/llvm";
33999 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34000 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34001 eval LLVM_INCLUDEDIR="${prefix}/include";
34002 eval LLVM_INFODIR="${prefix}/info";
34003 eval LLVM_MANDIR="${prefix}/man";
34004 LLVM_CONFIGTIME=`date`
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016 # Place the various directores into the config.h file as #defines so that we
34017 # can know about the installation paths within LLVM.
34018
34019 cat >>confdefs.h <<_ACEOF
34020 #define LLVM_PREFIX "$LLVM_PREFIX"
34021 _ACEOF
34022
34023
34024 cat >>confdefs.h <<_ACEOF
34025 #define LLVM_BINDIR "$LLVM_BINDIR"
34026 _ACEOF
34027
34028
34029 cat >>confdefs.h <<_ACEOF
34030 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34031 _ACEOF
34032
34033
34034 cat >>confdefs.h <<_ACEOF
34035 #define LLVM_DATADIR "$LLVM_DATADIR"
34036 _ACEOF
34037
34038
34039 cat >>confdefs.h <<_ACEOF
34040 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34041 _ACEOF
34042
34043
34044 cat >>confdefs.h <<_ACEOF
34045 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34046 _ACEOF
34047
34048
34049 cat >>confdefs.h <<_ACEOF
34050 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34051 _ACEOF
34052
34053
34054 cat >>confdefs.h <<_ACEOF
34055 #define LLVM_INFODIR "$LLVM_INFODIR"
34056 _ACEOF
34057
34058
34059 cat >>confdefs.h <<_ACEOF
34060 #define LLVM_MANDIR "$LLVM_MANDIR"
34061 _ACEOF
34062
34063
34064 cat >>confdefs.h <<_ACEOF
34065 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34066 _ACEOF
34067
34068
34069 cat >>confdefs.h <<_ACEOF
34070 #define LLVM_HOSTTRIPLE "$host"
34071 _ACEOF
34072
34073
34074 # Determine which bindings to build.
34075 if test "$BINDINGS_TO_BUILD" = auto ; then
34076   BINDINGS_TO_BUILD=""
34077   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34078     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34079   fi
34080 fi
34081 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34082
34083
34084 # This isn't really configurey, but it avoids having to repeat the list in
34085 # other files.
34086 ALL_BINDINGS=ocaml
34087
34088
34089 # Do any work necessary to ensure that bindings have what they need.
34090 binding_prereqs_failed=0
34091 for a_binding in $BINDINGS_TO_BUILD ; do
34092   case "$a_binding" in
34093   ocaml)
34094     if test "x$OCAMLC" = x ; then
34095       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34096 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34097       binding_prereqs_failed=1
34098     fi
34099     if test "x$OCAMLDEP" = x ; then
34100       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34101 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34102       binding_prereqs_failed=1
34103     fi
34104     if test "x$OCAMLOPT" = x ; then
34105       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34106 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34107           fi
34108     if test "x$with_ocaml_libdir" != xauto ; then
34109       OCAML_LIBDIR=$with_ocaml_libdir
34110
34111     else
34112       ocaml_stdlib="`"$OCAMLC" -where`"
34113       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34114       then
34115         # ocaml stdlib is beneath our prefix; use stdlib
34116         OCAML_LIBDIR=$ocaml_stdlib
34117
34118       else
34119         # ocaml stdlib is outside our prefix; use libdir/ocaml
34120         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34121
34122       fi
34123     fi
34124     ;;
34125   esac
34126 done
34127 if test "$binding_prereqs_failed" = 1 ; then
34128   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34129 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34130    { (exit 1); exit 1; }; }
34131 fi
34132
34133 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34134 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34135 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34136   echo $ECHO_N "(cached) $ECHO_C" >&6
34137 else
34138    ac_ext=cpp
34139 ac_cpp='$CXXCPP $CPPFLAGS'
34140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34143
34144   oldcxxflags="$CXXFLAGS"
34145   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34146   cat >conftest.$ac_ext <<_ACEOF
34147 /* confdefs.h.  */
34148 _ACEOF
34149 cat confdefs.h >>conftest.$ac_ext
34150 cat >>conftest.$ac_ext <<_ACEOF
34151 /* end confdefs.h.  */
34152
34153 int
34154 main ()
34155 {
34156
34157   ;
34158   return 0;
34159 }
34160 _ACEOF
34161 rm -f conftest.$ac_objext
34162 if { (ac_try="$ac_compile"
34163 case "(($ac_try" in
34164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165   *) ac_try_echo=$ac_try;;
34166 esac
34167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168   (eval "$ac_compile") 2>conftest.er1
34169   ac_status=$?
34170   grep -v '^ *+' conftest.er1 >conftest.err
34171   rm -f conftest.er1
34172   cat conftest.err >&5
34173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174   (exit $ac_status); } &&
34175          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34176   { (case "(($ac_try" in
34177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178   *) ac_try_echo=$ac_try;;
34179 esac
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181   (eval "$ac_try") 2>&5
34182   ac_status=$?
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); }; } &&
34185          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34195   llvm_cv_cxx_visibility_inlines_hidden=yes
34196 else
34197   echo "$as_me: failed program was:" >&5
34198 sed 's/^/| /' conftest.$ac_ext >&5
34199
34200         llvm_cv_cxx_visibility_inlines_hidden=no
34201 fi
34202
34203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34204   CXXFLAGS="$oldcxxflags"
34205   ac_ext=c
34206 ac_cpp='$CPP $CPPFLAGS'
34207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34210
34211
34212 fi
34213 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34214 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34215 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34216   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34217
34218 else
34219   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34220
34221 fi
34222
34223
34224 if test "$llvm_cv_link_use_r" = "yes" ; then
34225   RPATH="-Wl,-R"
34226 else
34227   RPATH="-Wl,-rpath"
34228 fi
34229
34230
34231 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34232   RDYNAMIC="-Wl,-export-dynamic"
34233 else
34234   RDYNAMIC=""
34235 fi
34236
34237
34238
34239 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34240
34241 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34242
34243 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34244
34245 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34246
34247 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34248
34249
34250 ac_config_files="$ac_config_files Makefile.config"
34251
34252
34253 ac_config_files="$ac_config_files llvm.spec"
34254
34255
34256 ac_config_files="$ac_config_files docs/doxygen.cfg"
34257
34258
34259 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34260
34261
34262 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34263
34264
34265 ac_config_commands="$ac_config_commands setup"
34266
34267 ac_config_commands="$ac_config_commands Makefile"
34268
34269
34270 ac_config_commands="$ac_config_commands Makefile.common"
34271
34272
34273 ac_config_commands="$ac_config_commands examples/Makefile"
34274
34275
34276 ac_config_commands="$ac_config_commands lib/Makefile"
34277
34278
34279 ac_config_commands="$ac_config_commands runtime/Makefile"
34280
34281
34282 ac_config_commands="$ac_config_commands test/Makefile"
34283
34284
34285 ac_config_commands="$ac_config_commands test/Makefile.tests"
34286
34287
34288 ac_config_commands="$ac_config_commands unittests/Makefile"
34289
34290
34291 ac_config_commands="$ac_config_commands tools/Makefile"
34292
34293
34294 ac_config_commands="$ac_config_commands utils/Makefile"
34295
34296
34297 ac_config_commands="$ac_config_commands projects/Makefile"
34298
34299
34300 ac_config_commands="$ac_config_commands bindings/Makefile"
34301
34302
34303 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34304
34305
34306
34307 cat >confcache <<\_ACEOF
34308 # This file is a shell script that caches the results of configure
34309 # tests run on this system so they can be shared between configure
34310 # scripts and configure runs, see configure's option --config-cache.
34311 # It is not useful on other systems.  If it contains results you don't
34312 # want to keep, you may remove or edit it.
34313 #
34314 # config.status only pays attention to the cache file if you give it
34315 # the --recheck option to rerun configure.
34316 #
34317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34319 # following values.
34320
34321 _ACEOF
34322
34323 # The following way of writing the cache mishandles newlines in values,
34324 # but we know of no workaround that is simple, portable, and efficient.
34325 # So, we kill variables containing newlines.
34326 # Ultrix sh set writes to stderr and can't be redirected directly,
34327 # and sets the high bit in the cache file unless we assign to the vars.
34328 (
34329   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34330     eval ac_val=\$$ac_var
34331     case $ac_val in #(
34332     *${as_nl}*)
34333       case $ac_var in #(
34334       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34335 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34336       esac
34337       case $ac_var in #(
34338       _ | IFS | as_nl) ;; #(
34339       *) $as_unset $ac_var ;;
34340       esac ;;
34341     esac
34342   done
34343
34344   (set) 2>&1 |
34345     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34346     *${as_nl}ac_space=\ *)
34347       # `set' does not quote correctly, so add quotes (double-quote
34348       # substitution turns \\\\ into \\, and sed turns \\ into \).
34349       sed -n \
34350         "s/'/'\\\\''/g;
34351           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34352       ;; #(
34353     *)
34354       # `set' quotes correctly as required by POSIX, so do not add quotes.
34355       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34356       ;;
34357     esac |
34358     sort
34359 ) |
34360   sed '
34361      /^ac_cv_env_/b end
34362      t clear
34363      :clear
34364      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34365      t end
34366      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34367      :end' >>confcache
34368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34369   if test -w "$cache_file"; then
34370     test "x$cache_file" != "x/dev/null" &&
34371       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34372 echo "$as_me: updating cache $cache_file" >&6;}
34373     cat confcache >$cache_file
34374   else
34375     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34376 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34377   fi
34378 fi
34379 rm -f confcache
34380
34381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34382 # Let make expand exec_prefix.
34383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34384
34385 DEFS=-DHAVE_CONFIG_H
34386
34387 ac_libobjs=
34388 ac_ltlibobjs=
34389 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34390   # 1. Remove the extension, and $U if already installed.
34391   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34392   ac_i=`echo "$ac_i" | sed "$ac_script"`
34393   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34394   #    will be set to the directory where LIBOBJS objects are built.
34395   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34396   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34397 done
34398 LIBOBJS=$ac_libobjs
34399
34400 LTLIBOBJS=$ac_ltlibobjs
34401
34402
34403 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34404   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34405 Usually this means the macro was only invoked conditionally." >&5
34406 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34407 Usually this means the macro was only invoked conditionally." >&2;}
34408    { (exit 1); exit 1; }; }
34409 fi
34410 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34411   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34412 Usually this means the macro was only invoked conditionally." >&5
34413 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34414 Usually this means the macro was only invoked conditionally." >&2;}
34415    { (exit 1); exit 1; }; }
34416 fi
34417
34418 : ${CONFIG_STATUS=./config.status}
34419 ac_clean_files_save=$ac_clean_files
34420 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34421 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34422 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34423 cat >$CONFIG_STATUS <<_ACEOF
34424 #! $SHELL
34425 # Generated by $as_me.
34426 # Run this file to recreate the current configuration.
34427 # Compiler output produced by configure, useful for debugging
34428 # configure, is in config.log if it exists.
34429
34430 debug=false
34431 ac_cs_recheck=false
34432 ac_cs_silent=false
34433 SHELL=\${CONFIG_SHELL-$SHELL}
34434 _ACEOF
34435
34436 cat >>$CONFIG_STATUS <<\_ACEOF
34437 ## --------------------- ##
34438 ## M4sh Initialization.  ##
34439 ## --------------------- ##
34440
34441 # Be Bourne compatible
34442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34443   emulate sh
34444   NULLCMD=:
34445   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34446   # is contrary to our usage.  Disable this feature.
34447   alias -g '${1+"$@"}'='"$@"'
34448   setopt NO_GLOB_SUBST
34449 else
34450   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34451 fi
34452 BIN_SH=xpg4; export BIN_SH # for Tru64
34453 DUALCASE=1; export DUALCASE # for MKS sh
34454
34455
34456 # PATH needs CR
34457 # Avoid depending upon Character Ranges.
34458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34461 as_cr_digits='0123456789'
34462 as_cr_alnum=$as_cr_Letters$as_cr_digits
34463
34464 # The user is always right.
34465 if test "${PATH_SEPARATOR+set}" != set; then
34466   echo "#! /bin/sh" >conf$$.sh
34467   echo  "exit 0"   >>conf$$.sh
34468   chmod +x conf$$.sh
34469   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34470     PATH_SEPARATOR=';'
34471   else
34472     PATH_SEPARATOR=:
34473   fi
34474   rm -f conf$$.sh
34475 fi
34476
34477 # Support unset when possible.
34478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34479   as_unset=unset
34480 else
34481   as_unset=false
34482 fi
34483
34484
34485 # IFS
34486 # We need space, tab and new line, in precisely that order.  Quoting is
34487 # there to prevent editors from complaining about space-tab.
34488 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34489 # splitting by setting IFS to empty value.)
34490 as_nl='
34491 '
34492 IFS=" ""        $as_nl"
34493
34494 # Find who we are.  Look in the path if we contain no directory separator.
34495 case $0 in
34496   *[\\/]* ) as_myself=$0 ;;
34497   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34498 for as_dir in $PATH
34499 do
34500   IFS=$as_save_IFS
34501   test -z "$as_dir" && as_dir=.
34502   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34503 done
34504 IFS=$as_save_IFS
34505
34506      ;;
34507 esac
34508 # We did not find ourselves, most probably we were run as `sh COMMAND'
34509 # in which case we are not to be found in the path.
34510 if test "x$as_myself" = x; then
34511   as_myself=$0
34512 fi
34513 if test ! -f "$as_myself"; then
34514   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34515   { (exit 1); exit 1; }
34516 fi
34517
34518 # Work around bugs in pre-3.0 UWIN ksh.
34519 for as_var in ENV MAIL MAILPATH
34520 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34521 done
34522 PS1='$ '
34523 PS2='> '
34524 PS4='+ '
34525
34526 # NLS nuisances.
34527 for as_var in \
34528   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34529   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34530   LC_TELEPHONE LC_TIME
34531 do
34532   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34533     eval $as_var=C; export $as_var
34534   else
34535     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34536   fi
34537 done
34538
34539 # Required to use basename.
34540 if expr a : '\(a\)' >/dev/null 2>&1 &&
34541    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34542   as_expr=expr
34543 else
34544   as_expr=false
34545 fi
34546
34547 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34548   as_basename=basename
34549 else
34550   as_basename=false
34551 fi
34552
34553
34554 # Name of the executable.
34555 as_me=`$as_basename -- "$0" ||
34556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34557          X"$0" : 'X\(//\)$' \| \
34558          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34559 echo X/"$0" |
34560     sed '/^.*\/\([^/][^/]*\)\/*$/{
34561             s//\1/
34562             q
34563           }
34564           /^X\/\(\/\/\)$/{
34565             s//\1/
34566             q
34567           }
34568           /^X\/\(\/\).*/{
34569             s//\1/
34570             q
34571           }
34572           s/.*/./; q'`
34573
34574 # CDPATH.
34575 $as_unset CDPATH
34576
34577
34578
34579   as_lineno_1=$LINENO
34580   as_lineno_2=$LINENO
34581   test "x$as_lineno_1" != "x$as_lineno_2" &&
34582   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34583
34584   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34585   # uniformly replaced by the line number.  The first 'sed' inserts a
34586   # line-number line after each line using $LINENO; the second 'sed'
34587   # does the real work.  The second script uses 'N' to pair each
34588   # line-number line with the line containing $LINENO, and appends
34589   # trailing '-' during substitution so that $LINENO is not a special
34590   # case at line end.
34591   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34592   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34593   # E. McMahon (1931-1989) for sed's syntax.  :-)
34594   sed -n '
34595     p
34596     /[$]LINENO/=
34597   ' <$as_myself |
34598     sed '
34599       s/[$]LINENO.*/&-/
34600       t lineno
34601       b
34602       :lineno
34603       N
34604       :loop
34605       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34606       t loop
34607       s/-\n.*//
34608     ' >$as_me.lineno &&
34609   chmod +x "$as_me.lineno" ||
34610     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34611    { (exit 1); exit 1; }; }
34612
34613   # Don't try to exec as it changes $[0], causing all sort of problems
34614   # (the dirname of $[0] is not the place where we might find the
34615   # original and so on.  Autoconf is especially sensitive to this).
34616   . "./$as_me.lineno"
34617   # Exit status is that of the last command.
34618   exit
34619 }
34620
34621
34622 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34623   as_dirname=dirname
34624 else
34625   as_dirname=false
34626 fi
34627
34628 ECHO_C= ECHO_N= ECHO_T=
34629 case `echo -n x` in
34630 -n*)
34631   case `echo 'x\c'` in
34632   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34633   *)   ECHO_C='\c';;
34634   esac;;
34635 *)
34636   ECHO_N='-n';;
34637 esac
34638
34639 if expr a : '\(a\)' >/dev/null 2>&1 &&
34640    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34641   as_expr=expr
34642 else
34643   as_expr=false
34644 fi
34645
34646 rm -f conf$$ conf$$.exe conf$$.file
34647 if test -d conf$$.dir; then
34648   rm -f conf$$.dir/conf$$.file
34649 else
34650   rm -f conf$$.dir
34651   mkdir conf$$.dir
34652 fi
34653 echo >conf$$.file
34654 if ln -s conf$$.file conf$$ 2>/dev/null; then
34655   as_ln_s='ln -s'
34656   # ... but there are two gotchas:
34657   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34658   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34659   # In both cases, we have to default to `cp -p'.
34660   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34661     as_ln_s='cp -p'
34662 elif ln conf$$.file conf$$ 2>/dev/null; then
34663   as_ln_s=ln
34664 else
34665   as_ln_s='cp -p'
34666 fi
34667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34668 rmdir conf$$.dir 2>/dev/null
34669
34670 if mkdir -p . 2>/dev/null; then
34671   as_mkdir_p=:
34672 else
34673   test -d ./-p && rmdir ./-p
34674   as_mkdir_p=false
34675 fi
34676
34677 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34678 # systems may use methods other than mode bits to determine executability.
34679 cat >conf$$.file <<_ASEOF
34680 #! /bin/sh
34681 exit 0
34682 _ASEOF
34683 chmod +x conf$$.file
34684 if test -x conf$$.file >/dev/null 2>&1; then
34685   as_executable_p="test -x"
34686 else
34687   as_executable_p=:
34688 fi
34689 rm -f conf$$.file
34690
34691 # Sed expression to map a string onto a valid CPP name.
34692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34693
34694 # Sed expression to map a string onto a valid variable name.
34695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34696
34697
34698 exec 6>&1
34699
34700 # Save the log message, to keep $[0] and so on meaningful, and to
34701 # report actual input values of CONFIG_FILES etc. instead of their
34702 # values after options handling.
34703 ac_log="
34704 This file was extended by llvm $as_me 2.6svn, which was
34705 generated by GNU Autoconf 2.60.  Invocation command line was
34706
34707   CONFIG_FILES    = $CONFIG_FILES
34708   CONFIG_HEADERS  = $CONFIG_HEADERS
34709   CONFIG_LINKS    = $CONFIG_LINKS
34710   CONFIG_COMMANDS = $CONFIG_COMMANDS
34711   $ $0 $@
34712
34713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34714 "
34715
34716 _ACEOF
34717
34718 cat >>$CONFIG_STATUS <<_ACEOF
34719 # Files that config.status was made for.
34720 config_files="$ac_config_files"
34721 config_headers="$ac_config_headers"
34722 config_commands="$ac_config_commands"
34723
34724 _ACEOF
34725
34726 cat >>$CONFIG_STATUS <<\_ACEOF
34727 ac_cs_usage="\
34728 \`$as_me' instantiates files from templates according to the
34729 current configuration.
34730
34731 Usage: $0 [OPTIONS] [FILE]...
34732
34733   -h, --help       print this help, then exit
34734   -V, --version    print version number, then exit
34735   -q, --quiet      do not print progress messages
34736   -d, --debug      don't remove temporary files
34737       --recheck    update $as_me by reconfiguring in the same conditions
34738   --file=FILE[:TEMPLATE]
34739                    instantiate the configuration file FILE
34740   --header=FILE[:TEMPLATE]
34741                    instantiate the configuration header FILE
34742
34743 Configuration files:
34744 $config_files
34745
34746 Configuration headers:
34747 $config_headers
34748
34749 Configuration commands:
34750 $config_commands
34751
34752 Report bugs to <bug-autoconf@gnu.org>."
34753
34754 _ACEOF
34755 cat >>$CONFIG_STATUS <<_ACEOF
34756 ac_cs_version="\\
34757 llvm config.status 2.6svn
34758 configured by $0, generated by GNU Autoconf 2.60,
34759   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34760
34761 Copyright (C) 2006 Free Software Foundation, Inc.
34762 This config.status script is free software; the Free Software Foundation
34763 gives unlimited permission to copy, distribute and modify it."
34764
34765 ac_pwd='$ac_pwd'
34766 srcdir='$srcdir'
34767 INSTALL='$INSTALL'
34768 _ACEOF
34769
34770 cat >>$CONFIG_STATUS <<\_ACEOF
34771 # If no file are specified by the user, then we need to provide default
34772 # value.  By we need to know if files were specified by the user.
34773 ac_need_defaults=:
34774 while test $# != 0
34775 do
34776   case $1 in
34777   --*=*)
34778     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34779     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34780     ac_shift=:
34781     ;;
34782   *)
34783     ac_option=$1
34784     ac_optarg=$2
34785     ac_shift=shift
34786     ;;
34787   esac
34788
34789   case $ac_option in
34790   # Handling of the options.
34791   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34792     ac_cs_recheck=: ;;
34793   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34794     echo "$ac_cs_version"; exit ;;
34795   --debug | --debu | --deb | --de | --d | -d )
34796     debug=: ;;
34797   --file | --fil | --fi | --f )
34798     $ac_shift
34799     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34800     ac_need_defaults=false;;
34801   --header | --heade | --head | --hea )
34802     $ac_shift
34803     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34804     ac_need_defaults=false;;
34805   --he | --h)
34806     # Conflict between --help and --header
34807     { echo "$as_me: error: ambiguous option: $1
34808 Try \`$0 --help' for more information." >&2
34809    { (exit 1); exit 1; }; };;
34810   --help | --hel | -h )
34811     echo "$ac_cs_usage"; exit ;;
34812   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34813   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34814     ac_cs_silent=: ;;
34815
34816   # This is an error.
34817   -*) { echo "$as_me: error: unrecognized option: $1
34818 Try \`$0 --help' for more information." >&2
34819    { (exit 1); exit 1; }; } ;;
34820
34821   *) ac_config_targets="$ac_config_targets $1"
34822      ac_need_defaults=false ;;
34823
34824   esac
34825   shift
34826 done
34827
34828 ac_configure_extra_args=
34829
34830 if $ac_cs_silent; then
34831   exec 6>/dev/null
34832   ac_configure_extra_args="$ac_configure_extra_args --silent"
34833 fi
34834
34835 _ACEOF
34836 cat >>$CONFIG_STATUS <<_ACEOF
34837 if \$ac_cs_recheck; then
34838   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34839   CONFIG_SHELL=$SHELL
34840   export CONFIG_SHELL
34841   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34842 fi
34843
34844 _ACEOF
34845 cat >>$CONFIG_STATUS <<\_ACEOF
34846 exec 5>>config.log
34847 {
34848   echo
34849   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34850 ## Running $as_me. ##
34851 _ASBOX
34852   echo "$ac_log"
34853 } >&5
34854
34855 _ACEOF
34856 cat >>$CONFIG_STATUS <<_ACEOF
34857 #
34858 # INIT-COMMANDS
34859 #
34860 llvm_src="${srcdir}"
34861
34862 _ACEOF
34863
34864 cat >>$CONFIG_STATUS <<\_ACEOF
34865
34866 # Handling of arguments.
34867 for ac_config_target in $ac_config_targets
34868 do
34869   case $ac_config_target in
34870     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34871     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
34872     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
34873     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34874     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34875     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34876     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34877     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34878     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34879     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34880     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34881     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34882     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34883     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34884     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34885     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34886     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34887     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34888     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34889     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34890     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34891     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34892     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34893     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34894
34895   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34896 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34897    { (exit 1); exit 1; }; };;
34898   esac
34899 done
34900
34901
34902 # If the user did not use the arguments to specify the items to instantiate,
34903 # then the envvar interface is used.  Set only those that are not.
34904 # We use the long form for the default assignment because of an extremely
34905 # bizarre bug on SunOS 4.1.3.
34906 if $ac_need_defaults; then
34907   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34908   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34909   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34910 fi
34911
34912 # Have a temporary directory for convenience.  Make it in the build tree
34913 # simply because there is no reason against having it here, and in addition,
34914 # creating and moving files from /tmp can sometimes cause problems.
34915 # Hook for its removal unless debugging.
34916 # Note that there is a small window in which the directory will not be cleaned:
34917 # after its creation but before its name has been assigned to `$tmp'.
34918 $debug ||
34919 {
34920   tmp=
34921   trap 'exit_status=$?
34922   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34923 ' 0
34924   trap '{ (exit 1); exit 1; }' 1 2 13 15
34925 }
34926 # Create a (secure) tmp directory for tmp files.
34927
34928 {
34929   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34930   test -n "$tmp" && test -d "$tmp"
34931 }  ||
34932 {
34933   tmp=./conf$$-$RANDOM
34934   (umask 077 && mkdir "$tmp")
34935 } ||
34936 {
34937    echo "$me: cannot create a temporary directory in ." >&2
34938    { (exit 1); exit 1; }
34939 }
34940
34941 #
34942 # Set up the sed scripts for CONFIG_FILES section.
34943 #
34944
34945 # No need to generate the scripts if there are no CONFIG_FILES.
34946 # This happens for instance when ./config.status config.h
34947 if test -n "$CONFIG_FILES"; then
34948
34949 _ACEOF
34950
34951
34952
34953 ac_delim='%!_!# '
34954 for ac_last_try in false false false false false :; do
34955   cat >conf$$subs.sed <<_ACEOF
34956 SHELL!$SHELL$ac_delim
34957 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34958 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34959 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34960 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34961 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34962 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34963 exec_prefix!$exec_prefix$ac_delim
34964 prefix!$prefix$ac_delim
34965 program_transform_name!$program_transform_name$ac_delim
34966 bindir!$bindir$ac_delim
34967 sbindir!$sbindir$ac_delim
34968 libexecdir!$libexecdir$ac_delim
34969 datarootdir!$datarootdir$ac_delim
34970 datadir!$datadir$ac_delim
34971 sysconfdir!$sysconfdir$ac_delim
34972 sharedstatedir!$sharedstatedir$ac_delim
34973 localstatedir!$localstatedir$ac_delim
34974 includedir!$includedir$ac_delim
34975 oldincludedir!$oldincludedir$ac_delim
34976 docdir!$docdir$ac_delim
34977 infodir!$infodir$ac_delim
34978 htmldir!$htmldir$ac_delim
34979 dvidir!$dvidir$ac_delim
34980 pdfdir!$pdfdir$ac_delim
34981 psdir!$psdir$ac_delim
34982 libdir!$libdir$ac_delim
34983 localedir!$localedir$ac_delim
34984 mandir!$mandir$ac_delim
34985 DEFS!$DEFS$ac_delim
34986 ECHO_C!$ECHO_C$ac_delim
34987 ECHO_N!$ECHO_N$ac_delim
34988 ECHO_T!$ECHO_T$ac_delim
34989 LIBS!$LIBS$ac_delim
34990 build_alias!$build_alias$ac_delim
34991 host_alias!$host_alias$ac_delim
34992 target_alias!$target_alias$ac_delim
34993 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34994 subdirs!$subdirs$ac_delim
34995 build!$build$ac_delim
34996 build_cpu!$build_cpu$ac_delim
34997 build_vendor!$build_vendor$ac_delim
34998 build_os!$build_os$ac_delim
34999 host!$host$ac_delim
35000 host_cpu!$host_cpu$ac_delim
35001 host_vendor!$host_vendor$ac_delim
35002 host_os!$host_os$ac_delim
35003 target!$target$ac_delim
35004 target_cpu!$target_cpu$ac_delim
35005 target_vendor!$target_vendor$ac_delim
35006 target_os!$target_os$ac_delim
35007 OS!$OS$ac_delim
35008 LINKALL!$LINKALL$ac_delim
35009 NOLINKALL!$NOLINKALL$ac_delim
35010 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35011 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35012 ARCH!$ARCH$ac_delim
35013 ENDIAN!$ENDIAN$ac_delim
35014 CC!$CC$ac_delim
35015 CFLAGS!$CFLAGS$ac_delim
35016 LDFLAGS!$LDFLAGS$ac_delim
35017 CPPFLAGS!$CPPFLAGS$ac_delim
35018 ac_ct_CC!$ac_ct_CC$ac_delim
35019 EXEEXT!$EXEEXT$ac_delim
35020 OBJEXT!$OBJEXT$ac_delim
35021 CPP!$CPP$ac_delim
35022 GREP!$GREP$ac_delim
35023 EGREP!$EGREP$ac_delim
35024 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35025 BUILD_CC!$BUILD_CC$ac_delim
35026 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35027 BUILD_CXX!$BUILD_CXX$ac_delim
35028 CVSBUILD!$CVSBUILD$ac_delim
35029 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35030 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35031 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35032 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35033 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35034 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35035 JIT!$JIT$ac_delim
35036 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35037 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35038 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35039 ENABLE_PIC!$ENABLE_PIC$ac_delim
35040 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35041 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35042 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35043 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35044 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35045 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35046 CXX!$CXX$ac_delim
35047 CXXFLAGS!$CXXFLAGS$ac_delim
35048 ac_ct_CXX!$ac_ct_CXX$ac_delim
35049 NM!$NM$ac_delim
35050 ifGNUmake!$ifGNUmake$ac_delim
35051 LN_S!$LN_S$ac_delim
35052 CMP!$CMP$ac_delim
35053 _ACEOF
35054
35055   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35056     break
35057   elif $ac_last_try; then
35058     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35059 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35060    { (exit 1); exit 1; }; }
35061   else
35062     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35063   fi
35064 done
35065
35066 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35067 if test -n "$ac_eof"; then
35068   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35069   ac_eof=`expr $ac_eof + 1`
35070 fi
35071
35072 cat >>$CONFIG_STATUS <<_ACEOF
35073 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35075 _ACEOF
35076 sed '
35077 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35078 s/^/s,@/; s/!/@,|#_!!_#|/
35079 :n
35080 t n
35081 s/'"$ac_delim"'$/,g/; t
35082 s/$/\\/; p
35083 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35084 ' >>$CONFIG_STATUS <conf$$subs.sed
35085 rm -f conf$$subs.sed
35086 cat >>$CONFIG_STATUS <<_ACEOF
35087 CEOF$ac_eof
35088 _ACEOF
35089
35090
35091 ac_delim='%!_!# '
35092 for ac_last_try in false false false false false :; do
35093   cat >conf$$subs.sed <<_ACEOF
35094 CP!$CP$ac_delim
35095 DATE!$DATE$ac_delim
35096 FIND!$FIND$ac_delim
35097 MKDIR!$MKDIR$ac_delim
35098 MV!$MV$ac_delim
35099 RANLIB!$RANLIB$ac_delim
35100 RM!$RM$ac_delim
35101 SED!$SED$ac_delim
35102 TAR!$TAR$ac_delim
35103 BINPWD!$BINPWD$ac_delim
35104 GRAPHVIZ!$GRAPHVIZ$ac_delim
35105 DOT!$DOT$ac_delim
35106 GV!$GV$ac_delim
35107 DOTTY!$DOTTY$ac_delim
35108 PERL!$PERL$ac_delim
35109 HAVE_PERL!$HAVE_PERL$ac_delim
35110 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35111 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35112 INSTALL_DATA!$INSTALL_DATA$ac_delim
35113 BZIP2!$BZIP2$ac_delim
35114 DOXYGEN!$DOXYGEN$ac_delim
35115 GROFF!$GROFF$ac_delim
35116 GZIP!$GZIP$ac_delim
35117 POD2HTML!$POD2HTML$ac_delim
35118 POD2MAN!$POD2MAN$ac_delim
35119 RUNTEST!$RUNTEST$ac_delim
35120 TCLSH!$TCLSH$ac_delim
35121 ZIP!$ZIP$ac_delim
35122 OCAMLC!$OCAMLC$ac_delim
35123 OCAMLOPT!$OCAMLOPT$ac_delim
35124 OCAMLDEP!$OCAMLDEP$ac_delim
35125 OCAMLDOC!$OCAMLDOC$ac_delim
35126 GAS!$GAS$ac_delim
35127 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35128 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35129 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35130 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35131 LIBADD_DL!$LIBADD_DL$ac_delim
35132 ECHO!$ECHO$ac_delim
35133 AR!$AR$ac_delim
35134 STRIP!$STRIP$ac_delim
35135 CXXCPP!$CXXCPP$ac_delim
35136 F77!$F77$ac_delim
35137 FFLAGS!$FFLAGS$ac_delim
35138 ac_ct_F77!$ac_ct_F77$ac_delim
35139 LIBTOOL!$LIBTOOL$ac_delim
35140 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35141 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35142 LLVMGCC!$LLVMGCC$ac_delim
35143 LLVMGXX!$LLVMGXX$ac_delim
35144 USE_UDIS86!$USE_UDIS86$ac_delim
35145 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35146 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35147 ALLOCA!$ALLOCA$ac_delim
35148 MMAP_FILE!$MMAP_FILE$ac_delim
35149 LLVMCC1!$LLVMCC1$ac_delim
35150 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35151 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35152 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35153 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35154 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35155 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35156 SHLIBEXT!$SHLIBEXT$ac_delim
35157 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35158 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35159 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35160 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35161 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35162 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35163 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35164 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35165 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35166 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35167 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35168 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35169 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35170 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35171 RPATH!$RPATH$ac_delim
35172 RDYNAMIC!$RDYNAMIC$ac_delim
35173 LIBOBJS!$LIBOBJS$ac_delim
35174 LTLIBOBJS!$LTLIBOBJS$ac_delim
35175 _ACEOF
35176
35177   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35178     break
35179   elif $ac_last_try; then
35180     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35182    { (exit 1); exit 1; }; }
35183   else
35184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35185   fi
35186 done
35187
35188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35189 if test -n "$ac_eof"; then
35190   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35191   ac_eof=`expr $ac_eof + 1`
35192 fi
35193
35194 cat >>$CONFIG_STATUS <<_ACEOF
35195 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35197 _ACEOF
35198 sed '
35199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35200 s/^/s,@/; s/!/@,|#_!!_#|/
35201 :n
35202 t n
35203 s/'"$ac_delim"'$/,g/; t
35204 s/$/\\/; p
35205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35206 ' >>$CONFIG_STATUS <conf$$subs.sed
35207 rm -f conf$$subs.sed
35208 cat >>$CONFIG_STATUS <<_ACEOF
35209 :end
35210 s/|#_!!_#|//g
35211 CEOF$ac_eof
35212 _ACEOF
35213
35214
35215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35217 # trailing colons and then remove the whole line if VPATH becomes empty
35218 # (actually we leave an empty line to preserve line numbers).
35219 if test "x$srcdir" = x.; then
35220   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35221 s/:*\$(srcdir):*/:/
35222 s/:*\${srcdir}:*/:/
35223 s/:*@srcdir@:*/:/
35224 s/^\([^=]*=[     ]*\):*/\1/
35225 s/:*$//
35226 s/^[^=]*=[       ]*$//
35227 }'
35228 fi
35229
35230 cat >>$CONFIG_STATUS <<\_ACEOF
35231 fi # test -n "$CONFIG_FILES"
35232
35233
35234 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35235 do
35236   case $ac_tag in
35237   :[FHLC]) ac_mode=$ac_tag; continue;;
35238   esac
35239   case $ac_mode$ac_tag in
35240   :[FHL]*:*);;
35241   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35242 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35243    { (exit 1); exit 1; }; };;
35244   :[FH]-) ac_tag=-:-;;
35245   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35246   esac
35247   ac_save_IFS=$IFS
35248   IFS=:
35249   set x $ac_tag
35250   IFS=$ac_save_IFS
35251   shift
35252   ac_file=$1
35253   shift
35254
35255   case $ac_mode in
35256   :L) ac_source=$1;;
35257   :[FH])
35258     ac_file_inputs=
35259     for ac_f
35260     do
35261       case $ac_f in
35262       -) ac_f="$tmp/stdin";;
35263       *) # Look for the file first in the build tree, then in the source tree
35264          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35265          # because $ac_f cannot contain `:'.
35266          test -f "$ac_f" ||
35267            case $ac_f in
35268            [\\/$]*) false;;
35269            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35270            esac ||
35271            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35272 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35273    { (exit 1); exit 1; }; };;
35274       esac
35275       ac_file_inputs="$ac_file_inputs $ac_f"
35276     done
35277
35278     # Let's still pretend it is `configure' which instantiates (i.e., don't
35279     # use $as_me), people would be surprised to read:
35280     #    /* config.h.  Generated by config.status.  */
35281     configure_input="Generated from "`IFS=:
35282           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35283     if test x"$ac_file" != x-; then
35284       configure_input="$ac_file.  $configure_input"
35285       { echo "$as_me:$LINENO: creating $ac_file" >&5
35286 echo "$as_me: creating $ac_file" >&6;}
35287     fi
35288
35289     case $ac_tag in
35290     *:-:* | *:-) cat >"$tmp/stdin";;
35291     esac
35292     ;;
35293   esac
35294
35295   ac_dir=`$as_dirname -- "$ac_file" ||
35296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35297          X"$ac_file" : 'X\(//\)[^/]' \| \
35298          X"$ac_file" : 'X\(//\)$' \| \
35299          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35300 echo X"$ac_file" |
35301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35302             s//\1/
35303             q
35304           }
35305           /^X\(\/\/\)[^/].*/{
35306             s//\1/
35307             q
35308           }
35309           /^X\(\/\/\)$/{
35310             s//\1/
35311             q
35312           }
35313           /^X\(\/\).*/{
35314             s//\1/
35315             q
35316           }
35317           s/.*/./; q'`
35318   { as_dir="$ac_dir"
35319   case $as_dir in #(
35320   -*) as_dir=./$as_dir;;
35321   esac
35322   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35323     as_dirs=
35324     while :; do
35325       case $as_dir in #(
35326       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35327       *) as_qdir=$as_dir;;
35328       esac
35329       as_dirs="'$as_qdir' $as_dirs"
35330       as_dir=`$as_dirname -- "$as_dir" ||
35331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35332          X"$as_dir" : 'X\(//\)[^/]' \| \
35333          X"$as_dir" : 'X\(//\)$' \| \
35334          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35335 echo X"$as_dir" |
35336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35337             s//\1/
35338             q
35339           }
35340           /^X\(\/\/\)[^/].*/{
35341             s//\1/
35342             q
35343           }
35344           /^X\(\/\/\)$/{
35345             s//\1/
35346             q
35347           }
35348           /^X\(\/\).*/{
35349             s//\1/
35350             q
35351           }
35352           s/.*/./; q'`
35353       test -d "$as_dir" && break
35354     done
35355     test -z "$as_dirs" || eval "mkdir $as_dirs"
35356   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35357 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35358    { (exit 1); exit 1; }; }; }
35359   ac_builddir=.
35360
35361 case "$ac_dir" in
35362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35363 *)
35364   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35365   # A ".." for each directory in $ac_dir_suffix.
35366   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35367   case $ac_top_builddir_sub in
35368   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35369   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35370   esac ;;
35371 esac
35372 ac_abs_top_builddir=$ac_pwd
35373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35374 # for backward compatibility:
35375 ac_top_builddir=$ac_top_build_prefix
35376
35377 case $srcdir in
35378   .)  # We are building in place.
35379     ac_srcdir=.
35380     ac_top_srcdir=$ac_top_builddir_sub
35381     ac_abs_top_srcdir=$ac_pwd ;;
35382   [\\/]* | ?:[\\/]* )  # Absolute name.
35383     ac_srcdir=$srcdir$ac_dir_suffix;
35384     ac_top_srcdir=$srcdir
35385     ac_abs_top_srcdir=$srcdir ;;
35386   *) # Relative name.
35387     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35388     ac_top_srcdir=$ac_top_build_prefix$srcdir
35389     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35390 esac
35391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35392
35393
35394   case $ac_mode in
35395   :F)
35396   #
35397   # CONFIG_FILE
35398   #
35399
35400   case $INSTALL in
35401   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35402   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35403   esac
35404 _ACEOF
35405
35406 cat >>$CONFIG_STATUS <<\_ACEOF
35407 # If the template does not know about datarootdir, expand it.
35408 # FIXME: This hack should be removed a few years after 2.60.
35409 ac_datarootdir_hack=; ac_datarootdir_seen=
35410
35411 case `sed -n '/datarootdir/ {
35412   p
35413   q
35414 }
35415 /@datadir@/p
35416 /@docdir@/p
35417 /@infodir@/p
35418 /@localedir@/p
35419 /@mandir@/p
35420 ' $ac_file_inputs` in
35421 *datarootdir*) ac_datarootdir_seen=yes;;
35422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35423   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35424 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35425 _ACEOF
35426 cat >>$CONFIG_STATUS <<_ACEOF
35427   ac_datarootdir_hack='
35428   s&@datadir@&$datadir&g
35429   s&@docdir@&$docdir&g
35430   s&@infodir@&$infodir&g
35431   s&@localedir@&$localedir&g
35432   s&@mandir@&$mandir&g
35433     s&\\\${datarootdir}&$datarootdir&g' ;;
35434 esac
35435 _ACEOF
35436
35437 # Neutralize VPATH when `$srcdir' = `.'.
35438 # Shell code in configure.ac might set extrasub.
35439 # FIXME: do we really want to maintain this feature?
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441   sed "$ac_vpsub
35442 $extrasub
35443 _ACEOF
35444 cat >>$CONFIG_STATUS <<\_ACEOF
35445 :t
35446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35447 s&@configure_input@&$configure_input&;t t
35448 s&@top_builddir@&$ac_top_builddir_sub&;t t
35449 s&@srcdir@&$ac_srcdir&;t t
35450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35451 s&@top_srcdir@&$ac_top_srcdir&;t t
35452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35453 s&@builddir@&$ac_builddir&;t t
35454 s&@abs_builddir@&$ac_abs_builddir&;t t
35455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35456 s&@INSTALL@&$ac_INSTALL&;t t
35457 $ac_datarootdir_hack
35458 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35459
35460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35461   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35462   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35463   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35464 which seems to be undefined.  Please make sure it is defined." >&5
35465 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35466 which seems to be undefined.  Please make sure it is defined." >&2;}
35467
35468   rm -f "$tmp/stdin"
35469   case $ac_file in
35470   -) cat "$tmp/out"; rm -f "$tmp/out";;
35471   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35472   esac
35473  ;;
35474   :H)
35475   #
35476   # CONFIG_HEADER
35477   #
35478 _ACEOF
35479
35480 # Transform confdefs.h into a sed script `conftest.defines', that
35481 # substitutes the proper values into config.h.in to produce config.h.
35482 rm -f conftest.defines conftest.tail
35483 # First, append a space to every undef/define line, to ease matching.
35484 echo 's/$/ /' >conftest.defines
35485 # Then, protect against being on the right side of a sed subst, or in
35486 # an unquoted here document, in config.status.  If some macros were
35487 # called several times there might be several #defines for the same
35488 # symbol, which is useless.  But do not sort them, since the last
35489 # AC_DEFINE must be honored.
35490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35491 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35492 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35493 # PARAMS is the parameter list in the macro definition--in most cases, it's
35494 # just an empty string.
35495 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35496 ac_dB='\\)[      (].*,\\1define\\2'
35497 ac_dC=' '
35498 ac_dD=' ,'
35499
35500 uniq confdefs.h |
35501   sed -n '
35502         t rset
35503         :rset
35504         s/^[     ]*#[    ]*define[       ][      ]*//
35505         t ok
35506         d
35507         :ok
35508         s/[\\&,]/\\&/g
35509         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35510         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35511   ' >>conftest.defines
35512
35513 # Remove the space that was appended to ease matching.
35514 # Then replace #undef with comments.  This is necessary, for
35515 # example, in the case of _POSIX_SOURCE, which is predefined and required
35516 # on some systems where configure will not decide to define it.
35517 # (The regexp can be short, since the line contains either #define or #undef.)
35518 echo 's/ $//
35519 s,^[     #]*u.*,/* & */,' >>conftest.defines
35520
35521 # Break up conftest.defines:
35522 ac_max_sed_lines=50
35523
35524 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35525 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35526 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35527 # et cetera.
35528 ac_in='$ac_file_inputs'
35529 ac_out='"$tmp/out1"'
35530 ac_nxt='"$tmp/out2"'
35531
35532 while :
35533 do
35534   # Write a here document:
35535     cat >>$CONFIG_STATUS <<_ACEOF
35536     # First, check the format of the line:
35537     cat >"\$tmp/defines.sed" <<\\CEOF
35538 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35539 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35540 b
35541 :def
35542 _ACEOF
35543   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35544   echo 'CEOF
35545     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35546   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35547   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35548   grep . conftest.tail >/dev/null || break
35549   rm -f conftest.defines
35550   mv conftest.tail conftest.defines
35551 done
35552 rm -f conftest.defines conftest.tail
35553
35554 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35555 cat >>$CONFIG_STATUS <<\_ACEOF
35556   if test x"$ac_file" != x-; then
35557     echo "/* $configure_input  */" >"$tmp/config.h"
35558     cat "$ac_result" >>"$tmp/config.h"
35559     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35560       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35561 echo "$as_me: $ac_file is unchanged" >&6;}
35562     else
35563       rm -f $ac_file
35564       mv "$tmp/config.h" $ac_file
35565     fi
35566   else
35567     echo "/* $configure_input  */"
35568     cat "$ac_result"
35569   fi
35570   rm -f "$tmp/out12"
35571  ;;
35572
35573   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35574 echo "$as_me: executing $ac_file commands" >&6;}
35575  ;;
35576   esac
35577
35578
35579   case $ac_file$ac_mode in
35580     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35581    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35582     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35583    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35584     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35585    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35586     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35587    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35588     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35589    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35590     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35591    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35592     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35593    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35594     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35596     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35598     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35600     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35601    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35602     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35603    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35604     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35605    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35606
35607   esac
35608 done # for ac_tag
35609
35610
35611 { (exit 0); exit 0; }
35612 _ACEOF
35613 chmod +x $CONFIG_STATUS
35614 ac_clean_files=$ac_clean_files_save
35615
35616
35617 # configure is writing to config.log, and then calls config.status.
35618 # config.status does its own redirection, appending to config.log.
35619 # Unfortunately, on DOS this fails, as config.log is still kept open
35620 # by configure, so config.status won't be able to write to it; its
35621 # output is simply discarded.  So we exec the FD to /dev/null,
35622 # effectively closing config.log, so it can be properly (re)opened and
35623 # appended to by config.status.  When coming back to configure, we
35624 # need to make the FD available again.
35625 if test "$no_create" != yes; then
35626   ac_cs_success=:
35627   ac_config_status_args=
35628   test "$silent" = yes &&
35629     ac_config_status_args="$ac_config_status_args --quiet"
35630   exec 5>/dev/null
35631   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35632   exec 5>>config.log
35633   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35634   # would make configure fail if this is the last instruction.
35635   $ac_cs_success || { (exit 1); exit 1; }
35636 fi
35637
35638 #
35639 # CONFIG_SUBDIRS section.
35640 #
35641 if test "$no_recursion" != yes; then
35642
35643   # Remove --cache-file and --srcdir arguments so they do not pile up.
35644   ac_sub_configure_args=
35645   ac_prev=
35646   eval "set x $ac_configure_args"
35647   shift
35648   for ac_arg
35649   do
35650     if test -n "$ac_prev"; then
35651       ac_prev=
35652       continue
35653     fi
35654     case $ac_arg in
35655     -cache-file | --cache-file | --cache-fil | --cache-fi \
35656     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35657       ac_prev=cache_file ;;
35658     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35659     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35660     | --c=*)
35661       ;;
35662     --config-cache | -C)
35663       ;;
35664     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35665       ac_prev=srcdir ;;
35666     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35667       ;;
35668     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35669       ac_prev=prefix ;;
35670     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35671       ;;
35672     *)
35673       case $ac_arg in
35674       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35675       esac
35676       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35677     esac
35678   done
35679
35680   # Always prepend --prefix to ensure using the same prefix
35681   # in subdir configurations.
35682   ac_arg="--prefix=$prefix"
35683   case $ac_arg in
35684   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35685   esac
35686   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35687
35688   ac_popdir=`pwd`
35689   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35690
35691     # Do not complain, so a configure script can configure whichever
35692     # parts of a large source tree are present.
35693     test -d "$srcdir/$ac_dir" || continue
35694
35695     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35696     echo "$as_me:$LINENO: $ac_msg" >&5
35697     echo "$ac_msg" >&6
35698     { as_dir="$ac_dir"
35699   case $as_dir in #(
35700   -*) as_dir=./$as_dir;;
35701   esac
35702   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35703     as_dirs=
35704     while :; do
35705       case $as_dir in #(
35706       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35707       *) as_qdir=$as_dir;;
35708       esac
35709       as_dirs="'$as_qdir' $as_dirs"
35710       as_dir=`$as_dirname -- "$as_dir" ||
35711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35712          X"$as_dir" : 'X\(//\)[^/]' \| \
35713          X"$as_dir" : 'X\(//\)$' \| \
35714          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35715 echo X"$as_dir" |
35716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35717             s//\1/
35718             q
35719           }
35720           /^X\(\/\/\)[^/].*/{
35721             s//\1/
35722             q
35723           }
35724           /^X\(\/\/\)$/{
35725             s//\1/
35726             q
35727           }
35728           /^X\(\/\).*/{
35729             s//\1/
35730             q
35731           }
35732           s/.*/./; q'`
35733       test -d "$as_dir" && break
35734     done
35735     test -z "$as_dirs" || eval "mkdir $as_dirs"
35736   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35737 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35738    { (exit 1); exit 1; }; }; }
35739     ac_builddir=.
35740
35741 case "$ac_dir" in
35742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35743 *)
35744   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35745   # A ".." for each directory in $ac_dir_suffix.
35746   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35747   case $ac_top_builddir_sub in
35748   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35749   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35750   esac ;;
35751 esac
35752 ac_abs_top_builddir=$ac_pwd
35753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35754 # for backward compatibility:
35755 ac_top_builddir=$ac_top_build_prefix
35756
35757 case $srcdir in
35758   .)  # We are building in place.
35759     ac_srcdir=.
35760     ac_top_srcdir=$ac_top_builddir_sub
35761     ac_abs_top_srcdir=$ac_pwd ;;
35762   [\\/]* | ?:[\\/]* )  # Absolute name.
35763     ac_srcdir=$srcdir$ac_dir_suffix;
35764     ac_top_srcdir=$srcdir
35765     ac_abs_top_srcdir=$srcdir ;;
35766   *) # Relative name.
35767     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35768     ac_top_srcdir=$ac_top_build_prefix$srcdir
35769     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35770 esac
35771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35772
35773
35774     cd "$ac_dir"
35775
35776     # Check for guested configure; otherwise get Cygnus style configure.
35777     if test -f "$ac_srcdir/configure.gnu"; then
35778       ac_sub_configure=$ac_srcdir/configure.gnu
35779     elif test -f "$ac_srcdir/configure"; then
35780       ac_sub_configure=$ac_srcdir/configure
35781     elif test -f "$ac_srcdir/configure.in"; then
35782       # This should be Cygnus configure.
35783       ac_sub_configure=$ac_aux_dir/configure
35784     else
35785       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35786 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35787       ac_sub_configure=
35788     fi
35789
35790     # The recursion is here.
35791     if test -n "$ac_sub_configure"; then
35792       # Make the cache file name correct relative to the subdirectory.
35793       case $cache_file in
35794       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35795       *) # Relative name.
35796         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35797       esac
35798
35799       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35800 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35801       # The eval makes quoting arguments work.
35802       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35803            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35804         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35805 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35806    { (exit 1); exit 1; }; }
35807     fi
35808
35809     cd "$ac_popdir"
35810   done
35811 fi
35812